[Freeswitch-users] call_timeout and lua in dialplan

Vincent Xia gmangudai at gmail.com
Mon Jul 1 05:32:16 MSD 2013


got it, thanks a lot!


2013/6/30 Avi Marcus <avi at 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 at some.domain.com"/>
>
>
> -Avi
>
> On Sat, Jun 29, 2013 at 12:00 PM, Vincent Xia <gmangudai at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20130701/0e1e0c4d/attachment.html 


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