FS-10823: [mod_sofia] curly brackets on SDP header causes FS to crash #resolve

This commit is contained in:
Anthony Minessale 2017-12-04 13:29:59 -06:00 committed by Muteesa Fred
parent b0106ac17f
commit 67b56343a2
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
switch_core_media_prepare_codecs(tech_pvt->session, SWITCH_TRUE);
if (sofia_media_tech_media(tech_pvt, r_sdp) != SWITCH_STATUS_SUCCESS) {
if (zstr(r_sdp) || sofia_media_tech_media(tech_pvt, r_sdp) != SWITCH_STATUS_SUCCESS) {
switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "CODEC NEGOTIATION ERROR");
//switch_mutex_lock(tech_pvt->sofia_mutex);
//nua_respond(tech_pvt->nh, SIP_488_NOT_ACCEPTABLE, TAG_END());