Agent events - Send event info to external apps

Any and all non-support discussions

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

Agent events - Send event info to external apps

Postby ccabrera » Tue Jul 30, 2013 2:02 am

Hello,

I've been going through the Manager manual and the forums but I can't find any information about this topic so I got to ask:

Is it possible to integrate the Agent Interface with an external application which receives the agent events by using AJAX requests?

Example:
- Agent logs in so it sends a GET request to http://xxx.xxx.xxx.xxx/agenttracker.php ... vent=login
- Since Agent starts in "PAUSED" mode, when he clicks on resume he sends another event like http://xxx.xxx.xxx.xxx/agenttracker.php ... ent=resume
- When receiving a call, he sends http://xxx.xxx.xxx.xxx/agenttracker.php ... llreceived

and so on...


My idea is to have all kinds of software which track each agent event by its own, so that I can fire custom processes according to the agent's action. One which comes to my mind is firing up a web request to start a video recorder whenever the agent receives a call AND also stop the video recording when the agent clicks on hangup.

Since everything would be AJAX there should not be any kind of extra stress into the Apache server, since these applications could be running even inside the agents PC.

Is this something which already exists and I haven't found it yet?
Is it feasible?
Does anyone else find this feature interesting?

If it doesn't exist I could start coding it, but I want to be sure before reinventing the wheel.

Regards,
Christian Cabrera
Enlaza Comunicaciones - Vicidial Partner
Mexico City
ccabrera
 
Posts: 153
Joined: Fri Jan 14, 2011 7:53 pm
Location: Mexico City

Re: Agent events - Send event info to external apps

Postby williamconley » Tue Jul 30, 2013 1:16 pm

multiple methods

look at the campaign dispo url (and the other urls nearby)

look at the php page which the agent interface sends its requests to. those could easily be modified to send ANY data anywhere based on any event. since all these events are functions, it's a simple addition to the function for each event.

best method would be to send a "this function fired" event to a central function that checks the DB (new table, obviously) to see where a notification of this event should be sent.

it hinges on which events you want to report on, mostly.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Agent events - Send event info to external apps

Postby ccabrera » Tue Jul 30, 2013 2:50 pm

The events I´m interested in mostly are login, logout, pause, resume, connect and hangup. I thought about modifying the agc script and yes, finding the functions which query the database is the easy task, I jus wanted to know if there was any kind of work already done on this matter before I started my own.

So I guess my short answer is "Yes, it can be done. No, it´s not done yet, but it should be easy to do".

If anyone else has any feedback about this because their requirements are similar to mine, please share your ideas about them.
Christian Cabrera
Enlaza Comunicaciones - Vicidial Partner
Mexico City
ccabrera
 
Posts: 153
Joined: Fri Jan 14, 2011 7:53 pm
Location: Mexico City

Re: Agent events - Send event info to external apps

Postby williamconley » Tue Jul 30, 2013 3:57 pm

those are all logged events. are you sure you can not just use the logs? or poll them at timed intervals?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 40 guests

cron