From ee7ac115c9672550bc871c1b2dcf69d59c69c5b5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 12 Nov 2013 01:29:16 +0500 Subject: [PATCH] remove WTF --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index ee03d68876..f365f4c42c 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -5757,7 +5757,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, sdp_session_t *sdp; tech_pvt->remote_sdp_str = NULL; switch_channel_set_variable(channel, SWITCH_R_SDP_VARIABLE, r_sdp); - printf("WTF %d\n---\n%s\n---\n%s", (profile->ndlb & PFLAG_NDLB_ALLOW_NONDUP_SDP), tech_pvt->remote_sdp_str, r_sdp); + if (!(profile->ndlb & PFLAG_NDLB_ALLOW_NONDUP_SDP) || (!zstr(tech_pvt->remote_sdp_str) && !strcmp(tech_pvt->remote_sdp_str, r_sdp))) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Duplicate SDP\n%s\n", r_sdp); is_dup_sdp = 1;