<div dir="ltr"><div><br></div><div>in a dialplan extension, i have</div><div><action application="set" data="call_timeout=30" /></div><div>then</div><div><br></div><div><action application="lua" data="bridge.lua ${effective_caller_id_number} $1"></div>
<div>in which call bridging is to be processed, after this, is</div><div><br></div><div><action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}" /></div>
<div>to transfer the call to voicemail.</div><div><br></div><div>the purpose is to test no-answer till timeout and see if the call is transferred as planned.</div><div><br></div><div>but nothing happened untill 60 secs after the dial, which is the default value of call_timeout.</div>
<div><br></div><div>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</div><div><br></div><div>session:execute("set", "call_timeout=30");</div>
<div>in bridge.lua, but the problem is still there.</div><div><br></div><div>how to make call_timeout work with lua, could anyone figure this out?</div></div>