[Freeswitch-users] call_timeout and lua in dialplan

Vincent Xia gmangudai at gmail.com
Sat Jun 29 13:00:56 MSD 2013


in a dialplan extension, i have
<action application="set" data="call_timeout=30" />
then

<action application="lua" data="bridge.lua ${effective_caller_id_number}
$1">
in which call bridging is to be processed, after this, is

<action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}" />
to transfer the call to voicemail.

the purpose is to test no-answer till timeout and see if the call is
transferred as planned.

but nothing happened untill 60 secs after the dial, which is the default
value of call_timeout.

in my understanding, when lua takes over, the channel variable call_timeout
is no longer effective and will not affect what happens in lua script, so i
tried

session:execute("set", "call_timeout=30");
in bridge.lua, but the problem is still there.

how to make call_timeout work with lua, could anyone figure this out?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130629/fee3bfd5/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list