<html><body bgcolor="#FFFFFF"><div>"sleep" 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><br>On May 26, 2011, at 8:07 AM, virendra bhati <<a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a>> 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 => 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"><<a href="mailto:sherwood.mcgowan@gmail.com"><a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a></a>></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 href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait">http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait</a></a> confirmed that Wait does not work after a channel is hung up:</div>
<div>"<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 'h' extension), the Wait() application returns 0 immediately and no further processing of the 'h' extension priorities takes place. You can get around this with 'System(path/to/sleep Xs)', where 'X' is the number of seconds to wait. Nasty, but it works. "</span><br>
<br>Sent from my iPhone</div><div><div></div><div class="h5"><div><br>On May 26, 2011, at 6:00 AM, James zhu <<a href="mailto:zhulizhong@live.com" target="_blank"><a href="mailto:zhulizhong@live.com">zhulizhong@live.com</a></a>> 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<->SIP).<br>website: <a href="http://www.voipviews.com" target="_blank"><a href="http://www.voipviews.com">www.voipviews.com</a></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 href="mailto:virbhati@gmail.com">virbhati@gmail.com</a></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 href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a></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's work. But when we use after hangup the call then Asterisk don't wait from define time.<br>
<br>
Ex:- <br><br>[call_log]<br><br>exten => 4368,1,Answer()<br>exten => 4368,n,Flite("Welcome")<br>exten => 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d %H:%M:%S)})<br>exten => 4368,n,Set(__uniqueId=${UNIQUEID})<br>
<b>exten => 4368,n,Wait(20)</b> <b><span style="color:rgb(255, 0, 0)">; At this moment it's work.</span></b><br>exten => 4368,n,Hangup()<br><br><br>exten => h,1,NoOp(*******************Now wait(20) wouldn't work ***************** )<br>
exten => h,n,Wait(20) <b style="color:rgb(255, 0, 0)"> ; At this moment it's not work.</b><br>exten => 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 href="http://www.api-digital.com">http://www.api-digital.com</a></a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a href="http://www.asterisk.org/hello" target="_blank"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a>                                           
</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"><a href="http://www.api-digital.com">http://www.api-digital.com</a></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 href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></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 href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div>
</div></blockquote></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank"><a href="http://www.api-digital.com">http://www.api-digital.com</a></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 href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></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 href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></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><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">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"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></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"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>