Re: [Asterisk-java-users] Are ConnectEvent:s delivered?
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-08-17 10:58:40
|
Hi Jan, ConnectEvents are not dispatched because they don't represent "real" Asterisk events. We could easily change that but I am not sure if that leads to some confusion. I recently added getVersion() and getVersion(String) to DefaultAsteriskManager. These two methods also use a CommandAction to query Asterisk state. I implemented them using lazy initialization so i check if the corresponding attribute is null or not and if it is null i fetch the stuff from Asterisk, otherwise I just return the cached result. Would that work for you, too? =3DStefan P.S. the relevant code passage is available at http://asterisk-java.sourceforge.net/xref/net/sf/asterisk/manager/Default= AsteriskManager.html#262 |