10 msgload balancing SIP extensions
2 msgcanreinvite question
3 msgDigium B410P and 8 ports connectivity
1 msgUsing app_sms in South Africa
2 msgWeird Zaptel sound after anwser calls
1 msgchan_h323 build failure - `IPTOS_MINCOST'undecl...
1 msgFriday 22 FEB 08 @ 12 Noon EST ISPBX COGOBLUE
1 msgchan_woomera tries to connect to strange host
2 msgPager ('beeper') Emulation Script
2 msgspandsp/tx_fax/rx_fax frustrations
1 msgChan_h323 isn`t dropping calls comming with wro...
1 msgQuestion regarding AGI
6 msgAsterisk,Zaptel and the Kernal Compatibility Ma...
2 msgcid_rewrite.php -- Caller ID Name lookup
4 msgHigh CPU load after upgrading to 1.4
1 msgAsterisk-addons 1.6.0-beta2 Released
1 msgAsterisk 1.6.0-beta4 Released
1 msgAsterisk-addons 1.4.6 Released

Pattern matching....
\ Michael Munger (21 Feb 2008)
. \ Steve Murphy (21 Feb 2008)
. . \ Mike Trest - Personal (21 Feb 2008)
. . . \ Jared Smith (21 Feb 2008)
. . . \ Eric Wieling (21 Feb 2008)
. \ Eric Wieling (21 Feb 2008)
. . \ (Tony Mountifield) (22 Feb 2008)
. . . \ Kevin P. Fleming (29 Feb 2008)
. \ Michael Munger (22 Feb 2008)

2 msgWhich echo-can for Digium B410P ?
Subject:Re: Pattern matching....
Group:Asterisk-users
From:Kevin P. Fleming
Date:29 Feb 2008


 
Tony Mountifield wrote:
> In article <47BDD86E.1090005>, Eric Wieling <eric> wrote:
>> No that will not work. You would want three exten => lines, one for
>> each area code.
>
> And if you have a lot of common dialplan that you don't want to duplicate
> between the three extension patterns, put the common stuff up at a higher
> priority and use Goto to get there:
>
> exten => _404NXXXXXX,1,Goto(200)
> exten => _770NXXXXXX,1,Goto(200)
> exten => _678NXXXXXX,1,Goto(200)
>
> exten => _NXXNXXXXXX,200,NoOp(Start of common instructions)
> exten => _NXXNXXXXXX,n,etc....

Actually you can do this a lot more simply without using Goto (which
might mess with your CDR):

exten => _404NXXXXXX,1,NoOp
exten => _770NXXXXXX,1,NoOp
exten => _678NXXXXXX,1,NoOp

exten => _NXXNXXXXXX,2,NoOp(Start of common instructions)
exten => _NXXNXXXXXX,n,etc....

Since there is an implicit 'Goto' from priority 1 to priority 2 anyway,
you might as well take advantage of it :-)

--
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


© 2004-2008 readlist.com