Hi all,<div><br></div><div>I want to park an inbound call and play hold music while I simultaneously place another outbound call.
<div>But the hold music doesn't play while the lua script is placing the second call. When the lua script ends, the hold music finally starts. </div><div>Here's my example code:</div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099">#!/usr/local/bin/lua</font></span></div></div></div><div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099"> </font></span></div>
</div></div><div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099">session:answer()</font></span></div></div></div><div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099">api = freeswitch.API()</font></span></div>
</div></div><div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099">api:executeString("bgapi uuid_park " .. tostring(session.uuid))</font></span></div>
</div></div><div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099">api:executeString("bgapi uuid_broadcast " .. tostring(session.uuid) .. " /freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav")</font></span></div>
</div></div><div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" color="#000099">local new_session = freeswitch.Session("sofia/gateway/myprovider/15555555555")</font></span></div>
</div></div></blockquote><div><div><div><br></div><div>So it seems like the script is blocking the original session, despite the fact that I'm using bgapi. I'd really appreciate if somebody could help me with this.</div>
<div><br></div><div>By the way, I'm using FreeSWITCH 1.0.4 in Windows.</div><div><br></div><div>Thanks,</div><div>Adam</div><div><br></div><div><br></div></div></div>