Hello,<div><br>Can I ask why your web service is taking several seconds to respond? Could you not speed this up?</div><div><br></div><div>As far as I&#39;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&#39;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.. </div>
<div><br></div><div>Perhaps someone else might be able to offer a cleaner solution, but that&#39;s the best I can think of at the moment.</div><div><br></div><div>Hope this helps!</div><div><br></div><div>Cal</div><div><br>
<div class="gmail_quote">On Fri, May 10, 2013 at 7:49 PM, Saugort Dario Garcia Tovar <span dir="ltr">&lt;<a href="mailto:dgarcia@anew.com.ve" target="_blank">dgarcia@anew.com.ve</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I have lua script. the script is similar to the one in <a href="http://wiki.freeswitch.org/wiki/Mod_curl" target="_blank">http://wiki.freeswitch.org/wiki/Mod_curl</a>
    (lua usage)<br>
    <br>
    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?<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <br>
    <div>-- <br>
      Atentamente,
      <br>
      <b>Dario García</b>
      <br>
      Consultor.
      <br>
      <br>
      CCCT, Nivel C2, Sector Yarey, Mz, <br>
      Ofc. MZ03a. <br>
      Caracas-Venezuela.
      <br>
      Teléfono: <a href="tel:%2B58%20212%209081842" value="+582129081842" target="_blank">+58 212 9081842</a>
      <br>
      Cel: <a href="tel:%2B58%20412%202221515" value="+584122221515" target="_blank">+58 412 2221515</a>
      <br>
      <a href="mailto:dgarcia@anew.com.ve" target="_blank">dgarcia@anew.com.ve</a>
      <br>
      <a href="http://www.anew.com.ve" target="_blank">http://www.anew.com.ve</a></div>
  </font></span></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>