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?