mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 03:14:59 +00:00
FS-5085
This commit is contained in:
parent
042347802b
commit
3c7f8f8119
@ -1000,7 +1000,7 @@ static switch_status_t loopback_bowout_on_execute_state_handler(switch_core_sess
|
|||||||
|
|
||||||
tech_pvt = switch_core_session_get_private(session);
|
tech_pvt = switch_core_session_get_private(session);
|
||||||
|
|
||||||
switch_core_session_read_lock(tech_pvt->other_session);
|
if (switch_core_session_read_lock(tech_pvt->other_session) == SWITCH_STATUS_SUCCESS) {
|
||||||
b_channel = switch_core_session_get_channel(tech_pvt->other_session);
|
b_channel = switch_core_session_get_channel(tech_pvt->other_session);
|
||||||
|
|
||||||
/* Wait for b_channel to be fully bridged */
|
/* Wait for b_channel to be fully bridged */
|
||||||
@ -1035,10 +1035,11 @@ static switch_status_t loopback_bowout_on_execute_state_handler(switch_core_sess
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch_core_session_rwunlock(tech_pvt->other_session);
|
switch_core_session_rwunlock(tech_pvt->other_session);
|
||||||
|
}
|
||||||
|
|
||||||
switch_core_event_hook_remove_state_change(session, loopback_bowout_on_execute_state_handler);
|
switch_core_event_hook_remove_state_change(session, loopback_bowout_on_execute_state_handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user