In article <42f3efbf$0$38041$bed64819@news.gradwell.net>,
"Sparks" <this@is.invalid> writes:
>> Well, that just means prefix all numbers with *210
>> (subject to its position in the dialplan, which you haven't given).
>
>That was the dialplan on the SPA-3000 (then)!
>
>>
>> If you only want 07 numbers prefixed, you probably want something
>> more like:
>>
>> <07:*21007>x.
>>
>> AFAIK, all 07 numbers are same length, so you can get slightly faster
>> dialling by giving the length and disabling the timer at the end...
>>
>> <07:*21007>xxxxxxxxxS0
>
>Thanks for that, I didn't know about the magic S0
>
>My dialplan (On the Line 1 Tab) is now....
>
>0906xS0|118xxxS0|100S0|112S0|999S0|1471S0|1571S0| 2xxS0|<0871:*2100871>x.|<0870:*2100870>x.|<07:*210 07>xxxxxxxxxS0|[1-8]xxxxxS0|01xxxxxxxxxS0|02xxxxxxxxxS0|*xx|x.
0906xS0 looks wrong unless 0906x numbers are all only 5 digits.
You can only use S0 at the end of the number when you are sure
there will be no more digits -- it tells the SPA not to wait
for you to dial another digit.
>This seems to do exactly what I want now (well, for now anyway!!) :-)
>
>I am assuming all 01 and 02 numbers are 11 digits long (or shorter)
>Would this be the correct assumption!?
No - some 01 numbers are 10 digits.
Here are my own dialstring notes:
999 emergency
1xx. 112, 151, 141..., 1471..., etc.
0[12]xxxxxxxxx STD with max local digits
01xxxxxxxx 01234 etc, with 5 digit local
07xxxxxxxxx mobile, personal
[2-9]xxxx local (in 01234, etc areas with 5 digit local)
[2-9]xxxxx local (in 01234, etc areas with 6 digit local)
[2-9]xxxxxx local (in 0118, etc areas)
[2-9]xxxxxxx local (in 020, etc areas).
0[589]x. Various things like 0500... and others I don't know
00x. international
Some of these can be merged, and only one of the 'local' entries
will be relevant (or possibly two if your area has 5 and 6 digit
local numbers). Here is the dialstring I use (with my own private
VoIP bits starting 000 removed). I make no guarantee it is fully
correct, but it's worked OK so far for me.
(999S0<:@gw0>|1xx.<:@gw0>|01xxxxxxxx<:@gw0>|0[127]xxxxxxxxxS0<:@gw0>|[2-9]xxxx<:@gw0>|[2-9]xxxxxS0<:@gw0>|0[589]x.<:@gw0>|00[1-9]x.<:@gw0>)
Note there is no S0 on the end of the 01xxxxxxxx 10 digit entry,
as that would stop the SPA from waiting to see if there is an
11th digit.
--
Andrew Gabriel