I take it that this js is being called from the dialplan? If so then do what you need to do with outsession before you bridge it. Or consider using ESL and making a socket-based control program where you have much more flexibility...
-MC
I have the following code, and after the bridge the javascript seems to stop.
outsession = new Session("{ringback=\'%(2000,4000,440.0,480.0)\',instant_ringback=true,ignore_early_media=false}sofia/gateway/" + providerhash["providername0"] + "/XXXXXXXXXXXX");
bridge(session,outsession);
while(outsession.ready())
{
console_log("notice","ping");
}
I am looking to manage the b leg, should i use execute_on_answer instead? or is there a way to make the code continue after the bridge.
Thanks,
Stephen C
-All of my email addresses go to the same place
-Save Paper, think before you print
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org