Sorry for the repost, but wanted to see if anybody had any ideas.... Would really appreciate any help.<div><br>Venkatesh<br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 8:36 PM, Venkatesh <span dir="ltr">&lt;<a href="mailto:vvenkatar@gmail.com" target="_blank">vvenkatar@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi !<div><br></div><div>I have uploaded the relevant JS code to pastebin: <a href="http://pastebin.freeswitch.org/19238" target="_blank">http://pastebin.freeswitch.org/19238</a> </div>
<div><br></div><div>Would really appreciate any help!</div><span class="HOEnZb"><font color="#888888">
<div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Venkatesh</font></span><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 7:31 PM, Timothy Bolton <span dir="ltr">&lt;<a href="mailto:ifoundthetao@gmail.com" target="_blank">ifoundthetao@gmail.com</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">
    Do you have any code that you want to post
    (<a href="http://pastebin.freeswitch.org" target="_blank">http://pastebin.freeswitch.org</a>)?<br>
    <br>
    Also, you may want to look into timers/intervals (setTimer
    setInterval).  I use those to keep tabs on responses from requests. 
    Otherwise, the JavaScript will continue to execute without getting
    the response, which can be very frustrating.<br>
    <br>
    <pre cols="72">&#39;We who cut mere stones must always be envisioning cathedrals.&#39;
Quarry Worker&#39;s Creed</pre><div><div>
    <br>
    On 6/6/2012 7:16 PM, Venkatesh wrote:
    </div></div><blockquote type="cite"><div><div>
      <div class="gmail_quote">Hi !</div>
      <div class="gmail_quote"><br>
      </div>
      <div class="gmail_quote">I am developing a simple IVR application
        using JS. One of the things I want to do when my JS fires is to
        issue a WS API to fetch some data relevant to the call; wait for
        the response and use information in the response to process the
        incoming call. To meet that end, I wrote up a simple JS that
        issues a CURL request providing appropriate call back function.
        However, I dont see any callback being fired back to my
        application. The JS simply proceeds to execute the next
        instruction. I know my WS returns a string (verified by running
        the exact same command via a command line). I wanted to know if
        there is anything I need to do to make the application &quot;wait for
        the call back&quot;.  Would appreciate any help.</div>
      <div class="gmail_quote"><br>
      </div>
      <div class="gmail_quote">Regards,</div>
      <div class="gmail_quote">Venkatesh</div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div>
</blockquote></div><br></div>