Installing Amirouter: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Amirouter is the multimanager's replacement and the start for the next real-time switchboard. It is a java application and it is fully multithreaded. It is still in its early stage of development, so the instructions are for the installation and compilation
Amirouter is the multimanager's replacement and the start for the next real-time switchboard. It is a java application and it is fully multithreaded. It is still in development, but it already fully usable


*** Install MAVEN
* Install JAVA
 
  cd /usr/local
  wget https://devel.mirtapbx.com/mirtapbx_support/apache-maven-3.8.6-bin.tar.gz
  tar xzvf apache-maven-3.8.6-bin.tar.gz
  export PATH=/usr/local/apache-maven-3.8.6/bin/:$PATH
  cd -
 
** Install JAVA


   rpm -i https://devel.mirtapbx.com/mirtapbx_support/jdk-13.0.2_linux-x64_bin.rpm
   rpm -i https://devel.mirtapbx.com/mirtapbx_support/jdk-13.0.2_linux-x64_bin.rpm


** Check java version, it should be  
* Check java version, it should be  


   java -version
   java -version


<pre>
java version "13.0.2" 2020-01-14
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
</pre>
* Configure
 
  /usr/local/amirouter/amirouter-server-config.yaml
  /usr/local/amirouter/application.properties
* Start
/usr/local/bin/runamirouter.sh
Amirouter is creating a log file in /tmp/amirouter.out, usueful for debugging. It is a good idea to add a crontab entry to truncate it once a day:
  0 0 * * * root truncate --size 0 /tmp/amirouter.out
 
If you need to compile Amirouter, but you should not need it
* Install MAVEN
  cd /usr/local
  wget https://devel.mirtapbx.com/mirtapbx_support/apache-maven-3.8.6-bin.tar.gz
  tar xzvf apache-maven-3.8.6-bin.tar.gz
  export PATH=/usr/local/apache-maven-3.8.6/bin/:$PATH
  cd -
* Get Amirouter from private git, compile and exec it with
  \rm target/amirouter-* ; /usr/local/apache-maven-3.8.6/bin/mvn clean install spring-boot:repackage -DskipTests -Pamirouter && \cp target/amirouter-*-SNAPSHOT.jar /usr/local/amirouter/amirouter.jar ; killall -9 java ; runamirouter.sh

Latest revision as of 11:57, 18 February 2025

Amirouter is the multimanager's replacement and the start for the next real-time switchboard. It is a java application and it is fully multithreaded. It is still in development, but it already fully usable

  • Install JAVA
 rpm -i https://devel.mirtapbx.com/mirtapbx_support/jdk-13.0.2_linux-x64_bin.rpm
  • Check java version, it should be
 java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
  • Configure
 /usr/local/amirouter/amirouter-server-config.yaml
 /usr/local/amirouter/application.properties
  • Start
/usr/local/bin/runamirouter.sh

Amirouter is creating a log file in /tmp/amirouter.out, usueful for debugging. It is a good idea to add a crontab entry to truncate it once a day:

 0 0 * * * root truncate --size 0 /tmp/amirouter.out


If you need to compile Amirouter, but you should not need it

  • Install MAVEN
 cd /usr/local
 wget https://devel.mirtapbx.com/mirtapbx_support/apache-maven-3.8.6-bin.tar.gz
 tar xzvf apache-maven-3.8.6-bin.tar.gz
 export PATH=/usr/local/apache-maven-3.8.6/bin/:$PATH
 cd -
  • Get Amirouter from private git, compile and exec it with
 \rm target/amirouter-* ; /usr/local/apache-maven-3.8.6/bin/mvn clean install spring-boot:repackage -DskipTests -Pamirouter && \cp target/amirouter-*-SNAPSHOT.jar /usr/local/amirouter/amirouter.jar ; killall -9 java ; runamirouter.sh