diff --git a/docs/AGENT_API.txt b/docs/AGENT_API.txt index 2ddc96a1..57f02771 100644 --- a/docs/AGENT_API.txt +++ b/docs/AGENT_API.txt @@ -1,4 +1,4 @@ -AGENT API DOCUMENT Started: 2008-07-03 Updated: 2024-04-29 +AGENT API DOCUMENT Started: 2008-07-03 Updated: 2024-06-24 This document describes the functions of an API(Application Programming Interface) for the VICIDIAL Agent screen. This functionality will be rather limited at first @@ -670,6 +670,9 @@ VALUES: GRAB_IVR_CUSTOMER - grab customer from the park ivr and send them to the agent session PARK_XFER - send third party call to the park extension as defined in the campaign the agent is logged into GRAB_XFER - grab third party call from the park extension and send them to the agent session + SWAP_PARK_CUSTOMER - send customer to the park extension and grab third party call from the park extension and send them to the agent session + SWAP_PARK_XFER - send third party call to the park extension and grab customer from the park extension and send them to the agent session + HANGUP_XFER_GRAB_CUSTOMER - hangup the third party line and grab customer from park extension EXAMPLE URLS: http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=park_call&value=PARK_CUSTOMER diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index d7b6bbdc..ca174526 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -740,10 +740,11 @@ # 240416-1750 - Fix for HotKey issue #1518 # 240420-2228 - ConfBridge code added # 240429-2237 - Added PARK_XFER|GRAB_XFER options for park_call API function +# 240624-1357 - Added SWAP_PARK_CUSTOMER|SWAP_PARK_XFER|HANGUP_XFER_GRAB_CUSTOMER options for park_call API function # -$version = '2.14-706c'; -$build = '240429-2237'; +$version = '2.14-707c'; +$build = '240624-1357'; $php_script = 'vicidial.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=103; @@ -8278,6 +8279,21 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {mainxfer_send_redirect('ParKXfeR',lastxferchannel,server_ip,'','','','YES');} if (api_parkcustomer == 'GRAB_XFER') {mainxfer_send_redirect('FROMParKXfeR',lastxferchannel,server_ip,'','','','YES');} + if (api_parkcustomer == 'SWAP_PARK_XFER') + { + mainxfer_send_redirect('ParKXfeR',lastxferchannel,server_ip,'','','','YES'); + mainxfer_send_redirect('FROMParK',lastcustchannel,lastcustserverip); + } + if (api_parkcustomer == 'SWAP_PARK_CUSTOMER') + { + mainxfer_send_redirect('ParK',lastcustchannel,lastcustserverip); + mainxfer_send_redirect('FROMParKXfeR',lastxferchannel,server_ip,'','','','YES'); + } + if (api_parkcustomer == 'HANGUP_XFER_GRAB_CUSTOMER') + { + xfercall_send_hangup(); + mainxfer_send_redirect('FROMParK',lastcustchannel,lastcustserverip); + } if (api_dtmf.length > 0) { var REGdtmfPOUND = new RegExp("P","g"); diff --git a/www/vicidial/non_agent_api.php b/www/vicidial/non_agent_api.php index 1b2dc65b..842d1008 100644 --- a/www/vicidial/non_agent_api.php +++ b/www/vicidial/non_agent_api.php @@ -8408,7 +8408,7 @@ if ($function == 'update_campaign') } if (strlen($hopper_level) > 0) { - if ( ($hopper_level > 2000) or ($hopper_level < 1) ) + if ( ($hopper_level > 5000) or ($hopper_level < 1) ) { $result = 'ERROR'; $result_reason = "update_campaign HOPPER LEVEL MUST BE FROM 1 TO 2000, THIS IS AN OPTIONAL FIELD";