Hangup (ami) a call before it is answered

tobiasf
Joined: Tue 19 of May, 2009

Re: Hangup (ami) a call before it is answered

Posted:Wed 20 of May, 2009 (08:10 UTC)
By setting the parameter "async" to "yes" in the originate action, events are received instantly and I get the channel name.

Problem solved.

/Tobias
tobiasf
Joined: Tue 19 of May, 2009

Hangup (ami) a call before it is answered

Posted:Tue 19 of May, 2009 (14:43 UTC)
Hi,

I am trying to make an outbound call using ami and hangup before it's answered.

After sending the ami action "originate", there are no events received until the call is answered or timed out.
To hangup the call using ami action "hangup", I must know the name of the channel, but since there is no event with the channel name I don't know the name of the channel to hangup.

Any suggestions?

/Tobias