Please Use DIALSTATUS Application variable<br><br><span style="font-family: monospace;"> </span><br><span style="font-family: monospace;"> </span><br><span style="font-family: monospace;"> </span><span style="font-family: arial,helvetica,sans-serif;">exten => s,n,Dial(${ARG1},${ARG2},${ARG3},${ARG4})
</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten => s,n,Goto(s-${DIALSTATUS},1)
</span><br style="font-family: arial,helvetica,sans-serif;">
<br>exten => s-ANSWER,1,Noop(please do action in next priority)<br>exten => s-ANSWER,2,Playback(demo-instruct)<br><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten => s-CANCEL,1,Hangup
</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten => s-NOANSWER,1,Set(DTIME=$[${EPOCH} - ${DIALSTART}])
</span><br> exten => s-NOANSWER,2,,Hangup()<span style="font-family: arial,helvetica,sans-serif;"> </span><span style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;"></span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;"> exten => s-BUSY,1,Busy
</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten => s-CHANUNAVAIL,1,hangup</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten => s-CONGESTION,1,Congestion
</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"></span><span style="font-family: arial,helvetica,sans-serif;"></span><br><br><div class="gmail_quote">On Mon, Aug 17, 2009 at 8:24 AM, 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;">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>
<div><div></div><div class="h5"><br>
<br>
<br>
On Fri, Aug 14, 2009 at 6:32 PM, Trevor Hammonds<<a href="mailto:trevor@concipient.net">trevor@concipient.net</a>> 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>
</div></div></blockquote></div><br>