can you send your dialplan <br>it should work<br><br><div class="gmail_quote">On Mon, Aug 17, 2009 at 2:39 PM, Rilawich Ango <span dir="ltr"><<a href="mailto:maillisting@gmail.com">maillisting@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks. DIALSTATUS works except ANSWER. When the phone hangup, the<br>
dialplan doesn't go to s-ANSWER.<br>
<br>
-- Executing [3001@default:12] Dial("SIP/10.31.0.32-09872150",<br>
"SIP/3001|50|Tt") in new stack<br>
-- Called 3001<br>
-- SIP/3001-0986d1d8 is ringing<br>
-- SIP/3001-0986d1d8 answered SIP/10.31.0.32-09872150<br>
== Spawn extension (default, 3001, 12) exited non-zero on<br>
'SIP/10.31.0.32-09872150'<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Mon, Aug 17, 2009 at 3:12 PM, DHAVAL<br>
INDRODIYA<<a href="mailto:dhaval.it01034@gmail.com">dhaval.it01034@gmail.com</a>> wrote:<br>
> Please Use DIALSTATUS Application variable<br>
><br>
><br>
><br>
> exten => s,n,Dial(${ARG1},${ARG2},${ARG3},${ARG4})<br>
> exten => s,n,Goto(s-${DIALSTATUS},1)<br>
><br>
> exten => s-ANSWER,1,Noop(please do action in next priority)<br>
> exten => s-ANSWER,2,Playback(demo-instruct)<br>
><br>
> exten => s-CANCEL,1,Hangup<br>
> exten => s-NOANSWER,1,Set(DTIME=$[${EPOCH} - ${DIALSTART}])<br>
> exten => s-NOANSWER,2,,Hangup()<br>
> exten => s-BUSY,1,Busy<br>
> exten => s-CHANUNAVAIL,1,hangup<br>
> exten => s-CONGESTION,1,Congestion<br>
><br>
><br>
> On Mon, Aug 17, 2009 at 8:24 AM, Rilawich Ango <<a href="mailto:maillisting@gmail.com">maillisting@gmail.com</a>><br>
> wrote:<br>
>><br>
>> HI,<br>
>><br>
>> Actually, I want to do the following.<br>
>> A (user) talks to B (CS). At the end of the talk, B hangup and A will<br>
>> goto the survey system. That's why I need to play prompt for the user<br>
>> after hangup. Is it possible?<br>
>><br>
>><br>
>><br>
>> On Fri, Aug 14, 2009 at 6:32 PM, Trevor Hammonds<<a href="mailto:trevor@concipient.net">trevor@concipient.net</a>><br>
>> wrote:<br>
>> > On Friday, August 14, 2009, Rilawich Ango wrote:<br>
>> ><br>
>> >>Hi,<br>
>> >><br>
>> >> Can I play a prompt after hanging up a call? I have tried below but<br>
>> > failed.<br>
>> >><br>
>> >><br>
>> >>...<br>
>> >>exten => s,n,Dial(SIP/1234)<br>
>> >>...<br>
>> >><br>
>> >>exten => h,1,Playback(demo-instruct)<br>
>> >><br>
>> >><br>
>> >> -- Executing [h@macro-safedial:2] Playback("SIP/3601-09856bf0",<br>
>> >>"demo-instruct") in new stack<br>
>> >>[Aug 14 17:24:03] WARNING[2496]: file.c:738 ast_readaudio_callback:<br>
>> >>Failed to write frame<br>
>> >> -- <SIP/3601-09856bf0> Playing 'demo-instruct' (language 'en')<br>
>> ><br>
>> > Rilawich,<br>
>> ><br>
>> > If the channel has been hung up, where do you expect the prompt to be<br>
>> > played?<br>
>> ><br>
>> > Sincerely,<br>
>> > Trevor Hammonds<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>> ><br>
>> > AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
>> > Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
>> ><br>
>> > asterisk-users mailing list<br>
>> > To UNSUBSCRIBE or update options visit:<br>
>> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>><br>
>> AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
>> Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
>><br>
>> asterisk-users mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
> Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>