Want to play music on hold while executing a time consuming operation in Lua
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. 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. *Method 1:* 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? *Method 2:* Using bgapi uuid_park park the call and using uuid_broadcast play an audio file. Again what do I do to unpark the call..? Thanks, Sidharth -- Sidharth Kshatriya www.sidk.info
Any help guys ? On Tue, Jun 14, 2011 at 8:51 PM, Sidharth Kshatriya <sid.kshatriya@gmail.com
wrote:
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.
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.
*Method 1:* 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? *Method 2:* Using bgapi uuid_park park the call and using uuid_broadcast play an audio file. Again what do I do to unpark the call..?
Thanks,
Sidharth -- Sidharth Kshatriya www.sidk.info
-- Sidharth Kshatriya www.sidk.info
participants (1)
-
Sidharth Kshatriya