From 9026a3ce4d1c0287dd0119e541130a9841cb8285 Mon Sep 17 00:00:00 2001 From: James Rose Date: Thu, 16 Oct 2014 19:17:07 +0000 Subject: [PATCH] Fixed a small bug where the incorrect caller id information is sent to the destination. --- app/click_to_call/click_to_call.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/click_to_call/click_to_call.php b/app/click_to_call/click_to_call.php index f0fa5f2faa..c8a0989611 100644 --- a/app/click_to_call/click_to_call.php +++ b/app/click_to_call/click_to_call.php @@ -126,7 +126,7 @@ if (is_array($_REQUEST) && !empty($_REQUEST['src']) && !empty($_REQUEST['dest']) if (strlen($dest) < 7) { if (strpbrk($dest, '@') != FALSE) { //echo "Found an @ 2

"; - $switch_cmd = "api originate $source &bridge({origination_caller_id_name='$src_cid_name',origination_caller_id_number=$src_cid_number,call_direction=outbound}sofia/external/$dest)"; + $switch_cmd = "api originate $source &bridge({origination_caller_id_name='$dest_cid_name',origination_caller_id_number=$dest_cid_number,call_direction=outbound}sofia/external/$dest)"; echo "$switch_cmd"; } else { @@ -157,7 +157,7 @@ if (is_array($_REQUEST) && !empty($_REQUEST['src']) && !empty($_REQUEST['dest']) if (strpbrk($dest, '@') != FALSE) { //call a sip uri //echo "Found an @ 4, do nothing for now

"; - $switch_cmd = "api originate $source &bridge({origination_caller_id_name='$src_cid_name',origination_caller_id_number=$src_cid_number,call_direction=outbound}sofia/external/$dest)"; + $switch_cmd = "api originate $source &bridge({origination_caller_id_name='$dest_cid_name',origination_caller_id_number=$dest_cid_number,call_direction=outbound}sofia/external/$dest)"; //echo "
SWITCH-CMD: $switch_cmd
"; } else {