* is playing "invalid" message twice. I have: [internal] include => outgoing ; include the outgoing context include => voicemail ... include => invalid [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' -- #Joseph
Nabeel Jafferali
2005-Mar-12 22:25 UTC
[Asterisk-Users] playing "invalid" to an internal user
> [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