[FS-11608] [core] set prefix for caller profile soft variables

This commit is contained in:
lazedo
2018-12-18 10:55:55 +00:00
parent 6ac8105944
commit 8f659a81cf
3 changed files with 20 additions and 3 deletions

View File

@@ -2340,6 +2340,13 @@ static void switch_load_core_config(const char *file)
"rtp-retain-crypto-keys enabled. Could be used to decrypt secure media.\n");
}
switch_core_set_variable("rtp_retain_crypto_keys", val);
} else if (!strcasecmp(var, "caller-profile-soft-variables-uses-prefix") && !zstr(val)) {
int v = switch_true(val);
if (v) {
switch_set_flag((&runtime), SCF_CPF_SOFT_PREFIX);
} else {
switch_clear_flag((&runtime), SCF_CPF_SOFT_PREFIX);
}
}
}
}