The best way to upload the RoutingCalledNumberManipulation.txt file to NexOSS is through the web interface shown in the following screenshot. Use the Choose File button to select the file with routing called number manipulation rules and then click on the Restore button to upload the file.
If the NexOSS web interface is not available, the RoutingCalledNumberManipulation.txt file may be copied to NexOSS using the command line interface as shown in the following example.
[ossadmin@linux-lab MY_SQL]$ cp RoutingCalledNumberManipulation.txt $NexOSS_HOME/WebServer/webapps/ROOT/WEB-INF/ETC/routing_called_number_manipulation.cfg
Use the following command to verify the copy was successful.
[ossadmin@linux-lab MY_SQL]$ ls -ltr $NexOSS_HOME/WebServer/webapps/ROOT/WEB-INF/ETC
total 62576
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 pre_routing_calling_number_translation.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 pre_routing_called_number_digit_filtering.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 post_routing_calling_number_translation.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 post_routing_called_number_translation.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 post_routing_called_number_translation_by_provider.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 dial_plan_4.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 dial_plan_3.cfg
-rw-r--r--. 1 ossadmin oss 0 Dec 2 19:10 dial_plan_2.cfg
-rw-r--r--. 1 ossadmin oss 63880786 Dec 2 19:22 NexOSS.rates
-rw-r--r--. 1 ossadmin oss 0 Dec 2 23:07 pre_routing_called_number_translation.cfg
-rw-r--r--. 1 ossadmin oss 29 Dec 2 23:07 dial_plan_1.cfg
drwxr-xr-x. 2 ossadmin oss 32768 Dec 3 00:59 BACKUP
-rw-r--r--. 1 ossadmin oss 3612 Dec 4 12:57 NexOSS.rules
-rw-r--r--. 1 ossadmin oss 149436 Dec 4 15:31 routing_called_number_manipulation.cfg
Copying the configuration file manually will require the Webserver to be restarted. Use the following commands to restart the NexOSS Webserver.
[ossadmin@linux-lab MY_SQL]$ cd $NexOSS_HOME/unix/run
[ossadmin@linux-lab run]$
[ossadmin@linux-lab run]$ ./stop_web_server.sh
Using CATALINA_BASE: /home/ossadmin/OSS/nexoss/WebServer
Using CATALINA_HOME: /home/ossadmin/OSS/nexoss/WebServer
Using CATALINA_TMPDIR: /home/ossadmin/OSS/nexoss/WebServer/temp
Using JAVA_HOME: /home/ossadmin/JAV/jdk1.7.0_51
[ossadmin@linux-lab run]$
[ossadmin@linux-lab run]$ ./run_web_server.sh
Using CATALINA_BASE: /home/ossadmin/OSS/nexoss/WebServer
Using CATALINA_HOME: /home/ossadmin/OSS/nexoss/WebServer
Using CATALINA_TMPDIR: /home/ossadmin/OSS/nexoss/WebServer/temp
Using JAVA_HOME: /home/ossadmin/JAV/jdk1.7.0_51
[ossadmin@linux-lab run]$