API HANGUP

Any and all non-support discussions

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

API HANGUP

Postby irupangregie » Wed Mar 20, 2013 3:50 am

Outbound calls don't allow the agent to hang up through the API unless a "LIVE CALL" is detected (or when the call is answered). Is this the behavior using HANGUP API?

Server Details
GoAutodial 2.1 CE
VERSION: 2.4-364a
BUILD: 120409-1136
Asterisk 1.4.39
Multi Server
No Digium/Sangoma Hardware
No Extra Software After Installation
irupangregie
 
Posts: 4
Joined: Wed Mar 20, 2013 2:50 am

Re: API HANGUP

Postby williamconley » Wed Mar 20, 2013 10:33 am

In the agent screen, the Big Red Hangup Customer Button is only available if you have a customer. But below, in the show conference information link, there is a smaller hangup icon for each channel in the conference room. I do not know if this is available in the API, but I doubt it.

That being said: It is always possible to issue a command line in asterisk to terminate a single channel of a meetme conference. Just not through the API. If you check the API documentation, you will find out if it is possible. If not, I suggest you sponsor the creation of this new API method (ie: terminate a meetme channel on an agent's room). Be clear about the purpose of course ... do we want to terminate everything except the agent? or "get" all the channels and then allow the selective termination of any one of them ...?
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: API HANGUP

Postby irupangregie » Wed Mar 20, 2013 3:41 pm

Thanks for the reply William. I should say to get all the channels and then allow the selective termination of any one of them. I believe Matt can also help us on this. What we need to obtain here is to know the behavior of the API hangup when a live call is detected or answered and or if the call is grayed-out (No Live Call).

API Hangup Script Used:
/agc/api.php?source=test&user=admin&pass=goautodial&agent_user=agent006&function=external_hangup&value=1
irupangregie
 
Posts: 4
Joined: Wed Mar 20, 2013 2:50 am

Re: API HANGUP

Postby williamconley » Wed Mar 20, 2013 5:49 pm

The API has no behavior when a call is answered. It is not interactive in that fashion. If use use the external_hangup when a call is live, it will hang it up. If you use it when a call is not live, it will not. That's all there is at present.

And of course Matt "could" be helpful, but on a topic like this where the question is answered, his helpfulness would be more like a quotation on hours to complete the new api module. use of the existing module is easy: there are two possibilities, test them! :)

As for doing it yourself or hiring someone else like us, that is a different story. For that, of course, a precise description of what you want the api to do and when would be quite useful. For instance: If you want two api functions created, one for "GET live channels" and one for "Terminate one of the channels", that would not be very difficult assuming you were supplying enough information to identify the meetme room (supplying the meetme room number, for instance, would be very good ... or the user id or ... something).
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: Google [Bot] and 49 guests