Page 1 of 1

Agent Live Call interrupt

PostPosted: Thu Apr 25, 2013 12:50 am
by zaheer
Hi
I want to listen agent live call and want to disconnect the call if required.Is there any option in vicibox Redux 4.0.1 Asterisk 1.4.44 vici

Re: Agent Live Call interrupt

PostPosted: Thu Apr 25, 2013 6:19 pm
by williamconley
1) Welcome to the Party! 8-)

2) Here are your newbie suggestions!

when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

3) Monitoring is covered in the manual (dial 08600051 or 0 plus the conference room number of the agent) or use the Real Time screen configuration to monitor by choosing on the screen.

4) Disconnecting a call is not possible in Vicidial at the moment from the standard setup. A little known/used page "/agc/astguiclient.php" may have functionality you could use to terminate a call. If, however, you want to be able to kill a call from the real time screen, that would require modification to the vicidial code to accomplish. Sounds like a very nice feature to me.

Re: Agent Live Call interrupt

PostPosted: Sun Jun 02, 2013 3:04 pm
by ZoVoS
It is easy enough with a minor modification to the real time report screen, This is one of the features I had a new techie write for his job interview.

http://www.vicidial.org/docs/AGENT_API.txt
if you consult the AGENT API;


Code: Select all
To hangup the call, disposition it and then pause the agent, do the following in order:
http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_pause&value=PAUSE
http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_hangup&value=1
http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_status&value=A



So of the top of my head you add a new column, you populate the USER with $PHP_AUTH_USER and PASS with $PHP_AUTH_PW and so on


if you want to make the code follow VICIs structure I advise you look up the function

function send_monitor(session_id,server_ip,stage)



/var/www/vicidial/AST_timeonVDADall.php
/var/www/vicidial/realtime_report.php

these are the applicable files