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

Michael Ulitskiy mulitskiy at acedsl.com
Thu Aug 5 08:40:38 MST 2004


Unfortunately it doesn't help. If I specify actionid then I'll recevie 
Response: success or error with that actionid, but events will still
flow without it. Any other ideas?
Thanks,

Michael

On Wednesday 04 August 2004 07:15 pm, Nicolas Gudino wrote:
> 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.
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list