[FS-11609] [core] lookup values in caller profile soft variables

This commit is contained in:
lazedo
2019-02-18 14:03:24 +00:00
parent 8f659a81cf
commit 8ed52f4c26
3 changed files with 22 additions and 2 deletions

View File

@@ -2347,6 +2347,13 @@ static void switch_load_core_config(const char *file)
} else {
switch_clear_flag((&runtime), SCF_CPF_SOFT_PREFIX);
}
} else if (!strcasecmp(var, "caller-profile-soft-lookup-values") && !zstr(val)) {
int v = switch_true(val);
if (v) {
switch_set_flag((&runtime), SCF_CPF_SOFT_LOOKUP);
} else {
switch_clear_flag((&runtime), SCF_CPF_SOFT_LOOKUP);
}
}
}
}