Custom Dialing Plans
Custom Dialing Plans
My ATA has a nice dial plan in it and I don't need to use any special plan for MySIPSwitch. But I just got a brainstorm
Is it possible to create a custom dial plan in mysipswitch similar to this:
All numbers automatically get 001 added to them.
For example:
Dialing 631-555-1212 will actually dial out as +00163155512
Or do this:
All numbers that begin with 011 (usa international access number) would converted to 00?
Or calls to +49 130 (Germany toll free) would automatically dial out over FWD for example?
Just wondering if this is possible.
Is it possible to create a custom dial plan in mysipswitch similar to this:
All numbers automatically get 001 added to them.
For example:
Dialing 631-555-1212 will actually dial out as +00163155512
Or do this:
All numbers that begin with 011 (usa international access number) would converted to 00?
Or calls to +49 130 (Germany toll free) would automatically dial out over FWD for example?
Just wondering if this is possible.
exten => _00X.,1,Switch(username,password,${EXTEN}@sip.voipbuster.com, <sip:0031YourCIDnumber@sip.voipbuster.com>)
exten => _01X.,1,Switch(username,password,00311${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _02X.,1,Switch(username,password,00312${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _03X.,1,Switch(username,password,00313${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _04X.,1,Switch(username,password,00314${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _05X.,1,Switch(username,password,00315${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _06X.,1,Switch(username,password,00316${EXTEN:2}@sip.VoipCheap.com, <sip:0031yourgsmCIDnumber@sip.voipcheap.com>)
exten => _07X.,1,Switch(username,password,00317${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _*7X.,1,Switch(username,password,+31${EXTEN:2}@sip.VoipCheap.com, <sip:0031yourgsmCIDnumber@sip.VoipCheap.com>)
exten => _*8X.,1,Switch(username,password,+31${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
This is my dialplan for the moment, i can dial national, without the 0031, all dutch regions, dial internationaly, and GSM (06) get's dialed with VoipCheap.
Last two lines are realy not needed anymore.... maybe in the future i can make it "sophisticated" with more syntax related cleverness
exten => _01X.,1,Switch(username,password,00311${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _02X.,1,Switch(username,password,00312${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _03X.,1,Switch(username,password,00313${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _04X.,1,Switch(username,password,00314${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _05X.,1,Switch(username,password,00315${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _06X.,1,Switch(username,password,00316${EXTEN:2}@sip.VoipCheap.com, <sip:0031yourgsmCIDnumber@sip.voipcheap.com>)
exten => _07X.,1,Switch(username,password,00317${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
exten => _*7X.,1,Switch(username,password,+31${EXTEN:2}@sip.VoipCheap.com, <sip:0031yourgsmCIDnumber@sip.VoipCheap.com>)
exten => _*8X.,1,Switch(username,password,+31${EXTEN:2}@sip.voipbuster.com, <sip:0031yourCIDnumber@sip.voipbuster.com>)
This is my dialplan for the moment, i can dial national, without the 0031, all dutch regions, dial internationaly, and GSM (06) get's dialed with VoipCheap.
Last two lines are realy not needed anymore.... maybe in the future i can make it "sophisticated" with more syntax related cleverness
Thanks, The Fug.
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
update: same dialplan, only more sophisticated
exten => _00X.,1,Switch(Username,Password,${EXTEN}@sip.voipbuster.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
exten => _06X.,1,Switch(Username,Password,+316${EXTEN:2}@sip.VoipCheap.com, <sip:0031MyCIDnumber@sip.voipcheap.com>)
exten => _0ZX.,1,Switch(Username,Password,+31${EXTEN:1}@sip.voipbuster.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
exten => _*7X.,1,Switch(Username,Password,+31${EXTEN:2}@sip.VoipCheap.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
exten => _*8X.,1,Switch(Username,Password,+31${EXTEN:2}@sip.voipbuster.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
I only need to block 08 or 09 numbers.... hopefuly with the soon to be used ! exlamation function.......
exten => _00X.,1,Switch(Username,Password,${EXTEN}@sip.voipbuster.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
exten => _06X.,1,Switch(Username,Password,+316${EXTEN:2}@sip.VoipCheap.com, <sip:0031MyCIDnumber@sip.voipcheap.com>)
exten => _0ZX.,1,Switch(Username,Password,+31${EXTEN:1}@sip.voipbuster.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
exten => _*7X.,1,Switch(Username,Password,+31${EXTEN:2}@sip.VoipCheap.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
exten => _*8X.,1,Switch(Username,Password,+31${EXTEN:2}@sip.voipbuster.com, <sip:0031MyCIDnumber@sip.voipbuster.com>)
I only need to block 08 or 09 numbers.... hopefuly with the soon to be used ! exlamation function.......
Thanks, The Fug.
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
Hi TheFug,
The excalmation won't help block any numbers.
If you're looking to exclude calls that have an 8 or 9 at some point in them you should use [0-7] where you have X or N.
As an example if I only want to match calls that are 01, 02, --- ,07 and exclude 08 and 09 I could use:
exten = _0[1-7]X.,....
Hth,
Aaron
The excalmation won't help block any numbers.
If you're looking to exclude calls that have an 8 or 9 at some point in them you should use [0-7] where you have X or N.
As an example if I only want to match calls that are 01, 02, --- ,07 and exclude 08 and 09 I could use:
exten = _0[1-7]X.,....
Hth,
Aaron
sorrry i answer in dutch on the fug.
Waarom 0800 en 0900 blokkeren, die kun je ook gewoon bellen met voipbuster. Via voipcheap echter weer niet, maar dus WEL via voipbuster.
Waarom 0800 en 0900 blokkeren, die kun je ook gewoon bellen met voipbuster. Via voipcheap echter weer niet, maar dus WEL via voipbuster.
outgoing sip: Webcalldirect NL Mobile and Voipbuster Fixed
als tegoeden opzijn: naar www.Justvoip.com
incoming: Budgetphone NL
Voip Fax: Speedlinq (tel.telefoniedienst.nl) (registreted in speedtouch 716)
Verder klanten via: www.windbel.nl
als tegoeden opzijn: naar www.Justvoip.com
incoming: Budgetphone NL
Voip Fax: Speedlinq (tel.telefoniedienst.nl) (registreted in speedtouch 716)
Verder klanten via: www.windbel.nl
Ja, dat is zo, (als dat toch zo is) ik laat het dan maar ook zo.....
alleen, zit ik nog een beetje met m'n dialplan in de SPA3102 zelf,
heb hier een eenvoudige instaan die alles accepteerd, maar ik kan niet naar de gw0 (PSTN) omschakelen, wat eerst wel werkte...hoe doe jij dat ?
btw. bedankt voor de tip!
alleen, zit ik nog een beetje met m'n dialplan in de SPA3102 zelf,
heb hier een eenvoudige instaan die alles accepteerd, maar ik kan niet naar de gw0 (PSTN) omschakelen, wat eerst wel werkte...hoe doe jij dat ?
btw. bedankt voor de tip!
Thanks, The Fug.
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
I can't get the nummeric wildcard between brackets, to work, the the letter expresion works fine, so i'll use that, it's not that of an issue, to block 08 ot 09, i now have the dialplan working to my satisfaction, so i can use my phone the way it is being used in a normal Dutch home-usage, with only few dialplan rules.Aaron wrote:Hi TheFug,
The excalmation won't help block any numbers.
If you're looking to exclude calls that have an 8 or 9 at some point in them you should use [0-7] where you have X or N.
As an example if I only want to match calls that are 01, 02, --- ,07 and exclude 08 and 09 I could use:
exten = _0[1-7]X.,....
Hth,
Aaron
So i guess i can make a start, to work on some extra features !
Thanks, The Fug.
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D
gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D