[asterisk-users] Toll free pattern matching
Tim S
tim.strommen at gmail.com
Fri Aug 5 19:42:34 CDT 2016
Don't forget to handle the other special extension cases
<https://wiki.asterisk.org/wiki/display/AST/Special+Dialplan+Extensions> in
a [context]. What I find is a good practice is to write a root "catch-all"
(template), then I tag that onto any new [context](template).
[Special-Extensions]
exten -> a,1,NoOp(Where a call jumps when the caller requests the assistant)
exten -> e,1,NoOp(Catchall where a call jumps with an exception on the call)
exten -> h,1,NoOp(Where a call jump with a hang up)
exten -> i,1,NoOp(Where a call jumps if an invalid extension is entered)
exten -> o,1,NoOp(Where a call jumps when a caller requests an operator)
exten -> s,1,NoOp(Where a call jumps to when a new call starts in a context
if no extension is specified)
exten -> t,1,NoOp(Where a call jumps if the user did not enter a response
to Background or WaitExten)
exten -> T,1,NoOp(Where a call jumps when it exceeds the absolute TIMEOUT
value for a call).
[your-new-context](Special-Extensions)
...
-T
On Fri, Aug 5, 2016 at 7:53 AM, D'Arcy J.M. Cain <darcy at vex.net> wrote:
> On Fri, 5 Aug 2016 09:26:03 -0500
> Richard Mudgett <rmudgett at digium.com> wrote:
> > Dialplan will stay on the current series of extensions until it runs
> > out. If there isn't an explicit hangup
>
> So glad I asked. I see now that it only worked because of the accident
> that the specific 800 extension and the generic one just happened to
> have the same number of priorities. I have added explicit hangups.
>
> Thanks.
>
> --
> D'Arcy J.M. Cain
> System Administrator, Vex.Net
> http://www.Vex.Net/ IM:darcy at Vex.Net
> VoIP: sip:darcy at Vex.Net
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160805/a20bd3bb/attachment.html>
More information about the asterisk-users
mailing list