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&#39;t play while the lua script is placing the second call. When the lua script ends, the hold music finally starts. </div><div>Here&#39;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(&quot;bgapi uuid_park &quot; .. 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(&quot;bgapi uuid_broadcast &quot; .. tostring(session.uuid)  .. &quot; /freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav&quot;)</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(&quot;sofia/gateway/myprovider/15555555555&quot;)</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&#39;m using bgapi.  I&#39;d really appreciate if somebody could help me with this.</div>
<div><br></div><div>By the way, I&#39;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>