diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index 5bd9eb3c..a8418bf8 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -307,6 +307,14 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom changed using this function. For more information see the AGENT_API.txt document in the docs directory. +74. Added a non-agent-API function and a new feature to the Real-Time screen + that allows a manager to change the in-groups selected by an agent in + real time while an agent is logged in. Simply click on the INFO + link + for the agent you want to modify, select the in-groups, select blended + and select if you want to override the agent default settings then + click submit. Manager must have the ability to Change Agent Campaign in + their user settings. + diff --git a/agc_2-X/trunk/docs/AGENT_API.txt b/agc_2-X/trunk/docs/AGENT_API.txt index 9647db78..d2a1a8ae 100644 --- a/agc_2-X/trunk/docs/AGENT_API.txt +++ b/agc_2-X/trunk/docs/AGENT_API.txt @@ -54,10 +54,10 @@ ERROR: agent_user is not logged in - 6666 DETAIL OF EACH FUNCTION: + + + -------------------------------------------------------------------------------- - - - version - DESCRIPTION: @@ -70,6 +70,7 @@ VERSION: 2.0.5-2|BUILD: 90116-1229|DATE: 2009-01-15 14:59:33|EPOCH: 1222020803 +-------------------------------------------------------------------------------- external_hangup - DESCRIPTION: @@ -85,6 +86,7 @@ SUCCESS: external_hangup function set - 1|6666 +-------------------------------------------------------------------------------- external_status - DESCRIPTION: @@ -100,6 +102,7 @@ SUCCESS: external_status function set - A|6666 +-------------------------------------------------------------------------------- external_pause - DESCRIPTION: @@ -116,6 +119,7 @@ SUCCESS: external_pause function set - PAUSE|1232020456|6666 +-------------------------------------------------------------------------------- external_dial - DESCRIPTION: @@ -155,6 +159,7 @@ SUCCESS: external_dial function set - 7275551212|1|YES|1232020456|6666 +-------------------------------------------------------------------------------- change_ingroups - DESCRIPTION: @@ -173,7 +178,7 @@ ingroup_choices - set_as_default - OPTIONAL, YES or NO - overwrites the settings for the agent in the user modification screen, default is NO -EXAMPLE URL: +EXAMPLE URLS: http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=change_ingroups&value=CHANGE&set_as_default=YES&blended=YES&ingroup_choices=+TEST_IN+SALESLINE+FAKE_IN+- http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=change_ingroups&value=REMOVE&blended=NO&ingroup_choices=+TEST_IN2+TEST_IN4+- http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=change_ingroups&value=ADD&blended=NO&ingroup_choices=+TEST_IN2+- @@ -194,6 +199,13 @@ SUCCESS: change_ingroups function set - YES| TEST_IN SALESLINE -|6666 + + + +-------------------------------------------------------------------------------- +Other information: + + Example MySQL query options for executing API functions(not available for all functions): update vicidial_live_agents set external_hangup=1 where user='1000'; update vicidial_live_agents set external_status='A' where user='1000'; diff --git a/agc_2-X/trunk/docs/NON-AGENT_API.txt b/agc_2-X/trunk/docs/NON-AGENT_API.txt index 8da2b23d..afc67c7b 100644 --- a/agc_2-X/trunk/docs/NON-AGENT_API.txt +++ b/agc_2-X/trunk/docs/NON-AGENT_API.txt @@ -1,9 +1,9 @@ NON-AGENT API DOCUMENT Started: 2008-07-24 -This document describes the functions of an API(Application Programming Interface) -for all functions NOT relating to the VICIDIAL Agent screen. This functionality -will be rather limited at first and will be built upon as critical functions are -identified and programmed into it. +This document describes the functions of an API(Application Programming +Interface) for all functions NOT directly relating to the VICIDIAL Agent screen. +This functionality will be rather limited at first and will be built upon as +critical functions are identified and programmed into it. There is also a new agent API script, for more information on that, please read the AGENT_API.txt document. @@ -11,6 +11,17 @@ the AGENT_API.txt document. +API functions: +version - shows version and build of the API, along with the date/time +sounds_list - outputs a list of audio files from the audio store +moh_list - outputs a list of music on hold classes in the system +vm_list - outputs a list of voicemail boxes in the system +blind_monitor - calls user-defined phone and places them in session as blind monitor +add_lead - adds a new lead to the vicidial_list table with several fields and options +agent_ingroup_info - shows in-group and outbound auto-dial info for logged-in agent + + + New scripts: /vicidial/non_agent_api.php - the script that is accessed to execute commands @@ -22,10 +33,11 @@ Changes: 90721-1432 - Added rank and owner 90904-1535 - Added moh_list musiconhold function 90916-2342 - Added vm_list voicemail list +91203-1140 - Added agent_ingroup_info feature -API Functions: ('function' variable) +API Functions use the 'function' variable NOTE: Just as with the Agent API, the non-agent API requires the user and pass of a valid api-enabled vicidial_users account to execute actions. @@ -149,6 +161,29 @@ ERROR: NO FUNCTION SPECIFIED +-------------------------------------------------------------------------------- +agent_ingroup_info - shows in-group and outbound auto-dial info for logged-in agent + +REQUIRED FIELDS- +agent_user - 2-20 characters +source - description of what originated the API call (maximum 20 characters) + +SETTINGS FIELDS- +stage - info(show information only), change(show options to change), text(standard non-HTML output) + +Example URL strings for API calls: +http://server/vicidial/non_agent_api.php?source=test&function=agent_ingroup_info&stage=change&user=6666&pass=1234&agent_user=1000 + +Example responses: +ERROR: agent_ingroup_info USER DOES NOT HAVE PERMISSION TO GET AGENT INFO - 6666|0 +ERROR: agent_ingroup_info INVALID USER ID - 1255|6666 + + + + + + + -------------------------------------------------------------------------------- add_lead - adds a new lead to the vicidial_list table with several fields and options diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php index 7f578735..b3688559 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php @@ -57,10 +57,12 @@ # 90907-0915 - Added PARK status # 90914-1154 - Added AgentOnly display column to waiting calls section # 91102-2013 - Changed in-group color styles for incoming calls waiting +# 91204-1548 - Added ability to change agent in-groups and blended # -$version = '2.2.0-48'; -$build = '91102-2013'; + +$version = '2.2.0-49'; +$build = '91204-1548'; header ("Content-type: text/html; charset=utf-8"); @@ -301,14 +303,14 @@ $F=''; $FG=''; $B=''; $BG=''; $select_list = "
Select Campaigns:
"; $select_list .= ""; $select_list .= "
(To select more than 1 campaign, hold down the Ctrl key and click)"; @@ -320,12 +322,12 @@ if ($UGdisplay > 0) $select_list .= "Select User Group:
"; $select_list .= "

"; } @@ -379,68 +381,229 @@ $open_list = "<