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 ?


Currrent manager originate behavior looks a little hacky. First it is blocking and may last for tenths of second what with fact that manager interface isn't concurrent(see http://www.voip-info.org/wiki-Asterisk+manager+experience) narrows range of originate applications. Secondly one can't get channel name that originate created. To straighten things out originate should be made asynchronous and make identyfing channel name via events possible.

P.S.: There is a patch in mantis (http://bugs.digium.com/bug_view_page.php?bug_id=0000772) that makes originate asynchronous but it has not been approved yet.

Maciek Kaminski

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to