[Asterisk-java-devel] ChannelManager Sync
Brought to you by:
srt
From: Michael Y. <mic...@i9...> - 2009-07-09 16:27:16
|
Hello, We are currently running in a distributed Asterisk environment with Asterisk servers both local and remote to the application that is utilizing Asterisk-Java. We are consolidating events using AstManProxy and everything has worked quite nicely except for one small issue. There are some points when the proxy losses the connection to a remote server and in turn we miss events concerning channel hangups and creation. Basically we want to be able to run a command on our application that will re-sync the Channel Manager state utilizing a call to Status Action. Re-creating the AsteriskServer object is not an option. My plan was to modify the Asterisk-Java code to expose the channel manager and feed the StatsEvents to the Channel Manager to implement any channels that were not created due to missing the newChannel events and at the same time providing a remove channel method that will remove a channel from the channel map in the Channel Manager. My question is can my idea work properly without mucking up the ChannelManager or is there possibly a better way to re initialize the ChannelManager while keeping the existing AsteriskChannel objects in my model valid. I apologize if this is the wrong list to be asking this question. -- Mike Yara i9Technologies 505-246-4224 mic...@i9... |