]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set cid in transfer scenario too
authorRaymond Chandler <intralanman@gmail.com>
Thu, 17 Jan 2013 01:23:55 +0000 (20:23 -0500)
committerRaymond Chandler <intralanman@gmail.com>
Thu, 17 Jan 2013 01:23:55 +0000 (20:23 -0500)
src/mod/applications/mod_httapi/mod_httapi.c

index babc2147de9bbc5fea4f3d8ede57dc91c8b3694e..e6dcb5d2fb690f14f8b6ae101e29c4b1c7c737e9 100644 (file)
@@ -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);
        }