Dialogic Voice Cards - Updating the JRE bundled with NaturalAccess™ Software for Linux
Information
Dialogic NaturalAccess Software is use to create development and runtime environment for creating voice, fxs, conferencing and video application using the Dialogic CG Series Media Boards
Description
This article provides an overview for removing the Java Runtime Enviroment (JRE) installed with the Dialogic® NaturalAccess™ Software for Linux and using the existing JRE installed on the system. NaturalAccess Software for Linux bundles a JRE that is required to run the licensing server. The bundled JRE version is now obsolete. The licensing server can be modified to run using the system's existing JRE, allowing for the bundled JRE to be removed.
Procedure for Removing Obsolete NMS-NA Bundled JRE
To modify the NaturalAccess Software licence server to use the system JRE, use the following procedure as the root user.
Stop the NaturalAccess Software licence server
/etc/init.d/vmivoip stop/etc/init.d/nmslm_daemon stop
Modify the NaturalAccess Software licence server to use the system JRE
Three files under the /opt/nms/nmslmdirectory must be modified. These files must first be made writable:
cd /opt/nms/nmlmchmod +w javaservice/conf/wrapper.confchmod +w bin/nmslm_toolchmod +w bin/nmslm_server_start
Modify the file javaservice/conf/wrapper.conf by replacing the line
wrapper.java.command=../../jre/bin/java
with
wrapper.java.command=java
Modify the file bin/nmslm_tool by replacing the line
../jre/bin/java -classpath ./nmslm_tool.jar com.nms.license.servertool.ManagerFrame $1 $2 $3 $4 $5 $6
with
java -classpath ./nmslm_tool.jar com.nms.license.servertool.ManagerFrame $1 $2 $3 $4 $5 $6
Modify the file bin/nmslm_server_start by replacing the line
../jre/bin/java -classpath ./nmslm.jar com.nms.license.server.ServerLoader
with
java -classpath ./nmslm.jar com.nms.license.server.ServerLoader
The files should have their write permissions removed again
chmod -w javaservice/conf/wrapper.confchmod -w bin/nmslm_toolchmod -w bin/nmslm_server_start
To ensure the older JRE is not in use, it can either be deleted or renamed
mv jre bad-jrerm -rf bad-jre/
In the commands above it is renamed first, then deleted so that the scan will not fail on this version being present any more.
To complete the change, restart the stopped service
/etc/init.d/nmslm_daemon
Ensure that the server is still able to answer calls