[Asterisk-Dev] BOUNTY: app_hangup from exten => h

Rich Adamson radamson at routers.com
Fri Apr 15 10:04:07 MST 2005


> >>On April 15, 2005 08:06 am, Rich Adamson wrote:
> >>
> >>>; This section is the Last and handles 'no valid extension'
> >>>[no-match]
> >>>exten => _.,1,Answer
> >>>exten => _.,2,Playback(invalid,skip)
> >>>exten => _.,3,Hangup
> >>
> >>>where none of the includes have a _. except for the "no-match"
> >>>catch all? That catch all is simply there to say "hey dummy,
> >>>there is no match in the dialplan. Try again."
> >>
> >>As I suggested:
> >>
> >>[no-match]
> >>exten => i,1,Answer
> >>exten => i,2,Playback(invalid,skip)
> >>exten => i,3,Hangup
> >>
> >>Am I missing something, or does the _. catchall catch an invalid extension 
> >>better than i?
> > 
> > 
> > Tried that, doesn't work. So far the only thing that can catch
> > an invalid extension is _. as shown above.
> 
> You mean you can only catch ONE DIGIT invalid extensions with _.  You 
> can catch all numeric extensions with _X.

No, I meant the "i" extension doesn't work.  The _. works fine as
as catch-all no-match kind of thing for the entire dialplan.





More information about the asterisk-dev mailing list