got it, thanks a lot!


2013/6/30 Avi Marcus <avi@avimarcus.net>
Try https://wiki.freeswitch.org/wiki/Variable_leg_timeout in the actual bridge string, e.g.:
<action application="bridge" data="[leg_timeout=15]user/hastoanswerquickly/some.domain.com,[leg_timeout=60]user/hasaminutetoanswer@some.domain.com"/>

-Avi

On Sat, Jun 29, 2013 at 12:00 PM, Vincent Xia <gmangudai@gmail.com> wrote:

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?

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org