Dial Plan Generator For Sipura 3000
SPA-3000
The Dial Plan Generator is still under development ideas etc are very welcome, my contact details are on my
home page
.
This tool ONLY does dial plans... if your look for advice on how to setup the rest of the SPA then i recommend you have a look at this
guide
.
http://www.jmgtechnology.com.au/spa_3000_guide.pdf
If your looking for more information on how to use this tool then please scroll down to the bottom.
Some standard Configuration that are commonly used:
000 via PSTN
Notes:
#0
ie normal phone line
#9
ie your main registered VOIP provider
1223 via PSTN
1800 or 1300 via PSTN
13 via PSTN
190 via PSTN
#0 force via PSTN
#9 force via Line 1
#1 force via gateway 1
#2 force via gateway 2
#3 force via gateway 3
#4 force via gateway 4
Match
Basic
62 will match any number starting with 62
Advanced
If your dial plan contains [579] it will match any character starting with either 5, 7 or 9
Advanced 2
If your dial plan contains [5-9] a sequence starting with either 5, 6, 7, 8 or 9
Combined
You guessed it, combine away, use a x to represent any number and full stop "." means any number of extra numbers.
Number of extra characters
This will automatically fill it full of x's saving you typing and thinking ie Match 62 for Canberra so add 6 more x's 62xxxxxx
Typical land line is 8 digits without STD code.
Mobile is 10 digits. Less the number of characters you have in the Match field above.
0
1
2
3
4
5
6
7
8
9
10
11
12
Substitute
Note - This can be used without using match above or number of characters.
Replace 03 with 613 by adding 03 to the FROM field and 613 to the TO field, leave Match and characters blank.
To add characters simply leave From blank ie Match is 62 and Substitute To is 02 this adds 02 to the beginning of any local Canberra number i dial.
From
To
Gateway
Gateways are used to direct your call out different paths. In its simplest form that is either PSTN on Line 1, but you can also use it to setup mutiple VOIP providers.
PSTN
Line 1
Gateway 1
Gateway 2
Gateway 3
Gateway 4
Do the above loop as many times as you need and keep clicking add to plan.
Finally if your finished then this wraps final brackets around string and adds the when in doubt out Line 1
Dial plan - (Copy and paste the line below into your SPA3K config.)
ie
In case you want to start clean
Links
Links to some more great sites
Great into to VOIP and related technologies
http://voip.wikispaces.com/GettingStarted
Really active VOIP forum
http://forums.whirlpool.net.au/forum-threads.cfm?f=107
Another great site on the SPA-3000
http://www.voip-info.org/wiki/view/Sipura+3000
Awesome utility for monitoring your SPA-3000 and even writing call logs out to XML etc
http://www.clacy.com/sipura/
Another very active VOIP forum
http://forums.ozvoip.com/
A summary of Australian VOIP provides
http://www.ozinternetphones.com/
Another summary of VOIP provider features
http://compare.ozvoip.com/providers.php
Great links and old firmware for SPA-3000
http://www.8ken.dyndns.org/sipura/
Cool utilitiy for checking your dial plans, .Net app so Linux people are outta luck.
http://www.noetictools.com/
More info on the dial plan generator
The doco i've used and most of the idea's have come from the combined efforts of many people on whirlpool. In particular thanks to
bogongmoth for the hard work...!
http://forums.whirlpool.net.au/forum-replies.cfm?t=332476&p=1
Dial plans can be a bit tricky to master at first, but offer great flexibility when you understand them. Here is an explanation of the sipura spa dial plan structure, and sample dial plans.
Common notations
()
opening and closing brackets - the entire dial plan string is enclosed in brackets.
|
each dial plan is separated from the next by the pipe |, but the first and last part of the dial plan only have an opening and closing bracket respectively.
The dial plan can include specific individual keys 0 to 9 (inclusive), * and #
x
any numeric digit from 0 to 9
.
repetition eg x. means any numeric digit (x) repeated 0 or more times.
Other things:
Substitution:
replace 03 with 613 by writing <03:613>
Outside line:
inset a comma , between digits for an outside line dial tone eg 9,03xxxxxxxx means dial 9 then you will get an outside dial tone until you press 0.
Barring numbers:
put a ! at the end of a sequence to prevent it being dialed.
Immediate dial
S0 - (capital S zero) immediately dial the numbers after you've matched the dial plan sequence. For example: 000S0
Gateways
Spa 3k only
: dial out through a gateway by adding <:@gw1> to the dial plan for gateway 1; or <:@gw0> for gateway 0 (PSTN) etc
Limited choice 1
If your dial plan contains [579]xxx then it will match with any four digit sequence starting with either 5, 7 or 9
Limited choice 2
If your dial plan contains [5-9]xxx then it will match with any four digit sequence starting with either 5, 6, 7, 8 or 9
Simple dial plan:
(000S0<:@gw0>|<#9:>xx.< :@gw0>|<0:61>xxxxxxxxx|< :613>xxxxxxxx|<:03>[23567 ]xxxxxxx<:@gw2>)
Explanation:
000S0<:@gw0> This will dial 000 by the PSTN gateway (
Spa3k only
) immediately after you've pressed the third zero.
<#9:>xx.<:@gw0> You dial #9 then any phone number and it will dial the phone number through the PSTN gateway (over the POTS line) -
Spa3k only
<0:61>xxxxxxxxx You dial, for example, 02 9678 5555 and the unit will convert this to 612 9678 5555 and dial out over Line 1 (voip)
<:613>xxxxxxxx You dial, for example, 9678 5555 and the unit will convert this to 613 9678 5555 and dial out over Line 1 (voip).
<:03>[23567]xxxxxxx<:@gw2> (
Spa3k only
) You dial, for example 5678 5678 and the unit will convert this to 03 5678 5678 and dial out through gateway 2 (which you will have set up with another provider).
This sequence will only match when you dial a number that starts with either 2,3,5,6 or 7.
A more complex dial plan
(000S0<:@gw0>|<#9:>xx.< :@gw0>|<0:61>[23][89 ]xxxxxxx|<:613>[89]xxxxxxx|< 026:6126>[12]xxxxxxx|<073:6173> xxxxxxx|<08:618>[67]xxxxxxx|< 088:6188>[1-4]xxxxxx|<089:6189> [2-4]xxxxxx|<04:614>xxxxxxxx|< 0011:>xx.|<1800:611800>xx.|< 13:6113>xx.|89[89]060xx.|<:03> [23567]xxxxxxx<:@gw2>|0[2378 ][2-7]xxxxxxx<:@gw2>|<#2:> xx.<:<@gw2>|<060:0661> xxxxxxxxx|<06:06613>xxxxxxxx|< 090:0961>xxxxxxxxx|<09:09613> xxxxxxxx|<090011:>xx.|<#1 13:0516113>xx.<:@gw1>|< #10:05161>xx xxxxxxxS0<:@gw1|<#1:051613> [5-9]xxxxxxxS0<:@gw1)
If people find this useful, or have other useful tips, please add to the thread. Let me know if there are errors and I'll fix them. If it's
really
useful, maybe it could start or form part of a sticky.
Version Notes
0.1 - Changed the
[x#*].
back to xx. and added 43 to *43 for voice test with Astratel, also added *xx at the front to allow dial codes to be used
0.2 - Changing wording to help clarity, added #9 override out voip line 1
0.2 - Face lift thanks to my buddy Justin Lauder.. he's a dude..!!!!
CGI Variables
HTTP_Referer
Remote_Addr
Remote_Host