Skip to content

Instantly share code, notes, and snippets.

@santiago26
Created March 10, 2014 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santiago26/9460744 to your computer and use it in GitHub Desktop.
Save santiago26/9460744 to your computer and use it in GitHub Desktop.
How to run multiple copies of Jitsi
RUNNING MULTIPLE INSTANCES OF JITSI / SIP COMMUNICATOR
from http://dumbanddistributed.wordpress.com/2012/10/23/running-multiple-instances-of-jitsi-sip-communicator/
While the mailing list had a few threads mentioning that multiple instances of Jitsi can be run on the same machine, I could not find a definitive guide. So here are the things that I did to get it working. Note that these instructions only relate to SIP accounts.
Step 1) Install Ant
Step 2) Check out Jitsi/ SIP Communicator source code
Step 3) Build the code using the following command:
D:\jitsi\> ant rebuild
Step 4) Launch an instance using the following command:
D:\jitsi\> ant run
Make sure that Jitsi UI is launched.
Now kill the process and we will make the necessary changes to build.xml file to get multiple instances running.
Step 5) Open build.xml in your favorite editor. We need to modify some of the arguments defined in the “run” target.
<!--RUN-JITSI -->
<target name="run" depends="deploy-os-specific-bundles"
description="Starts felix and runs sip-comunicator gui (use latest build).">
Now uncomment and edit the lines which define SC_HOME_DIR_LOCATION and SC_HOME_DIR_NAME properties. Although this is not necessary, I changed SC_HOME_DIR_LOCATION from “${user.home}” to “${user.dir}” so that all the jitsi runtime files are created in my test directory. Change SC_HOME_DIR_NAME from “schome” to “${custom.dir}”
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION" value=”${user.dir}”/>
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME" value="${custom.dir}"/>
Now right after the above definitions, add the definition for following two sysproperties to allow each Jitsi instance to listen on a different SIP port.
<sysproperty key="net.java.sip.communicator.SIP_PREFERRED_CLEAR_PORT" value=”${sip.port}”/>
<sysproperty key="net.java.sip.communicator.SIP_PREFERRED_SECURE_PORT" value="${sips.port}"/>
Step 6) Now open a terminal window / command window for each instance that you want to run and launch each instance with ant:
D:\jitsi\> ant run -Dcustom.dir=instance_1 -Dsip.port=5060 -Dsips.port=5061
Just make sure that custom.dir, sip.port and sips.port are unique to each instance that is to be launched.
Note: Instead of making all the above changes you can simply use the “–multiple” argument, however each instance will be launched with the same SIP accounts configured. I needed a bit more flexibility and wanted to control the SIP ports as well as the accounts associated with each instance of Jitsi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment