[Asterisk-Users] Ext matching problems

Jason Williams jas.williams at gmail.com
Wed Mar 30 06:28:17 MST 2005


On Mon, 21 Mar 2005 15:03:14 -0400, Francisco Moreno
<fmoreno at netcomvoice.com> wrote:
> 
> Now, when I dial from any of the ext. to '0' It actually matches the
> '0', plays the goodbye message, but doesn't hangup but gets directly to
> the 'pasvalide' context. Same thing happens when I dial to the ext. 1002
> (the one that doesn't have voicemail), either it rings further than
> 10secs or it's busy, it does not hangup but gets straight to the
> 'pasvalide' context. As far as I understood, it should not happen, it
> should go through the dialplan leaving those context included at the end
> and in the orther they are included.


your pavalide context is the problem

[pasvalide]
exten => _.,1,Answer()
exten => _.,2,Playback(invalid)
exten => _.,3,Playback(goodbye)
exten => _.,4,Hangup()

_. matches all numbers including h which means hangup, change pasvalide to this


[pasvalide]
exten => _X.,1,Answer()
exten => _X.,2,Playback(invalid)
exten => _X.,3,Playback(goodbye)
exten => _X.,4,Hangup()

And all should be good


Jason



More information about the asterisk-users mailing list