[VoIP] extensions.conf unhandled extensions

Mark Rudholm mark at rudholm.com
Thu Feb 14 23:11:52 CST 2008


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)


More information about the VoIP mailing list