aleg = new Session(false, "sofia/test/3001@10.3.3.104", "XML", "default", "FreeSWITCH", "2125551212", "1.2.3.4"); bleg = new Session(aleg, "sofia/test/888@66.250.68.194", "XML", "default", "FreeSWITCH", "2125551212", "1.2.3.4"); if (aleg.ready() && bleg.ready()) { bridge(aleg, bleg); } console_log("debug", "originate dispo: " + aleg.getVariable("originate_disposition") + "\n"); console_log("debug", "a-leg dispo: " + aleg.getVariable("endpoint_disposition") + "\n"); console_log("debug", "b-leg dispo: " + bleg.getVariable("endpoint_disposition") + "\n");