Re: [Asterisk-java-devel] ChannelManager Sync
Brought to you by:
srt
From: Michael Y. <mic...@i9...> - 2009-07-10 15:37:00
|
Thank you guys for the quick response. The issue here is that since we are using the proxy to aggregate the events we don't get any type of notification that the proxy has lost connection with one of the servers. This results in the ChannelManager losing state in its own model which causes the return from getChannels() to be invalid. My goal here is to make a call to StatusAction and utilize the results to re-sync the ChannelManager model and at the same time keeping the still exiting AsteriskChannel objects valid. I believe my idea will work. But if you have any other ideas I'm all ears. Mike Yara i9Technologies 505-246-4224 mic...@i9... Stefan Reuter wrote: > Hi Michael, > > Asterisk-Java is currently handling a disconnect and later reconnect by > simply discarding all active channel objects and recreating them besed > on the new state (basically thats what the initialize method does). > This is a quite simplistic approach, it would be much better if we had a > solution that compared the state before the disconnect and after the > reconnect and would just update the active objects (channels, etc.). > If you could come up with some clever implementation of a > "reiinitialize" method we would be very glad to see it as a contribution :-) > > =Stefan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |