hi vitalii,<br><br>just add this line into your Lua script:<br>session:execute(&quot;sleep&quot;,&quot;5000&quot;)<br><br>i hope this is what you need.<br>-nandy<br>
<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 5:17 AM, Vitalii Colosov <span dir="ltr">&lt;<a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi dear community,<div><br></div><div>I am using a Lua script that is being executed when a call reaches a particular extension, say 1001.</div><div>It works ok, but it answers immediately when call reaches the system.</div>

<div><br></div><div>How can I make it to wait 5-10 seconds (so the caller will hear several ringtones) and only after that the Lua script should answer and start the processing?</div><div><br></div><div>Thank you,</div><div>

Vitalie</div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>