On Fri, 24 Jun 2011 13:06:22 +0100, Anthony R. Gold wrote:
> On Fri, 24 Jun 2011 08:18:41 +0100, "Anthony R. Gold"
> <not-for-mail@ahjg.co.uk> wrote:
>
>> In the Line 1 menu I found this existing Dial Plan:
>> (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
>>
>> And in the PSTN Line menu I see a list of 8 numbered Dial Plans which
>> each consists of just this: (xx.)
>>
>> Is one of those places appropriate to insert the <9,:>xx.<:gw0> string?
>> And if so, what would be the entire resulting string, including
>> anything that must remain from before?
>
> I fiddled blindly and finally found this works (using #9 for as access
> code):
> (<#9:>xx.<:@gw0>|*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|
xxxxxxxxxxxx.)
>
> Can anyone can improve on that to reduce the access code to a mere "9"?
>
> My "blind" fiddling was helped by this offline Dial Plan simulator that
> I stumbled upon:
> http://www.softpedia.com/get/Interne...M/Sipura-3000-
Dial-Plan-Manager.shtml
Do you not have the user manual? I can let you have acopy.
Anyway, it's pretty simple, but the default setting is geared to North
American numbers. As you may have gathered, the vertical bars separate
acceptable number patterns. X means any digit. Digits (and * or #) can
stand for themselves, or a set of options can be in square brackets (0-7,
for example, or 3456). Dot means 0 or more repetitions of the preceding
character. <a:b> means that if the user dials a sequence a, it's replaced
by b. Comma plays an 'outside' dial tone. ! bars anything matching the
preceding sequence (e.g. you might have 09X.!). @gwn means use gateway n.
You needed #9 because there is a later sequence that clashes, also
starting with 9.
A simplified version might be:
(<9:>xx.<:@gw0>|0[123578]X.|00X.|09X.!)
You could try adding your local code (assuming 6 digit numbers, let's say
it's 01227):
<:01227>XXXXXX
to save dialling that code for local numbers. I haven't tried this
dialplan, as mine is built to go through an Asterisk box; all mine does
is ensure that valid strings get through without timeouts.
If you get dialling delays, tweak the inter-digit timeout. There's a long
one and a short one. In essence, it hangs on to digits until a timeout
expires, and the long one is 10 seconds by default.
--
Use the BIG mirror service in the UK:
http://www.mirrorservice.org
*lightning protection* - a w_tom conductor