]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make multiple-registations=true use the contact method and call-id option to do it...
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Nov 2008 17:00:46 +0000 (17:00 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Nov 2008 17:00:46 +0000 (17:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10291 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 7a26b85c1cae39456c16a49f339ae20fe9ebdec8..d3a00207cea3d90fb314b60c33b6626042c86076 100644 (file)
@@ -1163,13 +1163,14 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
                                                        profile->pflags &= ~PFLAG_SECURE;
                                                }
                                        } else if (!strcasecmp(var, "multiple-registrations")) {
-                                               if (!strcasecmp(val, "contact")) {
+                                               if (!strcasecmp(val, "call-id")) {
                                                        profile->pflags |= PFLAG_MULTIREG;
-                                                       profile->pflags |= PFLAG_MULTIREG_CONTACT;
-                                               } else if (switch_true(val)) {
+                                               } else if (!strcasecmp(val, "contact") || switch_true(val)) {
                                                        profile->pflags |= PFLAG_MULTIREG;
+                                                       profile->pflags |= PFLAG_MULTIREG_CONTACT;
                                                } else {
                                                        profile->pflags &= ~PFLAG_MULTIREG;
+                                                       profile->pflags &= ~PFLAG_MULTIREG_CONTACT;
                                                }
                                        } else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) {
                                                if (switch_true(val)) {
@@ -1622,13 +1623,14 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                        profile->pflags |= PFLAG_SECURE;
                                                }
                                        } else if (!strcasecmp(var, "multiple-registrations")) {
-                                               if (!strcasecmp(val, "contact")) {
+                                               if (!strcasecmp(val, "call-id")) {
                                                        profile->pflags |= PFLAG_MULTIREG;
-                                                       profile->pflags |= PFLAG_MULTIREG_CONTACT;
-                                               } else if (switch_true(val)) {
+                                               } else if (!strcasecmp(val, "contact") || switch_true(val)) {
                                                        profile->pflags |= PFLAG_MULTIREG;
+                                                       profile->pflags |= PFLAG_MULTIREG_CONTACT;
                                                } else {
                                                        profile->pflags &= ~PFLAG_MULTIREG;
+                                                       profile->pflags &= ~PFLAG_MULTIREG_CONTACT;
                                                }
                                        } else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) {
                                                if (switch_true(val)) {