[Asterisk-Users] Identifying a call with manager interface
michiel betel
michiel at betel.nl
Fri Mar 19 07:58:12 MST 2004
Nicolas Bougues wrote:
>Dear all,
>
>I'm trying to play with the manager interface.
>
>What I'd like to do is being able to originate a call and trace its
>status through events.
>
>I use the "Originate" manager command. I then receive several events
>telling me about the progress of the call, and then the "Response"
>message.
>
>However, I didn't find a way to be sure that the first "Event" I
>receive after the "Originate" really relates the call I'm making, and
>not some other random call, since I believe that I may get events for
>any channel, not just mine.
>
>Note that the Channel I'm using is IAX based, and looks like this :
>IAX2[217.146.224.41:4569]/3 in the events messages. So I have no way
>to know it's really mine.
>
>Event the final Response message doesn't state the "UniqueId" of the
>call.
>
>Maybe I missed something obvious.
>
>Any idea ?
>
>
>
You should be able to specify an ActionID with the originate request.
Asterisk will the put this ActionID in all replys to your request.
Haven't (yet) tried this myself, but check manager.c for the exact
implementation.
Michiel
More information about the asterisk-users
mailing list