Page 1 of 1

Get Agent Login Time

PostPosted: Tue Nov 05, 2013 10:38 pm
by aleyva
Hi,
I need to get Login Time from a Agent by Campaign, Where I can get this data?? I have agents that work two or more campaigns,
I was to using API NON AGENT but Login Time Not is by Campaign.

Thanks for yours answers!


---------------
ViciBox Redux v.4.0.2 released from .iso | VERSION: 2.8-408a BUILD: 130711-2208 | Asterisk 1.4.44-vici | Vicidial Server, DB Server, WebServer, Dialers Servers | Dialers with Sangoma Hardware | No Extra Software After Installation | HP Servers, IBM Servers

Re: Get Agent Login Time

PostPosted: Sun Nov 17, 2013 9:20 pm
by williamconley
You'll find this in the user stats page. This contains login/logout times and has a campaign column. It also has a download button in later versions.

/vicidial/user_stats.php?DB=&did_id=&did=&begin_date=2013-11-15&end_date=2013-11-15&user=XXXX&submit=submit

replace XXXX with a user ID.

Re: Get Agent Login Time

PostPosted: Fri Nov 22, 2013 12:32 pm
by aleyva
Ok, but i need this data for an app web that I made.
That's why I use Agent non API NON AGENT, it like work "like" an WebService, but its has this problem with agents that are working in two campaigns.

http://www.vicidial.org/docs/NON-AGENT_API.txt , I use agent_stats_export.

Re: Get Agent Login Time

PostPosted: Sat Nov 23, 2013 12:22 pm
by williamconley
each section of user stats has a "download" button, allowing you to download it without need of the api system.

if you explore that with your web browser, you will find that the "download" link contains all the information necessary to determine the period and user of the report. just like the api.

if you are unable to make that work for you and you require an api function in the api ... and the api functions do not have what you want ... i'd say it's time to have someone make a new api option that WILL download what you want. but I'd highly recommend that you take the notion that "the only way to get information from the system is the api" since technically the web GUI for Vicidial *IS* an api.

It's primary purpose is to interface with humans in web browsers, but it does have the ability to download CSV files ... and if that's your goal, then perhaps user_stats.php will function as your API today?