diff --git a/src/mod/applications/mod_bridgecall/mod_bridgecall.c b/src/mod/applications/mod_bridgecall/mod_bridgecall.c index cc18d87d63..b4da03930c 100644 --- a/src/mod/applications/mod_bridgecall/mod_bridgecall.c +++ b/src/mod/applications/mod_bridgecall/mod_bridgecall.c @@ -55,7 +55,6 @@ static void audio_bridge_function(switch_core_session_t *session, char *data) switch_channel_hangup(caller_channel, SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL); return; } else { - /* peer channel is read locked now the bridge func will unlock it for us */ switch_ivr_multi_threaded_bridge(session, peer_session, NULL, NULL, NULL); } } diff --git a/src/switch_ivr.c b/src/switch_ivr.c index fbdfdeb858..6ec076db25 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1560,7 +1560,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } if (switch_channel_test_flag(peer_channel, CF_ANSWERED) || switch_channel_test_flag(peer_channel, CF_EARLY_MEDIA)) { - switch_core_session_read_lock(peer_session); *bleg = peer_session; if (caller_channel) { switch_channel_set_variable(caller_channel, "originate_disposition", "call accepted");