<div dir="ltr">HI,<br><br><a href="http://ss64.com/bash/sleep.html">http://ss64.com/bash/sleep.html</a><br><br>link define the same but not any help is provided from here . If you have any idea how system() command run any bash file then I will do it <br>
<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 6:44 PM, Sherwood McGowan <span dir="ltr">&lt;<a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>&quot;sleep&quot; is a Bash command, the author was illustrating that you must include the full path to the binary <br><br>Sent from my iPhone</div><div><div></div><div class="h5"><div><br>On May 26, 2011, at 8:07 AM, virendra bhati &lt;<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>&gt; wrote:<br>
<br></div><div></div><blockquote type="cite"><div><div dir="ltr">Hi ,<br><br>Thanks for reply ..<br>What is the meaning of that line which you have mention on the recent conversation <br><br><span style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px">System(path/to/sleep Xs)<br>

<br></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px">path/to/sleep =&gt; is the paths of any php script where sleep function is mention </span>or anything else ? <br>please illustrate if it is possible .... <br>

<br><div class="gmail_quote">On Thu, May 26, 2011 at 4:43 PM, Sherwood McGowan <span dir="ltr">&lt;<a href="mailto:sherwood.mcgowan@gmail.com" target="_blank"></a><a href="mailto:sherwood.mcgowan@gmail.com" target="_blank">sherwood.mcgowan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF"><div>Wait is not ONLY for use with Answer, that just happens to be a common use.</div><div><br></div><div>To answer the OP, a quick look at <a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait" target="_blank"></a><a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait</a> confirmed that Wait does not work after a channel is hung up:</div>

<div>&quot;<span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px">If Wait() is run on a channel which has been hung up (i.e. from the &#39;h&#39; extension), the Wait() application returns 0 immediately and no further processing of the &#39;h&#39; extension priorities takes place. You can get around this with &#39;System(path/to/sleep Xs)&#39;, where &#39;X&#39; is the number of seconds to wait. Nasty, but it works. &quot;</span><br>

<br>Sent from my iPhone</div><div><div></div><div><div><br>On May 26, 2011, at 6:00 AM, James zhu &lt;<a href="mailto:zhulizhong@live.com" target="_blank"></a><a href="mailto:zhulizhong@live.com" target="_blank">zhulizhong@live.com</a>&gt; wrote:<br>
<br></div><div></div>
<blockquote type="cite"><div>
hi:<br>i think the wait is used for answer command.  please show any debug info?<br><br>Best regards,<br>James.zhu<br>Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, gateway(fxs/fxo/pri&lt;-&gt;SIP).<br>website: <a href="http://www.voipviews.com" target="_blank"></a><a href="http://www.voipviews.com" target="_blank">www.voipviews.com</a> <br>

<br><br><br><br><hr>Date: Thu, 26 May 2011 16:15:31 +0530<br>From: <a href="mailto:virbhati@gmail.com" target="_blank"></a><a href="mailto:virbhati@gmail.com" target="_blank"></a><a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a><br>
To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank"></a><a href="mailto:asterisk-users@lists.digium.com" target="_blank"></a><a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>

Subject: [asterisk-users] Is this Asterisk issue of feature<br><br><div dir="ltr">Hi List,<br><br>I am confuse about this feature.<br>When we use Wait(20)  in active call session then it&#39;s work. But when we use after hangup the call then Asterisk don&#39;t wait from define time.<br>

<br>
Ex:- <br><br>[call_log]<br><br>exten =&gt; 4368,1,Answer()<br>exten =&gt; 4368,n,Flite(&quot;Welcome&quot;)<br>exten =&gt; 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d %H:%M:%S)})<br>exten =&gt; 4368,n,Set(__uniqueId=${UNIQUEID})<br>


<b>exten =&gt; 4368,n,Wait(20)</b> <b><span style="color:rgb(255, 0, 0)">; At this moment it&#39;s work.</span></b><br>exten =&gt; 4368,n,Hangup()<br><br><br>exten =&gt; h,1,NoOp(*******************Now wait(20) wouldn&#39;t work ***************** )<br>


exten =&gt; h,n,Wait(20)     <b style="color:rgb(255, 0, 0)">  ; At this moment it&#39;s not work.</b><br>exten =&gt; h,n,NoOp(*******************never come  into execution ******************)<br>  <br clear="all"><div dir="ltr">


-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Asterisk Engineer<br></div><br>
</div>
<br>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a>                                               
</div></blockquote></div></div><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><div><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --</span><br>

<span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span>               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br>

<span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>

</div></blockquote></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"></a><a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br><br>
<br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Asterisk Engineer<br></div><br>
</div>
</div></blockquote></div></div><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><div class="im"><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --</span><br>
<span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span>               <a href="http://www.asterisk.org/hello" target="_blank"></a><a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br>
<span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"></a><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
</div></blockquote></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br><br>
<br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Asterisk Engineer<br></div><br>
</div>