Vicidial LOGOUT API does not work
Posted: Mon Jun 18, 2018 8:18 pm
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
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