<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Hi all, I am new in this list and this is my first email to this group. </div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">I need help regarding Bridge application using Lua script.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">I want to set the auto hangup for a bridge call in lua script. my script originate leg-A to local extension and then originate leg-b to a carrier and then bridge two legs. I want to hangup the leg-b after some seconds say 20 seconds.</div><div><font size="3">I did the </font>available<font size="3"> option, but nothing worked for me. Please help me. </font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div
style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Here is my lua code.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">----------------------------------------------------------------------------------------------------------------</div><div><div>originate_str1 = "{origination_caller_id_number=".. caller.. ",effective_caller_id_number=".. caller ..",originate_timeout=45,ignore_early_media=true}sofia/internal/".. caller .."%" ..domain .."";</div><div><br></div><div>originate_str2 = "{origination_caller_id_number=".. callee.. ",effective_caller_id_number=".. callee ..",originate_timeout=60,<span style="background-color: rgb(255, 191, 128);">sched_hangup=20</span>,ignore_early_media=true}sofia/internal/".. carrier_dial_prefix1 .. callee .."%" ..carrier_gateway1 .."";<br></div><div><br></div><div>session1 =
freeswitch.Session(originate_str1);<br></div><div>session2 = freeswitch.Session(originate_str2);</div><div><div>freeswitch.bridge(session1, session2);</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><span style="font-size: 12pt; ">Thanks! </span><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Faheem Muhammad</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div></div></div> </div></body></html>