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

Freeswitch SVN anthm at freeswitch.org
Fri Nov 7 11:42:54 PST 2008


Author: anthm
Date: Fri Nov  7 12:00:46 2008
New Revision: 10291

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

Log:
make multiple-registations=true use the contact method and call-id option to do it the old way

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	Fri Nov  7 12:00:46 2008
@@ -1163,13 +1163,14 @@
 							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 @@
 							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)) {



More information about the Freeswitch-svn mailing list