Page 1 of 1

Vicidial LOGOUT API does not work

PostPosted: Mon Jun 18, 2018 8:18 pm
by mrgunston
Whenever I run the LOGOUT API, I get a response which says "SUCCESS: logout function set - LOGOUT|1529371072|6666:

However, if I run "SELECT * FROM vicidial_live_agents WHERE user = '6666'" in MySQL, I can still see that the user is logged in. This happens when I use Ajax to send the HTTP API request using JavaScript however, I can simply paste the URL into my web browser and I have the same problem therefore, it seems like a problem with the API itself.

This is the URL I send the request to: http://10.1.0.23/agc/api.php?source=TES ... 6666&pass=<PASSWORDHERE>&agent_user=6666&function=logout&value=LOGOUT


Vicibox 2.12-565a from vicibox_v7x68_65.iso | Vicidial 2.12-565a Build 160827-0917 | Asterisk 11.23.1-vici | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | DELL R710 | Intel Xeon CPU X5690 @ 3.47Ghz 6 Cores

Re: Vicidial LOGOUT API does not work

PostPosted: Tue Jun 19, 2018 4:47 pm
by mflorell
All the Agent API does is send commands to the active Agent Screen. The "SUCCESS" message means that the command was sent to the agent screen, it does not mean that it has been executed.

Re: Vicidial LOGOUT API does not work

PostPosted: Thu Jun 21, 2018 9:31 pm
by mrgunston
mflorell wrote:All the Agent API does is send commands to the active Agent Screen. The "SUCCESS" message means that the command was sent to the agent screen, it does not mean that it has been executed.


Are there any logs for me to see what is causing the failure?

Re: Vicidial LOGOUT API does not work

PostPosted: Fri Jun 22, 2018 6:42 am
by mflorell
Have you enabled Agent Screen Debug Logging in System Settings?