This documentation relates to last stable version of Cipango.
visit the last unstable documentation home.
Can I run multiple Cipango instance on one server ?
To run multiple Cipango instance on one server, you should use different HTTP and SIP port and use a different log directory.
Using start.jar
- create a copy of cipango
- start first Cipango
java -jar start.jar etc/cipango.xml
- start second Cipango with the options
java -Dsip.port=5061 -Djetty.port=8081 -jar start.jar etc/cipango.xml
Using jetty.sh script
- Create linux users cipango1 and cipango2
$ /usr/sbin/useradd --create-home --home-dir /usr/local/cipango1 --shell /bin/bash cipango1 $ /usr/sbin/useradd --create-home --home-dir /usr/local/cipango2 --shell /bin/bash cipango2
- Create two Cipango directory
$ tar xvzf cipango-VERSION.tar.gz /usr/local/cipango1 $ cp -r /usr/local/cipango1 /usr/local/cipango2
- Create Cipango configuration file for each user (see also Running and Stopping)
/usr/local/cipango1/.jettyrc
# Where Cipango is installed JETTY_HOME=/usr/local/cipango1 #Override the default SIP port SIP_PORT=5060 #Override the default HTTP port JETTY_PORT=8080 JETTY_PID=cipango1 JAVA_HOME=${JAVA_HOME} -Dsip.port=${SIP_PORT} -Dsip.host=${SIP_HOST}
/usr/local/cipango2/.jettyrc
# Where Cipango is installed JETTY_HOME=/usr/local/cipango2 #Override the default SIP port SIP_PORT=5061 #Override the default HTTP port JETTY_PORT=8081 JETTY_PID=cipango2 JAVA_HOME=${JAVA_HOME} -Dsip.port=${SIP_PORT} -Dsip.host=${SIP_HOST}
- Set right owners
$ chown cipango1 -R /usr/local/cipango1 $ chown cipango2 -R /usr/local/cipango2
- Copy
cipango.sh
$ cp /usr/local/cipango1/bin/jetty.sh /etc/init.d/cipango $ chmod 777 /etc/init.d/cipango
- Start Cipango
$ su -c "/etc/init.d/cipango start" - cipango1 $ su -c "/etc/init.d/cipango start" - cipango2