AGENT API change_ingroups not functioning
Posted: Tue Sep 06, 2022 9:39 pm
Sometimes agents forget to logout and management neglects to notice. For this reason we've created a script to automatically remove agents from InGroups after hours using the Agent API.
The API has been tested to work in the past however it sometimes fails despite returning "SUCCESS".
We have attempted these two API calls; either of which we believe should work:
Both resulted in "SUCCESS", However the agent remained in the closer InGroups
Any idea why the API call would return SUCCESS in setting the InGroups, yet the user still remains in the InGroups?
VERSION: 2.14-809a
BUILD: 210417-1027
openSUSE Leap 15.1
(Note that the API call responded nearly instantly and there no usage of the system at the time as it's after-hours.)
The API has been tested to work in the past however it sometimes fails despite returning "SUCCESS".
We have attempted these two API calls; either of which we believe should work:
- Code: Select all
http://vicivoip/agc/api.php?source=LocalSplashViciDBAdmin&user=524&pass=XXXX&agent_user=2277&function=change_ingroups&value=REMOVE&blended=NO&ingroup_choices=%20CI_%20CXI%20CXII%20CXINBOUND%20SPAN_CI_%20SPAN_CXI%20SPAN_CXII%20-
- Code: Select all
http://10.1.1.80/agc/api.php?source=LocalSplashViciDBAdmin&user=524&pass=XXXX&agent_user=2277&function=change_ingroups&value=CHANGE&blended=NO&ingroup_choices=AGENTDIRECT
Both resulted in "SUCCESS", However the agent remained in the closer InGroups
Any idea why the API call would return SUCCESS in setting the InGroups, yet the user still remains in the InGroups?
VERSION: 2.14-809a
BUILD: 210417-1027
openSUSE Leap 15.1
(Note that the API call responded nearly instantly and there no usage of the system at the time as it's after-hours.)