From: Anthony Minessale Date: Mon, 27 Sep 2010 18:09:03 +0000 (-0500) Subject: don't passthru when its proxy media, bypass media or there is no rtp session, fixes seg X-Git-Tag: v1.2-rc1~291^2~40^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45e2b99dab4796f63ae49ee5c875fe12aa98a708;p=thirdparty%2Ffreeswitch.git don't passthru when its proxy media, bypass media or there is no rtp session, fixes seg --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 5892ef552b..508fa54aac 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -3737,6 +3737,11 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s pass = 0; } + if (switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE) || + switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MEDIA) || !switch_rtp_ready(tech_pvt->rtp_session)) { + pass = 0; + } + if (pass && switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) { private_object_t *other_tech_pvt = switch_core_session_get_private(other_session); switch_core_session_message_t *msg;