[Freeswitch-users] Advice using mod_curl

Cal Leeming [Simplicity Media Ltd] cal.leeming at simplicitymedialtd.co.uk
Fri May 10 23:13:44 MSD 2013


Hello,

Can I ask why your web service is taking several seconds to respond? Could
you not speed this up?

As far as I'm aware, telling mod_curl to play music when a request is being
executed is really not the right way to look at it. If you need to retrieve
data from an external service that will take several seconds, you would
place the call into hold or into a parking queue, execute the request, then
come back.. however you'd do this within the mod_curl response, rather than
it happening on a mod_curl call itself. For example, you could get the
mod_curl to response immediately, then use a mixture of
httpapi/includes/parking to achieve your goal..

Perhaps someone else might be able to offer a cleaner solution, but that's
the best I can think of at the moment.

Hope this helps!

Cal

On Fri, May 10, 2013 at 7:49 PM, Saugort Dario Garcia Tovar <
dgarcia at anew.com.ve> wrote:

>  Hi,
>
> I have lua script. the script is similar to the one in
> http://wiki.freeswitch.org/wiki/Mod_curl (lua usage)
>
> The script access a web service and get some data. The script work fine
> for my needs. However, sometimes when the script access the web service
> take several seconds to get the data, and the caller ear silence. Is it
> possible to play a sound file as long the script try to get the data from
> the web service?
>
>
> --
> Atentamente,
> *Dario García*
> Consultor.
>
> CCCT, Nivel C2, Sector Yarey, Mz,
> Ofc. MZ03a.
> Caracas-Venezuela.
> Teléfono: +58 212 9081842
> Cel: +58 412 2221515
> dgarcia at anew.com.ve
> http://www.anew.com.ve
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130510/cc1928f3/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list