Alexandr Krylovskiy
2010-Jun-09 09:19 UTC
[asterisk-users] AMI Queue information about incoming call's channel before link
Hi, I'm developing an application using AMI and I need to get information about incoming call _before_ queue member answers it. I'm using static members (queue is pretty simple) and don't want to use chan_agent (I think AgentCalled event will do what I'm looking for). Here is what I'm getting now: 1. Newchannel event for incoming call followed by Newstate and Join. All these events can be identified with uniqueid 001 2. Newchannel event for outgoing channel to queue member followed by Newstate State: Ringing => that's what I need. But this channel (of course) has another uniquied 002. 3. Link. That's the place where channels are get bridged and I can find out which member (by channel) answered the call (002 answered 001 in this example). The problem is that I need to get information about call 001 at stage 2 that is currently possible only at stage 3, when channels get bridged. Any ideas? -- Alexandr Krylovskiy