[Freeswitch-svn] [commit] r9634 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Tue Sep 23 19:43:41 EDT 2008


Author: anthm
Date: Tue Sep 23 19:43:40 2008
New Revision: 9634

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
update

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Tue Sep 23 19:43:40 2008
@@ -2473,6 +2473,14 @@
 			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))



More information about the Freeswitch-svn mailing list