Vicidial LOGOUT API does not work

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Vicidial LOGOUT API does not work

Postby mrgunston » 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
mrgunston
 
Posts: 33
Joined: Tue Oct 11, 2016 9:51 pm

Re: Vicidial LOGOUT API does not work

Postby mflorell » Tue Jun 19, 2018 4:47 pm

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.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Vicidial LOGOUT API does not work

Postby mrgunston » Thu Jun 21, 2018 9:31 pm

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?
mrgunston
 
Posts: 33
Joined: Tue Oct 11, 2016 9:51 pm

Re: Vicidial LOGOUT API does not work

Postby mflorell » Fri Jun 22, 2018 6:42 am

Have you enabled Agent Screen Debug Logging in System Settings?
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 81 guests