[Asterisk-java-devel] introduction of a ChannelFactory
Brought to you by:
srt
From: daniel m. <dan...@go...> - 2011-02-19 15:05:23
|
Hi I am building distributed call applications where channels are routed through different agis on different servers. Channel variables are used to save states, so channels are real business objects here and I want them to have business logic. The lib does not allow me to configure a factory for channels, so I had to write wrapper for channels, that provide application's business logic. that works… but for clean software design, it would be better the AgiScript got the correct channel instance in the first place (from the server). See my implemantation here: git://github.com/camillo/asterisk-java.git It introduce a ChannelFactory, that can be passed to the DefaultAgiServer's constructor. An Example is included, so just have a look to it. I guess you do not like the fact that i had to change some visibilities. If this holds you from including the feature into the official branch, please les me know what I have to change. cu Daniel |