FS-4591 --resolve
This commit is contained in:
parent
76dd6db3a2
commit
de0f311f2d
|
@ -145,6 +145,8 @@ namespace FreeSWITCH.Native
|
||||||
switch_state_handler_t_delegate del = ptr => {
|
switch_state_handler_t_delegate del = ptr => {
|
||||||
using (var sess = new ManagedSession(new SWIGTYPE_p_switch_core_session(ptr, false))) {
|
using (var sess = new ManagedSession(new SWIGTYPE_p_switch_core_session(ptr, false))) {
|
||||||
handler(sess);
|
handler(sess);
|
||||||
|
sess.setAutoHangup(false);
|
||||||
|
sess.destroy();
|
||||||
return switch_status_t.SWITCH_STATUS_SUCCESS;
|
return switch_status_t.SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue