[Freeswitch-users] Is curl.run() blocking until a result is got
Storm Demo
stormdemo001 at gmail.com
Mon Sep 20 09:50:54 PDT 2010
Dear All,
In the below example from FS wiki, can I be sure that "my_callback" will be
called before session.hangup() is excuted?
Thanks a lot
Jasper
use("CURL");
function my_callback(string, arg)
{
console_log("info", string);
return true;
}
if (session.ready()) {
session.answer();
var curl = new CURL();
curl.run("POST", "http://www.freeswitch.org/curltest/",
"foo=bar&this=has+spaces+in+it", my_callback, "my arg\n",
"user:s3cr3tpw");
session.hangup();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100921/f98db8ad/attachment-0001.html
More information about the FreeSWITCH-users
mailing list