events and customer hangup

All installation and configuration problems and questions

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

events and customer hangup

Postby vicinewman » Sun Sep 02, 2018 3:34 pm

We have configured Agent Events Push URL and it works, but looks like some events didn't come through API.

I.e.: after using external_dial function to make a call - we do not see any events when a customer makes a hang-up himself before him answers. After that, later comes an event “Dial timed out, contact your system administrator” on the agent screen.

Question 1: How to see a customer hang-up event through the API as we have integration with our CRM and would like to control a call status?

Question 2: Probably connected to Q1. How to change agent’s status to “paused” from API when we get an event “Dial timed out, contact your system administrator” ? We can’t change it now using API function “external_pause” (although we get “success” status from the function right after). Only could do that by pressing “Hang-up Customer” button on agent’s screen.
vicinewman
 
Posts: 16
Joined: Tue Feb 20, 2018 1:33 pm

Re: events and customer hangup

Postby williamconley » Sun Sep 02, 2018 3:47 pm

1) Welcome to the Party! 8-)

2) As you are obviously new here, I have some suggestions to help us all help you:

When you post, please post your entire configuration including (but not limited to) your installation method (7.X.X?) and vicidial version with build (VERSION: 2.X-XXXx ... 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 "manual/from scratch" you must post your operating system with version (and the .iso version from which you installed your original operating system) plus a link to the installation instructions you used. 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) Do not make up your own "common sense based" description for technical terms. For instance: "Agent Events Push URL" does not exist. Please use the actual name for whatever it is you are talking about. For instance: "Dispo Call URL"? "/agc/api.php"?

4) API requests are not notification systems. You send a request, you get a response. That's it. If you want a notification of every event that occurs (or just specific events), you have to constantly monitor or modify the code specifically to send a notification of that event somewhere that you can see it and/or take action. For instance: When any event occurs as the result of an agent pressing a button, and AJAX request is sent by the agent web page to the AJAX responder in Vicidial. You can see this occur when the agent pushes a button in the Javascript Console of the agent's web browser. You could certainly modify the AJAX responder's php page to send a notice of any specific action (or all activity) to another location to trigger whatever you want triggered. But that's not part of Vicidial.

5) Given the odds, if you want the agent to pause but are blocked by a requirement for "hangup customer", you can probably issue a "hangup customer" command before the pause request. It may be a good idea to first test the status of the agent in some fashion to determine whether this is necessary.

6) Much of this is also possible by making direct queries to the asterisk database to gather information and even initiate events that are not otherwise supported by the API, but that's dangerous ground so watch your step. 8-)
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: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: events and customer hangup

Postby blackbird2306 » Mon Sep 03, 2018 5:37 pm

williamconley wrote:3) Do not make up your own "common sense based" description for technical terms. For instance: "Agent Events Push URL" does not exist. Please use the actual name for whatever it is you are talking about. For instance: "Dispo Call URL"? "/agc/api.php"?

I think it exists. It is a new function, which was introduced in May 2017 (svn 2764). http://vicidial.org/docs/AGENT_EVENTS_PUSH.txt

vicinewman wrote:Question 1: How to see a customer hang-up event through the API as we have integration with our CRM and would like to control a call status?

Call_dead event comes closest to what you need, although it works only after answer/connection.
call_dead - This indicates that the customer line has hung up before the agent clicked to hang up the call

vicinewman wrote:Question 2: Probably connected to Q1. How to change agent’s status to “paused” from API when we get an event “Dial timed out, contact your system administrator” ? We can’t change it now using API function “external_pause” (although we get “success” status from the function right after). Only could do that by pressing “Hang-up Customer” button on agent’s screen.


"Dial timed out, contact your system administrator" means you are just now in call / dial state, so you are not able to go directly in pause status. You need to dispo the call first. Right order:
1. send pause (during live call to flag Next Call Pause, you get success because Next Call Pause flag was set successful)
2. send hangup
3. send external status

http://server/agc/api.php?source=test&u ... alue=PAUSE
http://server/agc/api.php?source=test&u ... up&value=1
http://server/agc/api.php?source=test&u ... us&value=A
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 93 guests