]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Sep 2008 23:43:40 +0000 (23:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Sep 2008 23:43:40 +0000 (23:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9634 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 11adea25134683d86bc1a3e50262e0b1fa06cb07..1659346df9b9e9b9d1e13f284d92ee4fcf997936 100644 (file)
@@ -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))