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();
}