Problem shows only during processing several calls.
My case: 1 incoming(not picked up), 1 outcoming(not picked up)
-> 1st hangs up(deleting last transac)
-> 2nd cant be hanged up properly(there is no 'terminated' event)
Cause:
tsip_transac_layer.prototype.cancel_by_dialog = function (o_dialog) {
if (!o_dialog) {
tsk_utils_log_error("Invalid argument");
return -1;
}
var o_transac = null;
while (this.b_locked){}
this.b_locked = true;
for (var i = 0; i < this.ao_transacs.length; ++i) {
o_transac = this.ao_transacs[i];
if (o_dialog.compare(o_transac.get_dialog()) == 0) {
// async call to avoid dealoc
setTimeout(function () {<< Always deletes last transac, because of o_transac is not in closure
o_transac.fsm_act(tsip_action_type_e.CANCEL, null); }, 1);
}
}
this.b_locked = false;
return 0;
};
It is a typical error, so you should know how to fix it.
Original issue reported on code.google.com by Each.nir...@gmail.com on 2 Feb 2015 at 10:37
Original issue reported on code.google.com by
Each.nir...@gmail.com
on 2 Feb 2015 at 10:37