[Asterisk-Users] playing "invalid" to an internal user
Nabeel Jafferali
nabeel at jafferali.net
Sat Mar 12 22:25:56 MST 2005
> [invalid]
> exten => _.,1,Answer
> exten => _.,2,Playback(pbx-invalid)
> exten => _.,3,Hangup()
>
> asterisk is playing "invalid" message twice, WHY?
>
> -- Executing Answer("SIP/11-df84", "") in new stack
> -- Executing Playback("SIP/11-df84", "pbx-invalid") in new stack
> -- Playing 'pbx-invalid' (language 'en')
> -- Executing Hangup("SIP/11-df84", "") in new stack
> == Spawn extension (internal, 6541, 3) exited non-zero on
> 'SIP/11-df84'
> -- Executing Answer("SIP/11-df84", "") in new stack
> -- Executing Playback("SIP/11-df84", "pbx-invalid") in new stack
> -- Playing 'pbx-invalid' (language 'en')
> -- Executing Hangup("SIP/11-df84", "") in new stack
> == Spawn extension (internal, h, 3) exited non-zero on 'SIP/11-df84'
The '_.' captures the 'h' context as well. Therefore, the
'_.,3,Hangup()' causes it to look for 'h,1' which matches '_.,1'. Change
it to '_X.,1,Answer...' and that should fix the issue you are having.
Nabeel
More information about the asterisk-users
mailing list