From e0c0b28350f0d8f52a6a29c5aaeba20554f1dbab Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 3 Jan 2017 12:01:48 -0600 Subject: [PATCH] FS-9898: [mod_sofia] Call hanging in FS if HOLD not successful #resolve --- src/mod/endpoints/mod_sofia/sofia.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 00ff939d5c..848c158eea 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -7831,6 +7831,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, if (!match) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Reinvite Codec Error!\n"); nua_respond(tech_pvt->nh, SIP_488_NOT_ACCEPTABLE, TAG_END()); + switch_core_session_rwunlock(other_session); goto done; } @@ -7885,6 +7886,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, SIPTAG_CONTACT_STR(tech_pvt->reply_contact), SIPTAG_CONTENT_TYPE_STR("application/sdp"), SIPTAG_PAYLOAD_STR(tech_pvt->mparams.local_sdp_str), TAG_END()); } + switch_core_session_rwunlock(other_session); goto done; } }