Actually, I am looking into ways to accomplish these. They are somewhat related to some recipes I am doing for the FS Cookbook. Please stand by. FYI, I am looking at an ESL-based solution, not a dialplan script. Thus far I have not found a viable way to do async stuff like this from a dp script and I'm thinking ESL is the way to go. I will report back in a bit.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Wed, Jun 15, 2011 at 9:53 PM, Sidharth Kshatriya <span dir="ltr"><<a href="mailto:sid.kshatriya@gmail.com">sid.kshatriya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am implementing an IVR using Lua in Freeswitch. In my Lua script I use curl to a web service. Sometimes the response takes a long time to come back. During that time period I would like to play music on hold.<br><br>I have searched the freeswitch discussion archives a lot. There seem to be many suggested ways to implement music on hold from a Lua script but the answers are not very clear / not really applicable to my use case. I don't know what method I should use and which one is recommended.<br>
<br><b>Method 1:</b> Transfer the call to 9664 (music on hold extension). However the implementation for this solution for this does not seem to be available in Lua. For example: How would I transfer the call back?<br><b>Method 2:</b> Using bgapi uuid_park park the call and using uuid_broadcast play an audio file. Again what do I do to unpark the call..?<br>
<br>Thanks,<br><br>Sidharth<br clear="all">[P.S. This is a repost, I apologize but I never got any responses on my previous email. Need help! :-) ]<br><font color="#888888"> <br>-- <br>Sidharth Kshatriya<br><a href="http://www.sidk.info" target="_blank">www.sidk.info</a><br>
<br>
</font><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>