I just tried what you suggested - it executes the sleep for 10 seconds, then skips down to the hangup, without copying the call file to begin the callback.&nbsp; <br><br>However, I then broke the system command into two lines like this:
<br><br>exten =&gt;h,1,System(sleep 10) <br>exten =&gt;h,2,System(cp /etc/asterisk/callback.info&nbsp; /var/spool/asterisk/outgoing)<br><br>and it worked perfectly.&nbsp; Problem solved.&nbsp; Thanks.<br><br><div><span class="gmail_quote">
On 2/7/07, <b class="gmail_sendername">Yuan LIU</b> &lt;<a href="mailto:yliu11@hotmail.com">yliu11@hotmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div><font style="font-size: 11px; font-family: tahoma,sans-serif;">From:&nbsp;&nbsp;<i>&quot;Robert DeVries&quot; <a href="mailto:rdlists@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rdlists@gmail.com</a></i></font></div><div><span class="e" id="q_1109dd8cdb039a67_1">
<blockquote style="border-left: 2px solid rgb(160, 198, 229); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div></div><br>I am trying to get called back with a DISA dial tone when I call a trigger number.&nbsp; I got it to work almost the way I want, this is the callback context:<br><br>[callback]<br><br>exten=&gt; 501,1,Congestion() 
<br>exten=&gt; 501,2,Hangup()
<div></div><br>exten =&gt;h,1,System(cp /etc/asterisk/callback.info&nbsp; /var/spool/asterisk/outgoing)<br>exten =&gt;h,2,Hangup() <br><br>With the above, the call comes into the trigger number, then the call file is copied and executed, I get the DISA dial tone, and can dial just fine.
<div></div><br><br>However, the problem is that the callback is a bit too fast, and sometimes calls back before I can hang up, even if I hang up fast.&nbsp; I want to program in a pause.&nbsp; However, when I do the following:<br>
<br>exten=&gt; 501,1,Congestion()
<div></div><br>
<div></div>exten=&gt; 501,2,Hangup()<br>
<div></div>exten =&gt;h,1,wait (10)<br>
<div></div>exten =&gt;h,2,System(cp /etc/asterisk/callback.info&nbsp; /var/spool/asterisk/outgoing)<br>
<div></div>
<p>exten =&gt;h,3,Hangup() <br><br>the callback never occurs, the execution never gets beyond the wait command.<br><br>So, two questions - why does it not execute once I insert the wait command, and how do I get a wait before the call file is run. 
</p></blockquote></span></div>
<p>People who know will answer the first question.&nbsp; But the second question has a ready answer: if you are using System(), why not insert a sleep right there?</p>
<p>exten =&gt;h,1,System(sleep 10; cp /etc/asterisk/callback.info&nbsp; /var/spool/asterisk/outgoing)<br></p>
<p>Hope this helps.</p>
<p>Yuan Liu</p></div>

<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br></blockquote></div><br>