<div dir="ltr"><div><br></div><div>in a dialplan extension, i have</div><div>&lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot; /&gt;</div><div>then</div><div><br></div><div>&lt;action application=&quot;lua&quot; data=&quot;bridge.lua ${effective_caller_id_number} $1&quot;&gt;</div>
<div>in which call bridging is to be processed, after this, is</div><div><br></div><div>&lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot; /&gt;</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(&quot;set&quot;, &quot;call_timeout=30&quot;);</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>