From 211e106fae05bf8d0d5a38fc8b6142d5c171bccd Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Nov 2008 17:00:46 +0000 Subject: [PATCH] make multiple-registations=true use the contact method and call-id option to do it the old way git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10291 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 7a26b85c1c..d3a00207ce 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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; + } else if (!strcasecmp(val, "contact") || switch_true(val)) { profile->pflags |= PFLAG_MULTIREG; profile->pflags |= PFLAG_MULTIREG_CONTACT; - } else if (switch_true(val)) { - profile->pflags |= PFLAG_MULTIREG; } 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; + } else if (!strcasecmp(val, "contact") || switch_true(val)) { profile->pflags |= PFLAG_MULTIREG; profile->pflags |= PFLAG_MULTIREG_CONTACT; - } else if (switch_true(val)) { - profile->pflags |= PFLAG_MULTIREG; } else { profile->pflags &= ~PFLAG_MULTIREG; + profile->pflags &= ~PFLAG_MULTIREG_CONTACT; } } else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) { if (switch_true(val)) {