[Asterisk-Users] Identifying which call an event belongs to

Nicolas Gudino nicolas at house.com.ar
Wed Aug 4 16:15:35 MST 2004


Hello,

On Wed, 2004-08-04 at 18:56, Michael Ulitskiy wrote:
> Hi,
> 
> I guess I need some help with management interface. I would like to watch 
> calls through the management interface, but I don't know how to identify
> which call an event belongs to or in other words how to associate a call
> and uniqueid field of event.
> Let's say I send the following manager command:
> 
> action: originate
> channel: sip/12125551111 at pbx1
> callerid: 12125551111
> MaxRetries: 1
> WaitTime: 10
> Application: AGI
> Data: callback.agi|2&12125551111&12125552222
> 

Try inserting in your originate command:

ActionID: SOME_RANDOM_ID

> Then I'm receiving the following events:
> 
> Uniqueid: 1091642334.98
> Event: Newchannel
> Callerid:
> State: Down
> Channel: SIP/pbx1-fc4f
> 

And you would probably receive:

Uniqueid: 1091642334.98
Event: Newchannel
Callerid:
State: Down
Channel: SIP/pbx1-fc4f
ActionID: SOME_RANDOM_ID

I did not try this, but I know that ActionID is implemented in some
manager commands. Best regards,

-- 
Nicolas Gudino <nicolas at house.com.ar>
House Internet S.R.L.




More information about the asterisk-users mailing list