- Queues must be identified using their resource group id's in this example its using resource groups 2 & 3
- The agentswitch.php file should be behind a secure login to prevent malicious switching
https://developer.cisco.com/docs/contact-center-express/ Mainly: https://developer.cisco.com/docs/contact-center-express/#!system-configuration-apis
$apiserver = "x.x.x.x";
$apibasicauth = base64_encode("UCCX_ADMIN_USER:PASSWORD");
$currentpageurl = "site/currentpage.php";
$queue1 = "Customer Service Grp";
$queue1ResGrpID = '2';
$queue2 = "Operator Grp";
$queue2ResGrpID = '3';
Prevent the following users from being switched with this utility
$userextensions = array("1234","1235","1236","1237");
//Don't even list the users below
$excludedusers = array("1234","1235");