diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index b25f4a1c83..10fe226649 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1286,9 +1286,8 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) if ((switch_channel_get_private(tech_pvt->channel, "t38_options")) || - ((sofia_test_flag(tech_pvt, TFLAG_INB_NOMEDIA) || - sofia_test_flag(tech_pvt, TFLAG_PROXY_MEDIA) || - switch_true(switch_channel_get_variable(tech_pvt->channel, SWITCH_BYPASS_MEDIA_VARIABLE)) ) + ((switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE) || + switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MEDIA) ) && switch_stristr("m=image", tech_pvt->mparams.local_sdp_str))) { sofia_clear_flag(tech_pvt, TFLAG_ENABLE_SOA); is_t38 = 1;