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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060518/b7c09937/attachment.htm
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 >
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" <aj@thepaxson5.org> To: <asterisk-users@lists.digium.com> Date: Thu, 18 May 2006 09:26:50 -0400 Subject: [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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060518/446b29a9/attachment.htm