> [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
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users