提交 211e106f authored 作者: Anthony Minessale's avatar Anthony Minessale

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
上级 b18903ec
...@@ -1163,13 +1163,14 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile) ...@@ -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; profile->pflags |= PFLAG_MULTIREG;
profile->pflags |= PFLAG_MULTIREG_CONTACT; } else if (!strcasecmp(val, "contact") || switch_true(val)) {
} else if (switch_true(val)) {
profile->pflags |= PFLAG_MULTIREG; profile->pflags |= PFLAG_MULTIREG;
profile->pflags |= PFLAG_MULTIREG_CONTACT;
} 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) ...@@ -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; profile->pflags |= PFLAG_MULTIREG;
profile->pflags |= PFLAG_MULTIREG_CONTACT; } else if (!strcasecmp(val, "contact") || switch_true(val)) {
} else if (switch_true(val)) {
profile->pflags |= PFLAG_MULTIREG; profile->pflags |= PFLAG_MULTIREG;
profile->pflags |= PFLAG_MULTIREG_CONTACT;
} 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)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论