Page 1 of 1

API - hangup

PostPosted: Tue Jul 24, 2012 6:56 pm
by Kangkong
Hi,

Good Morning and Thank you inadvance. I cannot hangup the call when the call is disconnected using the API script below. Here is the sample disconnected number 7185794539.
Code: Select all
http://serverIP/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_hangup&value=1


GoAutodial 2.1 CE | 64 bit CentOS 5.6 | Vicidial VERSION: 2.4-309a Build 110430-1642 | Asterisk 1.4.39 | Multi Server | No Digium/Sangoma Hardware | No Extra Software After Installation |

[modified to show link as code for reading = williamconley]

Re: API - hangup

PostPosted: Tue Jul 24, 2012 11:25 pm
by williamconley
Well, let us check some facts:

1) Is there indeed a live call, and is that call with an agent whose user is "1000"?

2) Is user 6666's password 1234?

3) Is user 6666 allowed to use the API in user settings?

4) What sort of response did you receive?

Re: API - hangup

PostPosted: Wed Jul 25, 2012 2:36 pm
by Kangkong
Hi William,

Thank you so much for your response.

1. No, I was trying to hangup a disconnected number. Is it possible? and Yes its a call from user 1000
2. Yes, 6666's pass word is 1234
3. Yes user 6666 is allowed to use the API user settings.
4. There are no response when i run the API script until the agent got the Dial Time out response from the dialer.

Note: I tested the API script on a good/working phone number and it went fine.