From: Brian West Date: Tue, 21 Mar 2017 15:09:36 +0000 (-0500) Subject: FS-10149 [freeswitch-core] ZRTP encrypted calls drop on reinvite X-Git-Tag: v1.6.16~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=989194ca14866abd627aa5068c6ba528cf7a4222;p=thirdparty%2Ffreeswitch.git FS-10149 [freeswitch-core] ZRTP encrypted calls drop on reinvite --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 4f4ec08ddd..2d58578b24 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -9717,7 +9717,7 @@ void sofia_handle_sip_i_reinvite(switch_core_session_t *session, } } - if (switch_core_media_check_udptl_mode(session, SWITCH_MEDIA_TYPE_AUDIO)) { + if (switch_core_media_check_udptl_mode(session, SWITCH_MEDIA_TYPE_AUDIO) && !switch_channel_test_flag(channel, CF_ZRTP_PASSTHRU_REQ)) { /* Refuse all re-invites once we are doing T.38 */ nua_respond(nh, SIP_488_NOT_ACCEPTABLE, TAG_END()); switch_channel_hangup(channel, SWITCH_CAUSE_INCOMPATIBLE_DESTINATION);