From 591c62eea1d8100935c4af87e397a81925da6858 Mon Sep 17 00:00:00 2001 From: Raymond Chandler Date: Wed, 16 Jan 2013 20:23:55 -0500 Subject: [PATCH] set cid in transfer scenario too --- src/mod/applications/mod_httapi/mod_httapi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index babc2147de..e6dcb5d2fb 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -765,6 +765,14 @@ static switch_status_t parse_dial(const char *tag_name, client_t *client, switch switch_core_session_execute_application(client->session, "bridge", str); } else { + if (!zstr(cid_name)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Changing Caller-ID Name to: %s\n", cid_name); + switch_channel_set_variable(client->channel, "effective_caller_id_name", cid_name); + } + if (!zstr(cid_number)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Changing Caller-ID Number to: %s\n", cid_number); + switch_channel_set_variable(client->channel, "effective_caller_id_number", cid_number); + } switch_ivr_session_transfer(client->session, body, dp, context); }