Menu

Jastersk 0.7.0a Released

Added Asterisk application app_java which allows users to execute Java apps from the Asterisk dial plan. Currently only static void methods taking a single string array argument are supported (ex. public static void main(String[] args)). The first argument passed is always the channel's uniqueid field. See com.safi.asterisk.examples.AppTest for an example Java application. An example dial plan entry might be:

exten => 1234,1,JavaExec(com/safi/asterisk/examples/AppTest|test|arg1,arg2)

For this feature to work, Asterisk must be started with the -j or -J options (flag Asterisk to invoke the JVM on startup) and the application to be executed must be in the classpath (obviously!).

Also, several small memory leaks related to string conversion were eliminated from the JNI code.

Posted by Zac Wolfe 2004-10-10

Log in to post a comment.