[Asterisk-java-users] Events blocked by Responses?
Brought to you by:
srt
From: Andy B. <and...@pr...> - 2007-08-23 17:19:36
|
Using asterisk-java 0.3 to talk to the Manager API of asterisk 1.4 I based my code off the tutorial and have expanded from there I connect to the manager add an event handler which just prints out the event send an originateaction with a callback handler the callback handler prints out the response the action has a 30 second timeout set if the origiated call is connected my extension will play an asterisk sound file and then hangup all this works ok now I'm trying to track the progress of the call through the response callback and the events delivered to my listener For example when the originate action is sent, I do NOT answer the external SIP call after the timout period I get my callback with an "Error" response and with "Originate failed" as the message, this is expected. However only after the response callback do I get the stream of events to my listener for NewChannelEvent,NewCallerIdEvent,NewStateEvent(Ringing) and finally HangupEvent Should events be delivered synchronously, rather than being blocked by the pending response to my action? If so is this a manager API limitation or an asterisk-java limitiation? Thanks for any help |