From: Anthony Minessale Date: Tue, 3 Jan 2017 18:01:48 +0000 (-0600) Subject: FS-9898: [mod_sofia] Call hanging in FS if HOLD not successful #resolve X-Git-Tag: v1.8.0~950 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded506f611df493e2b0577f52ff8e9cc7f61e4d6;p=thirdparty%2Ffreeswitch.git FS-9898: [mod_sofia] Call hanging in FS if HOLD not successful #resolve --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 33f4036053..508f5389ea 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8011,6 +8011,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; } @@ -8065,6 +8066,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; } }