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:
parent
b18903ecf3
commit
211e106fae
|
@ -1163,13 +1163,14 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||||
profile->pflags &= ~PFLAG_SECURE;
|
profile->pflags &= ~PFLAG_SECURE;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(var, "multiple-registrations")) {
|
} 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;
|
||||||
profile->pflags |= PFLAG_MULTIREG_CONTACT;
|
profile->pflags |= PFLAG_MULTIREG_CONTACT;
|
||||||
} else if (switch_true(val)) {
|
|
||||||
profile->pflags |= PFLAG_MULTIREG;
|
|
||||||
} else {
|
} else {
|
||||||
profile->pflags &= ~PFLAG_MULTIREG;
|
profile->pflags &= ~PFLAG_MULTIREG;
|
||||||
|
profile->pflags &= ~PFLAG_MULTIREG_CONTACT;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) {
|
} else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) {
|
||||||
if (switch_true(val)) {
|
if (switch_true(val)) {
|
||||||
|
@ -1622,13 +1623,14 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||||
profile->pflags |= PFLAG_SECURE;
|
profile->pflags |= PFLAG_SECURE;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(var, "multiple-registrations")) {
|
} 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;
|
||||||
profile->pflags |= PFLAG_MULTIREG_CONTACT;
|
profile->pflags |= PFLAG_MULTIREG_CONTACT;
|
||||||
} else if (switch_true(val)) {
|
|
||||||
profile->pflags |= PFLAG_MULTIREG;
|
|
||||||
} else {
|
} else {
|
||||||
profile->pflags &= ~PFLAG_MULTIREG;
|
profile->pflags &= ~PFLAG_MULTIREG;
|
||||||
|
profile->pflags &= ~PFLAG_MULTIREG_CONTACT;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) {
|
} else if (!strcasecmp(var, "supress-cng") || !strcasecmp(var, "suppress-cng")) {
|
||||||
if (switch_true(val)) {
|
if (switch_true(val)) {
|
||||||
|
|
Loading…
Reference in New Issue