<font face="courier new, monospace" size="4">Hi,</font><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">I am creating a script in Lua to originate 2 calls, bridge them and then play a file using uuid_bridge and uuid_brodcast </font><span style="font-family:'courier new',monospace;font-size:large">but unable to get the result and call hangup.</span></div>
<div><font face="courier new, monospace" size="4">my code is as follows:</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace"><div style="font-size:large">
<div><b> cli = "1111";</b></div><div><b> caller = "1000";</b></div><div><b> dest = "1001";</b></div><div><b> profile= "internal";</b></div><div><b> param = "{ignore_early_media=flase,origination_caller_id_number="..cli.."}";</b></div>
<div><b><br></b></div><div><b> api = freeswitch.API();</b></div><div><b> domain = api:executeString("eval ${domain}");</b></div><div><b><br></b></div><div><b> file = "/usr/local/freeswitch/sounds/test_unset.wav";</b></div>
<div><b><br></b></div><div><b> session1 = freeswitch.Session(param.."sofia/"..profile.."/".. caller .."%"..domain);</b></div><div><b> session2 = freeswitch.Session(param.."sofia/"..profile.."/".. dest .."%"..domain);</b></div>
<div><b><br></b></div><div><b> uuid1 = tostring(session1:get_uuid());</b></div><div><b> uuid2 = tostring(session2:get_uuid());</b></div><div><b><br></b></div><div><b> api:executeString("uuid_bridge "..uuid1.." "..uuid2);</b></div>
<div><b> api:executeString("uuid_broadcast "..uuid1.." "..file.." aleg");</b></div></div><div style="font-size:large"><br></div><div style="font-size:large">and the fs_cli log is as :</div>
<div style="font-size:large"><br></div><div><div><font style="background-color:rgb(0,0,0)" color="#33ccff">2012-10-05 22:06:57.386448 [NOTICE] sofia.c:6318 Channel [sofia/internal/1001] has been answered</font></div><div>
<font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1001) Running State Change CS_SOFT_EXECUTE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] switch_core_state_machine.c:423 (sofia/internal/1001) State SOFT_EXECUTE</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] mod_sofia.c:588 SOFIA SOFT_EXECUTE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] switch_core_state_machine.c:241 sofia/internal/1001 Standard SOFT_EXECUTE</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] switch_core_state_machine.c:423 (sofia/internal/1001) State SOFT_EXECUTE going to sleep</font></div><div><font style="background-color:rgb(0,0,0)" color="#33ff33">2012-10-05 22:06:57.406452 [INFO] switch_channel.c:2711 sofia/internal/1001 Flipping CID from "" <1111> to "Outbound Call" <1001%192.168.0.19></font></div>
<div><font style="background-color:rgb(0,0,0)" color="#33ff33">2012-10-05 22:06:57.406452 [INFO] switch_channel.c:2711 sofia/internal/1000 Flipping CID from "" <1111> to "Outbound Call" <1000%192.168.0.19></font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] switch_ivr_bridge.c:1619 (sofia/internal/1000) State Change CS_SOFT_EXECUTE -> CS_HIBERNATE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.406452 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000) Running State Change CS_HIBERNATE</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:1205 Send signal sofia/internal/1000 [BREAK]</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:432 (sofia/internal/1000) State HIBERNATE</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] mod_sofia.c:222 sofia/internal/1000 SOFIA HIBERNATE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_ivr_bridge.c:749 (sofia/internal/1000) State Change CS_HIBERNATE -> CS_RESET</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:1205 Send signal sofia/internal/1000 [BREAK]</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:432 (sofia/internal/1000) State HIBERNATE going to sleep</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000) Running State Change CS_RESET</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:413 (sofia/internal/1000) State RESET</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] mod_sofia.c:166 sofia/internal/1000 SOFIA RESET</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_ivr_bridge.c:734 sofia/internal/1000 CUSTOM RESET</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_ivr_bridge.c:741 (sofia/internal/1000) State Change CS_RESET -> CS_SOFT_EXECUTE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:1205 Send signal sofia/internal/1000 [BREAK]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:413 (sofia/internal/1000) State RESET going to sleep</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000) Running State Change CS_SOFT_EXECUTE</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:423 (sofia/internal/1000) State SOFT_EXECUTE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] mod_sofia.c:588 SOFIA SOFT_EXECUTE</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_ivr_bridge.c:759 sofia/internal/1000 CUSTOM SOFT_EXECUTE</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_channel.c:2849 (sofia/internal/1001) Callstate Change ACTIVE -> HANGUP</font></div>
<div><font color="#33ffff" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [NOTICE] switch_ivr_originate.c:1056 Hangup sofia/internal/1001 [CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_channel.c:2872 Send signal sofia/internal/1001 [KILL]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1001) Running State Change CS_HANGUP</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1001) State HANGUP</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] mod_sofia.c:469 Channel sofia/internal/1001 hanging up, cause: DESTINATION_OUT_OF_ORDER</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:1205 Send signal sofia/internal/1001 [BREAK]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_channel.c:2849 (sofia/internal/1000) Callstate Change ACTIVE -> HANGUP</font></div><div><font color="#33ccff" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [NOTICE] switch_ivr_bridge.c:817 Hangup sofia/internal/1000 [CS_SOFT_EXECUTE] [ORIGINATOR_CANCEL]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_channel.c:2872 Send signal sofia/internal/1000 [KILL]</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:1205 Send signal sofia/internal/1000 [BREAK]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:423 (sofia/internal/1000) State SOFT_EXECUTE going to sleep</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000) Running State Change CS_HANGUP</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:816 Send signal sofia/internal/1001 [BREAK]</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] switch_core_session.c:816 Send signal sofia/internal/1000 [BREAK]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.426425 [DEBUG] mod_sofia.c:517 Sending BYE to sofia/internal/1001</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_cpp.cpp:1007 sofia/internal/1001 destroy/unlink session from object</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_cpp.cpp:1007 sofia/internal/1000 destroy/unlink session from object</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1000) State HANGUP</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_core_state_machine.c:47 sofia/internal/1001 Standard HANGUP, cause: DESTINATION_OUT_OF_ORDER</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1001) State HANGUP going to sleep</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_core_state_machine.c:393 (sofia/internal/1001) State Change CS_HANGUP -> CS_REPORTING</font></div><div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_core_session.c:1205 Send signal sofia/internal/1001 [BREAK]</font></div>
<div><font color="#ffff33" style="background-color:rgb(0,0,0)">2012-10-05 22:06:57.446365 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1001) Running State Change CS_REPORTING</font></div></div><div style="font-size:large">
<br></div><div style="font-size:large">and the complete fs_cli log is here : <a href="http://pastebin.freeswitch.org/19992">http://pastebin.freeswitch.org/19992</a></div></font><font face="courier new, monospace"><div style="font-size:large">
<br></div><div style="font-size:large">I AM USING CentOS 6.2, and FreeSWITCH Version 1.1.beta1 (git-65c4f76 2012-04-25 17-58-41 +0000)</div><div style="font-size:large"><br></div><div style="font-size:large">kindly help me and your response is highly appreciated.</div>
<div style="font-size:large"><br></div><div style="font-size:large">Regards</div><div style="font-size:large"><br></div><div style="font-size:large">Shahzad Bhatti.</div></font></div>