From e963a5a75101b17abb072d9d68b989f0e6f06c8c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 23 Sep 2008 23:43:40 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9634 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 11adea2513..1659346df9 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2473,6 +2473,14 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, tech_pvt->hold_laps = 0; if (r_sdp) { + const char *var; + + if ((var = switch_channel_get_variable(channel, "sip_ignore_reinvites")) && switch_true(var)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Ignoring Re-invite\n"); + nua_respond(tech_pvt->nh, SIP_200_OK, TAG_END()); + goto done; + } + if (switch_channel_test_flag(channel, CF_PROXY_MODE) || switch_channel_test_flag(channel, CF_PROXY_MEDIA)) { if ((uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE))