[Asterisk-Dev] Changing Asterisk's module invocation

Steven Critchfield critch at basesys.com
Wed Sep 15 18:27:12 MST 2004


On Wed, 2004-09-15 at 18:05, Juan Jose Comellas wrote:
> But if I do what you propose, each Java module would be created and destroyed 
> when each channel is created and destroyed. I want to have Java modules that 
> last as long as C modules do and that are not tied to specific channels. 
> 
> The problem I'm facing is that I need to map the C callback for each 
> application to multiple Java classes in order to have only one instance of 
> the JVM for all the Java modules. The configuration file would look like 
> this:

Why not try a second option.
exten => s,1,JavaWrapper(Javatransfer,some other option, next option)

This gives you onw wrapper/entry point and the rest goes to your JVM.

-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list