From 9e9175321a4f9845555216f3ead5fbdb0f2994a8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 2 Oct 2014 11:30:13 -0500 Subject: [PATCH] FS-6886 #resolve --- src/mod/endpoints/mod_sofia/sofia.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index dcf485de72..47ed827b07 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -6893,6 +6893,13 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, } if (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA)) { + if ((sofia_test_media_flag(profile, SCMF_DISABLE_HOLD) + || ((var = switch_channel_get_variable(channel, "rtp_disable_hold")) && switch_true(var))) + && ((switch_stristr("sendonly", r_sdp) || switch_stristr("0.0.0.0", r_sdp)))) { + nua_respond(tech_pvt->nh, SIP_200_OK, TAG_END()); + goto done; + } + if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) { switch_core_session_message_t *msg; private_object_t *other_tech_pvt;