<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Cal for your answer,<br>
      <br>
      Well, The web service is not in my control. The slowly response
      could be due to web server issues, network, internet conection,
      webservice itself, etc. In my country, quck and stable internet
      access is not granted as is in other countries. I suspect is due
      to network and internet conections.<br>
      <br>
      Before open this thread, I got some ideas in how to do it. I just
      wanted to know how other fs user do it.<br>
      <br>
      I tried to put the call in hold:<br>
      &nbsp;&nbsp;&nbsp; 1. Tring to transfer the call to music_hod (9664) ... but I
      got stuck, how I retrieve/recover/unhold the call?<br>
      &nbsp;&nbsp;&nbsp; 2. I tried using other fs way like uuid_hold,&nbsp; the call seems
      to be somewhere, no music is played, and then I got stuck, how I
      retrieve/recover/unhold the call? How uuid_hold should be used?<br>
      <br>
      I will try httpapi.<br>
      <br>
      Any suggestion, will be welcome<br>
      <br>
      On 5/10/2013 2:43 PM, Cal Leeming [Simplicity Media Ltd] wrote:<br>
    </div>
    <blockquote
cite="mid:CAHKQagGpxHFm99iw6g8eGYVgjoh7X6HvFbMLQqzxoHBCZhsARw@mail.gmail.com"
      type="cite">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'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..&nbsp;</div>
      <div><br>
      </div>
      <div>Perhaps someone else might be able to offer a cleaner
        solution, but that'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
              moz-do-not-send="true" 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
                moz-do-not-send="true"
                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&iacute;a</b> <br>
                    Consultor. <br>
                    <br>
                    CCCT, Nivel C2, Sector Yarey, Mz, <br>
                    Ofc. MZ03a. <br>
                    Caracas-Venezuela. <br>
                    Tel&eacute;fono: <a moz-do-not-send="true"
                      href="tel:%2B58%20212%209081842"
                      value="+582129081842" target="_blank">+58 212
                      9081842</a> <br>
                    Cel: <a moz-do-not-send="true"
                      href="tel:%2B58%20412%202221515"
                      value="+584122221515" target="_blank">+58 412
                      2221515</a> <br>
                    <a moz-do-not-send="true"
                      href="mailto:dgarcia@anew.com.ve" target="_blank">dgarcia@anew.com.ve</a>
                    <br>
                    <a moz-do-not-send="true"
                      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 moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2012.0.2241 / Virus Database: 3162/5814 - Release Date:
        05/10/13</p>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      Atentamente,
      <br>
      <b>Dario Garc&iacute;a</b>
      <br>
      Consultor.
      <br>
      <br>
      CCCT, Nivel C2, Sector Yarey, Mz, <br>
      Ofc. MZ03a. <br>
      Caracas-Venezuela.
      <br>
      Tel&eacute;fono: +58 212 9081842
      <br>
      Cel: +58 412 2221515
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:dgarcia@anew.com.ve">dgarcia@anew.com.ve</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://www.anew.com.ve">http://www.anew.com.ve</a></div>
  </body>
</html>