mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
FS-7966. First pass at moving to Visual Studio 2015.
The new C compiler breaks a lot of things. snprintf and timespec now exist, and redefining causes an error. Many more things are warnings, so warnings-as-errors will fail - remove it from some projects for now. V8: don't pass VS version to build batch file. mod_sofia: Config has too-long if/elseif chain. Break this up to avoid "parser stack overflow; program too complex". Add mod_conference.h to project and dir to includes.
This commit is contained in:
committed by
Michael Jerris
parent
fb5b390ce3
commit
5e456fe9a6
@@ -4234,6 +4234,8 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s [%s]\n", var, val);
|
||||
|
||||
int found = 1; // Used to break up long if/elseif chain (MSVC2015 fails (parser stack overflow) otherwise)
|
||||
|
||||
if (!strcasecmp(var, "debug")) {
|
||||
profile->debug = atoi(val);
|
||||
} else if (!strcasecmp(var, "parse-invite-tel-params")) {
|
||||
@@ -4939,7 +4941,12 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_SECURE);
|
||||
}
|
||||
} else if (!strcasecmp(var, "multiple-registrations")) {
|
||||
} else {
|
||||
found = 0;
|
||||
}
|
||||
if (found) continue;
|
||||
|
||||
if (!strcasecmp(var, "multiple-registrations")) {
|
||||
if (!strcasecmp(val, "call-id")) {
|
||||
sofia_set_pflag(profile, PFLAG_MULTIREG);
|
||||
} else if (!strcasecmp(val, "contact") || switch_true(val)) {
|
||||
|
||||
Reference in New Issue
Block a user