Re: [Asterisk-java-users] DefaultAGIServer bind exception
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-11-10 11:12:35
|
Hi Paul, first of all you are right that just swallowing the bind exception is not a good idea. Especially as the AGIServer interface explicitly denotes that an IOException may be thrown on startup. So DefaultAGIServer is not well implemented. I fixed this so that you receive an IOException in case of a bind failure. Please have a look at http://maven.reucon.org/maven/org.asteriskjava/distributions/asterisk-java-0.2-SNAPSHOT.zip and test it. I hope that also removes the need for your isRunning() method. Regarding your clustering ideas I do not yet fully understand what you are trying to achieve, i.e. what kind of outages you think of. If I need high availability of an AGI based application I usually run it on two or more seperate boxes and add some logic to the dialplan to execute the AGI on the first server and if that fails to use the second one. So there are two AGI servers up and running all the time and they are fully functional. > Great library by the way. I'm more than happy to help out if you need > any assistance. I had thought of integrating the CCXML somehow to more > easily get at call control, but wasn't sure how to go about getting > started on that. . . any ideas? Yes supporting something like CCXML on top of the library would be cool. Do you know of any opensource work that we could use (like a CCXML parser or whatever)? =Stefan |