auto update displays in more places

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15110 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-10-07 22:35:21 +00:00
1 parent eea99cb1e2
commit 6df9d44154
9 files changed
+274 -58

No files matched your search

@@ -792,7 +792,7 @@ SWITCH_STANDARD_APP(set_profile_var_function)
if (switch_strlen_zero(data)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "No variable name specified.\n");
} else {
name = switch_core_session_strdup(session, data);
name = switch_core_strdup(caller_profile->pool, data);
val = strchr(name, '=');
if (val) {
@@ -816,6 +816,12 @@ SWITCH_STANDARD_APP(set_profile_var_function)
if (!strcasecmp(name, "caller_id_number")) {
caller_profile->caller_id_number = val;
}
if (!strcasecmp(name, "callee_id_name")) {
caller_profile->callee_id_name = val;
}
if (!strcasecmp(name, "callee_id_number")) {
caller_profile->callee_id_number = val;
}
if (val && !strcasecmp(name, "caller_ton")) {
caller_profile->caller_ton = (uint8_t) atoi(val);
}