[Asterisk-Users] Default dialplan??
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
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
Re: [Asterisk-Users] Default dialplan??
Thanks Cosmin!! I didn't realize that the dialplans ran in sequential order. I'll try that. thanks! --Aaron - Original Message - From: Cosmin Prund [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@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 ___ --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
Re: [Asterisk-Users] Default dialplan??
Aaron Paxson wrote: Thanks Cosmin!! I didn't realize that the dialplans ran in sequential order. I'll try that. thanks! We originally had dialplans run in random order, but people found it too confusing. -- Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery. ___ --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
Re: [Asterisk-Users] Default dialplan??
Aaron,There are probably plenty of ways to do this, off the top of my head, if you add a 'include = go-to-pbx' context within the context where your Asterisk patterns are, and there is no match, Asterisk will then begin to check the 'include' contexts in order. (It does not even look at them if it can find a match in the current context. So ... put such an include with a 'catch all' dial plan within 'go-to-pbx' that will handle any patterns that don't match and send them off to your alternate pbx.philippe From: "Aaron Paxson" [EMAIL PROTECTED]To: asterisk-users@lists.digium.comDate: Thu, 18 May 2006 09:26:50 -0400Subject: [Asterisk-Users] Default dialplan??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 Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___ --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