From 9531514dc7ccaa2e2053ca302961c47639970fd2 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 27 Feb 2025 21:08:43 +0000 Subject: [PATCH] Fix for test call phone code issue (PHP8-related) in admin.php git-svn-id: svn://192.168.202.10@3912 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/admin.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index a185d3db..24450735 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -6226,12 +6226,13 @@ if ($SSscript_remove_js > 0) # 241208-1747 - Changed DID filter_phone_group_id & pre_filter_phone_group_id to multi-selects # 250103-0843 - Added Enhanced Agent Monitoring system settings option, Changed copyright date # 250210-1701 - Fix for PHP8 issue on User Modify page +# 250227-1607 - Fix for test call phone code issue (PHP8-related) # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-935a'; -$build = '250210-1701'; +$admin_version = '2.14-936a'; +$build = '250227-1607'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -17228,7 +17229,7 @@ if ($ADD==41) if (strlen($campaign_cid_override) > 6) {$CCID = "$campaign_cid_override"; $CCID_on++;} if (preg_match("/x/",$dial_prefix)) {$Local_out_prefix = '';} if (strlen($ext_context) < 1) {$ext_context='default';} - if ($omit_phone_code > 0) {$Ndialstring = "$Local_out_prefix$phone_number";} + if (preg_match('/Y/i', $omit_phone_code)) {$Ndialstring = "$Local_out_prefix$phone_number";} else {$Ndialstring = "$Local_out_prefix$phone_code$phone_number";} # generate callerID for unique identifier in xfer_log file