[Asterisk-Users] Default dialplan??

Aaron Paxson aj at thepaxson5.org
Thu May 18 07:34:29 MST 2006


Thanks Cosmin!!

I didn't realize that the dialplans ran in sequential order.  I'll try that. 
thanks!

--Aaron

----- Original Message ----- 
From: "Cosmin Prund" <cosmin at adicomsoft.ro>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Thursday, May 18, 2006 9:44 AM
Subject: Re: [Asterisk-Users] Default dialplan??


> I'll give this one a try, but don't trust me, test it yourself :-)
>
> Of course Asterisk can do it! All you need to do is set up a rule for 
> matching ALL extensions in the PBX in it's own separate context and 
> include that context into your "normal" context. In the following example, 
> asterisk will try matching all extensions in context Normal (all 
> extensions defined on *) and, if no match was found, start searching the 
> context "secondary_pbx". In my sample this secondary context will match 
> any 3-digit number and send it to the other PBX. Should work...
>
> [Normal]
> include => secondary_pbx
> exten => 101,1,Dial(sip/101)
>
> [secondary_pbx]
> exten => _XXX,Dial(Zap/g1)
>
> Aaron Paxson wrote:
>> Hey all!
>>  I've got my Asterisk box tied into my PBX.  Currently, if a call comes 
>> into my PBX, and can't find the extension, it forwards it through my 
>> Asterisk trunk to Asterisk.
>>  This works great!
>>  Is there a special dialplan function (or common usage pattern) that can 
>> do the same thing in Asterisk?  i.e. If it can't find the extension, send 
>> it out Zap/g1?
>>  My dialplan works with patterns, but patterns isn't what I need here. 
>> Is anyone doing anything like this?
>>  Thanks!
>> ~~Aaron
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> Asterisk-Users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list