[VoIP] extensions.conf unhandled extensions
Jack Ryan
doctor.jack.ryan at gmail.com
Fri Feb 15 00:02:21 CST 2008
Mad Mark,
As Mark suggests, just add a catch all extension.
exten => _X., 1, Answer()
etc
The X matches any single digit then the '.' matches anything else. Don't use
_. unless you have nothing else to do.
Fortunately anything more specific is matched first leaving this as the
catch all.
Jack
On 15/02/2008, Mark Rudholm <mark at rudholm.com> wrote:
>
> Mad Mark wrote:
> > I've been looking over the extensions.conf in my *box (Asterisk 1.2) and
> I can't tell how to trap unhandled extensions.
>
> Since extensions are matched in included contexts last,
> and only if no local extension matches, you could
> create a context called [intercepts] and add
> an include => intercepts to the end of your other
> contexts. It could look something like:
>
> [intercepts]
> exten => _1NXX,1,Answer()
> exten => _1NXX,n,Wait(0.2)
> exten => _1NXX,n,Playtones(!914/274,!1371/274,!1777/380)
> exten => _1NXX,n,Wait(1)
> exten => _1NXX,n,Playback(were-sorry)
> exten => _1NXX,n,Playback(not-necessary-1)
> exten => _1NXX,n,Playback(hangup-try-again)
> exten => _1NXX,n,Hangup()
>
> This is what I do to trap any incorrect 1+ dialing on
> my system. (I don't support 1+ dialing for anything)
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>
More information about the VoIP
mailing list