From: Anthony Minessale Date: Wed, 10 Apr 2013 02:42:32 +0000 (-0500) Subject: debug X-Git-Tag: v1.5.1~256 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9a49b0ff3e86b16ff17ae15970facc4d2ef79e6;p=thirdparty%2Ffreeswitch.git debug --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index fa1ae31cdd..02807d063c 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -5270,7 +5270,7 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status has_t38 = 0; } - printf("WTF %d %d %d\n", switch_media_handle_test_media_flag(tech_pvt->media_handle, SCMF_T38_PASSTHRU), has_t38, status); + if (status > 199 && (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA) || (switch_media_handle_test_media_flag(tech_pvt->media_handle, SCMF_T38_PASSTHRU) && (has_t38 || status > 299)))) {