RestComm Install, NFS mount & XMS config:

  1. SSH into the server designated for the RestComm install and update yum.

    sudo yum update -y
  2. Install the necessary NFS binaries:

    sudo yum install nfs* -y
  3. Start the NFS services:

    service rpcbind start
    service nfs start
  4. Create a directory for recording storage:

    mkdir -p /mnt/nfs/home/recordings
  5. Open the exports file for editing:

    vi /etc/exports
  6. Add the following to the exports file:

    1. Notes:

      • is the IP address of your XMS server.

      • Use ":wq" to write and quit the vi.

  7. Reload the exports file:

    sudo exportfs -r
  8. Add the docker repository by copying the entire statement below and pasting the following into the command prompt:

    sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
    name=Docker Repository
  9. Install docker by running:

    sudo yum install docker-engine -y
  10. Start the docker service:

    sudo service docker start
  11. Pull down the latest RestComm docker container:

    docker pull restcomm/restcomm:latest
    1. Notes:

      • Download will take ~5-10 mins

  12. SSH into the XMS server and create a directory for recording storage:

    mkdir -p /opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/recordings
  13. Mount that new directory so that the RestComm server can access it:

    sudo  mount -t nfs /opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/recordings
    1. Notes:

      • Replace with the IP address of your RestComm server

      • If the mount times out, you may need to stop/disable/open the firewall on the restcomm server:

        sudo systemctl stop firewalld
      • You may need to use -vvv for verbose logging OR -o nfsvers=3,vers=3 to see the NFS version to get the mount to work

        sudo mount -l
  14. Log into the webUI of the PowerMedia XMS server and navigate to the ‘Protocol’ tab on the left hand side.

    • Change the transport to: UDP_TCP

    • Save the changes.

Starting RestComm container:

  1. Start the docker container:

    docker run  -i -d --name=restcomm-myInstance -v /var/log/restcomm/:/var/log/restcomm/ -v /mnt/nfs/home/recordings/:/opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/recordings/ -e RCBCONF_STATIC_ADDRESS="" -e ENVCONFURL="" -e RMSCONF_MS_COMPATIBILITY_MODE="xms" -e RMSCONF_MS_ADDRESS="" -p 8080:8080 -p 8443:8443 -p 9990:9990 -p 5080:5080 -p 5081:5081 -p 5082:5082 -p 5083:5083 -p 5080:5080/udp -p 65000-65050:65000-65050/udp restcomm/restcomm:latest
    1. Notes:

      • Replace with the IP address of your RestComm server.

      • Replace with the IP address of your XMS server.

Testing RestComm Installation:

  1. Open Chrome/Firefox and navigate to the following to verify the RestComm webUI dashboard is accessible:
    1. Notes:

      • Replace with the IP address of your RestComm server

      • Default username/password is:

  2. Make a test webrtc call by opening the Olympus client:
    • Replace with the IP address of your RestComm server

  3. Log in using the pre-configured Alice account. Note the default password for client is: 1234

  4. On the left hand side, click "Contacts" and chose any of the stored scripts to test the installation. Upon script selection, the call should be connected and audio heard.

Stopping and removing RestComm container:

  1. Stop the instance:

    docker stop restcomm-myInstance
  2. Removing the docker instance:

    docker rm restcomm-myInstance