Maintainer George Vagenas - [email protected]
Restcomm binds to the ip address of the host and following ports:
- http: 8080
- sip/udp: 5080
- sip/tcp: 5080
- rtp/udp: 65000 - 65535
This image was tested with Docker 1.6
To build the image:
First git clone this repository and then:
docker build -t gvagenas/restcomm:latest -f Dockerfile .
Make sure you don't skip the dot (.) at the end of the command
Download the restcomm_workspace that contains the default database, default RVD workspace and the required folders and unzip it to a folder in your filesystem.
Next run Restcomm image using the following volume arguments:
docker run --name=rc --restart=always -d -e VOICERSS_KEY="YOUR_VOICESS_KEY_HERE" -p 8080:8080 -p 5080:5080 -p 5080:5080/udp -p 65000-65535/udp -v $YOUR_FOLDER/restcomm_workspace/restcomm/log:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/log -v $YOUR_FOLDER/restcomm_workspace/restcomm/recordings:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/recordings -v $YOUR_FOLDER/restcomm_workspace/restcomm/cache:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/cache -v $YOUR_FOLDER/restcomm_workspace/restcomm/data:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/WEB-INF/data/hsql -v $YOUR_FOLDER/restcomm_workspace/mms/log:/opt/Mobicents-Restcomm-JBoss-AS7/mediaserver/log -v $YOUR_FOLDER/restcomm_workspace/rvd/workspace:/opt/Mobicents-Restcomm-JBoss-AS7/standalone/deployments/restcomm-rvd.war/workspace gvagenas/restcomm:latest
You can start the container and get a bash console to manually setup Restcomm and test it using the following command:
docker run --name=restcomm --entrypoint=/bin/bash -it -p 8080:8080 -p 5080:5080 -p 5080:5080/udp gvagenas/restcomm:latest
docker logs restcomm
docker exec rc [command]
For example
docker exec rc ps -ef | grep java