]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
disable 100rel by default. NOTE: Potentially breaking change, check your configs.
authorMichael Jerris <mike@jerris.com>
Wed, 12 Nov 2008 13:02:44 +0000 (13:02 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 12 Nov 2008 13:02:44 +0000 (13:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10354 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index be9ce550af4d9b9d84c6959c85297018b79ffdf5..0d34fe1d9ffbdbf3754484d42cc4f2f02eed055a 100644 (file)
@@ -1422,6 +1422,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                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 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                        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")) {