[Freeswitch-users] How to make Lua script wait few seconds and then answer a call

Nandy Dagondon nandy1925 at gmail.com
Wed Apr 7 15:37:08 PDT 2010


hi vitalii,

just add this line into your Lua script:
session:execute("sleep","5000")

i hope this is what you need.
-nandy


On Thu, Apr 8, 2010 at 5:17 AM, Vitalii Colosov <vetali100 at gmail.com> wrote:

> Hi dear community,
>
> I am using a Lua script that is being executed when a call reaches a
> particular extension, say 1001.
> It works ok, but it answers immediately when call reaches the system.
>
> 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?
>
> Thank you,
> Vitalie
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100408/9b4d8535/attachment.html 


More information about the FreeSWITCH-users mailing list