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 =&gt; 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 =&gt; s,n,Goto(s-${DIALSTATUS},1)
</span><br style="font-family: arial,helvetica,sans-serif;">
<br>exten =&gt; s-ANSWER,1,Noop(please do action in next priority)<br>exten =&gt; s-ANSWER,2,Playback(demo-instruct)<br><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten =&gt; s-CANCEL,1,Hangup
</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten =&gt; s-NOANSWER,1,Set(DTIME=$[${EPOCH} - ${DIALSTART}])
</span><br> exten =&gt; 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 =&gt; s-BUSY,1,Busy
</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten =&gt; s-CHANUNAVAIL,1,hangup</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> exten =&gt; 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">&lt;<a href="mailto:maillisting@gmail.com">maillisting@gmail.com</a>&gt;</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&#39;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&lt;<a href="mailto:trevor@concipient.net">trevor@concipient.net</a>&gt; wrote:<br>
&gt; On Friday, August 14, 2009, Rilawich Ango wrote:<br>
&gt;<br>
&gt;&gt;Hi,<br>
&gt;&gt;<br>
&gt;&gt;  Can I play a prompt after hanging up a call?  I have tried below but<br>
&gt; failed.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;...<br>
&gt;&gt;exten =&gt; s,n,Dial(SIP/1234)<br>
&gt;&gt;...<br>
&gt;&gt;<br>
&gt;&gt;exten =&gt; h,1,Playback(demo-instruct)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;    -- Executing [h@macro-safedial:2] Playback(&quot;SIP/3601-09856bf0&quot;,<br>
&gt;&gt;&quot;demo-instruct&quot;) in new stack<br>
&gt;&gt;[Aug 14 17:24:03] WARNING[2496]: file.c:738 ast_readaudio_callback:<br>
&gt;&gt;Failed to write frame<br>
&gt;&gt;    -- &lt;SIP/3601-09856bf0&gt; Playing &#39;demo-instruct&#39; (language &#39;en&#39;)<br>
&gt;<br>
&gt; Rilawich,<br>
&gt;<br>
&gt; If the channel has been hung up, where do you expect the prompt to be<br>
&gt; played?<br>
&gt;<br>
&gt; Sincerely,<br>
&gt; Trevor Hammonds<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
&gt; Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<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>