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

FreeSWITCH SVN mikej at freeswitch.org
Wed Nov 12 05:02:45 PST 2008


Author: mikej
Date: Wed Nov 12 08:02:44 2008
New Revision: 10354

Log:
disable 100rel by default.  NOTE:  Potentially breaking change, check your configs.

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

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	Wed Nov 12 08:02:44 2008
@@ -1422,6 +1422,7 @@
 				profile->mflags = MFLAG_REFER | MFLAG_REGISTER;
 				profile->rport_level = 1;
 				profile->pflags |= PFLAG_STUN_ENABLED;
+				profile->pflags |= PFLAG_DISABLE_100REL;
 				
 				for (param = switch_xml_child(settings, "param"); param; param = param->next) {
 					char *var = (char *) switch_xml_attr_soft(param, "name");
@@ -1705,8 +1706,8 @@
 							profile->minimum_session_expires = 90;
 						}
 					} else if (!strcasecmp(var, "enable-100rel")) {
-						if (!switch_true(val)) {
-							profile->pflags |= PFLAG_DISABLE_100REL;
+						if (switch_true(val)) {
+							profile->pflags &= ~PFLAG_DISABLE_100REL;
 						}
 					} else if (!strcasecmp(var, "bitpacking")) {
 						if (!strcasecmp(val, "aal2")) {



More information about the Freeswitch-svn mailing list