diff --git a/src/mod/event_handlers/mod_kazoo/kazoo_commands.c b/src/mod/event_handlers/mod_kazoo/kazoo_commands.c index 736d14fc18..2494bb9495 100644 --- a/src/mod/event_handlers/mod_kazoo/kazoo_commands.c +++ b/src/mod/event_handlers/mod_kazoo/kazoo_commands.c @@ -121,6 +121,16 @@ SWITCH_STANDARD_API(uuid_setvar_multi_function) { stream->write_function(stream, "-ERR No variable specified\n"); } else { switch_channel_set_variable(channel, var_name, var_value); + if (!strcasecmp(var_name, "effective_callee_id_number")) { + switch_channel_set_profile_var(channel, "callee_id_number", var_value); + } else if (!strcasecmp(var_name, "effective_callee_id_name")) { + switch_channel_set_profile_var(channel, "callee_id_name", var_value); + } else if (!strcasecmp(var_name, "effective_caller_id_number")) { + switch_channel_set_profile_var(channel, "caller_id_number", var_value); + } else if (!strcasecmp(var_name, "effective_caller_id_name")) { + switch_channel_set_profile_var(channel, "caller_id_name", var_value); + }; + y++; } } diff --git a/src/mod/event_handlers/mod_kazoo/kazoo_dptools.c b/src/mod/event_handlers/mod_kazoo/kazoo_dptools.c index 352edaae82..0ea4cf6f2c 100644 --- a/src/mod/event_handlers/mod_kazoo/kazoo_dptools.c +++ b/src/mod/event_handlers/mod_kazoo/kazoo_dptools.c @@ -82,6 +82,17 @@ static void base_set (switch_core_session_t *session, const char *data, switch_s expanded ? expanded : "UNDEF"); switch_channel_add_variable_var_check(channel, var, expanded, SWITCH_FALSE, stack); + if (!strcasecmp(var, "effective_callee_id_number")) { + switch_channel_set_profile_var(channel, "callee_id_number", expanded); + } else if (!strcasecmp(var, "effective_callee_id_name")) { + switch_channel_set_profile_var(channel, "callee_id_name", expanded); + } else if (!strcasecmp(var, "effective_caller_id_number")) { + switch_channel_set_profile_var(channel, "caller_id_number", expanded); + } else if (!strcasecmp(var, "effective_caller_id_name")) { + switch_channel_set_profile_var(channel, "caller_id_name", expanded); + }; + + if (expanded && expanded != val) { switch_safe_free(expanded); }