[Freeswitch-users] Want to play music on hold while executing a time consuming operation in Lua
Sidharth Kshatriya
sid.kshatriya at gmail.com
Fri Jun 17 01:56:44 MSD 2011
Thanks Michael. This is quite a mainstream requirement :-) ! Not everyone
uses ESL. Is there no way we can "hack" this in Lua?
Will await your research,
Sidharth
On Thu, Jun 16, 2011 at 11:51 PM, Michael Collins <msc at freeswitch.org>wrote:
> 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.
>
> -MC
>
> On Wed, Jun 15, 2011 at 9:53 PM, Sidharth Kshatriya <
> sid.kshatriya at 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
>> [P.S. This is a repost, I apologize but I never got any responses on my
>> previous email. Need help! :-) ]
>>
>> --
>> Sidharth Kshatriya
>> www.sidk.info
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
--
Sidharth Kshatriya
www.sidk.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110617/dbe64d43/attachment.html
More information about the FreeSWITCH-users
mailing list