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
This commit is contained in:
Anthony Minessale 2008-11-07 17:00:46 +00:00
parent b18903ecf3
commit 211e106fae
1 changed files with 8 additions and 6 deletions

View 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;
} 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)) {