Re: [Asterisk-java-users] asterisk-java, ports
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-04-15 15:59:00
|
> This isn't a bug. It's the "broken" way that asterisk handles the > status request. One would think that a request would receive a > response and not generate events. yes, thats an asterisk issue. There has been some discussion on the asterisk-dev mailing list about this, but it has not yet resulted in a change. Actually the "Status" action behaves kinda better than the actions for queues and agents. It sends a number of StatusEvents (one for each channel) and finally a StatusCompleteEvent. The completion event is missing for queues and the like so you never know if it is really done. With asterisk-java you can use the DefaultAsteriskManager and its getChannels() method to get an up to date list of all channels. The DefaultAsteriskManager handles all the Status event stuff and also the events that indicate changes of an active channel like NewExtenEvent or HangupEvent. Have a look at it if you like to. =Stefan |