Custom Dialing Plans

Getting started with the SIP Sorcery
Post Reply
justme
Posts: 12
Joined: Wed Oct 03, 2007 6:51 am

Custom Dialing Plans

Post by justme » Fri Oct 05, 2007 10:55 am

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.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Post by Aaron » Fri Oct 05, 2007 12:41 pm

Yep all possible. Click on Advanced and then the help icon to see some examples.

Regards,

Aaron

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Fri Oct 19, 2007 12:06 am

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 :)
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Mon Oct 22, 2007 4:03 pm

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.......
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Post by Aaron » Mon Oct 22, 2007 4:29 pm

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

Windstorm
Posts: 42
Joined: Wed Oct 03, 2007 8:52 am
Location: Netherlands, Nijkerk

Post by Windstorm » Mon Oct 22, 2007 6:43 pm

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.
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

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Tue Oct 23, 2007 4:27 pm

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!
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Tue Oct 23, 2007 4:37 pm

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
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.
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

Post Reply