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

Michael Ulitskiy mulitskiy at acedsl.com
Wed Aug 4 14:56:06 MST 2004


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

Then I'm receiving the following events:

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

Uniqueid: 1091642334.98
Event: Newcallerid
Callerid: 12125551111
Channel: SIP/pbx1-fc4f

Uniqueid: 1091642334.98
Event: Newchannel
Callerid: 12125551111
State: Up
Channel: SIP/pbx1-fc4f

...

etc.

The question is how do I associate event with the originated call.
The could be other concurrent calls that also generate events and
I don't seem to be able to find a way to distinguish them. Is it possible?

Thank you,

Michael




More information about the asterisk-users mailing list