**** Restcomm is Moving to Docker *****
Getting Started with Restcomm on Docker
Rapid WebRTC application development with Restcomm and docker
If you are still using Restcomm Binary or if you want to build from source, please proceed with with the instructions below.
- Telscale Restcomm binary or Mobicents Restcomm Binary get latest HERE
- You may also choose to build Restcomm from source as explained HERE
- (Optional but recommended) Install screen
Step 1 – Download and unzip Restcomm binary
- Go to a local directory on your computer and run the following command:
- wget https://mobicents.ci.cloudbees.com/job/RestComm/lastSuccessfulBuild/artifact/Mobicents-Restcomm-JBoss-AS7-<xxx>.zip
- Where <xxx> is the release version number
- unzip the binary to a local directory. It should be similar to this Mobicents-Restcomm-JBoss-AS7-<version-number>
- We shall refer to this above Restcomm directory as the $RESTCOMM_HOME
Step 2 – Configure Restcomm IP information and Text-to-speech
- Go to the directory $RESTCOMM_HOME/bin/restcomm
- Open the file restcomm.conf
- Go to the section # Network configuration
Configure the following variables with the network configuration details of your server.
NET_INTERFACE= PRIVATE_IP= SUBNET_MASK= NETWORK= BROADCAST_ADDRESS=
Here is an sample ifconfig output and how you can use the information to autoconfigure Restcomm
p5p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::f2bf:97ff:fe03:9e0a prefixlen 64 scopeid 0x20<link> ether f0:bf:97:03:9e:0a txqueuelen 1000 (Ethernet) RX packets 16992066 bytes 17183323972 (16.0 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14220143 bytes 2457011656 (2.2 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- un the command netstat -r to get the Network address of your computer
netstat -r Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default 192.168.1.1 0.0.0.0 UG 0 0 0 p5p1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 p5p1
- This is what the restcomm.conf file will look like using the information from the network interface
NET_INTERFACE=p5p1 PRIVATE_IP=192.168.1.10 SUBNET_MASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST_ADDRESS=192.168.1.255
Add your Text-to-Speech Key
- In $RESTCOMM_HOME/bin/restcomm/restcomm.conf file
- Go to the section # VoiceRSS variable declarations
- Add your VoiceRSS API key to the variable VOICERSS_KEY=‘2901c0ab0a544399ab862123f561ff135d3’
- save and exit the restcomm.conf file
Step 3 – Start Restcomm and Open the Admin GUI
- Go to the directory Restcomm by running the $RESTCOMM_HOME/bin/restcomm/
- run the command below to start Restcomm and the media server
- ./start-restcomm.sh
- To see the Restcomm startup process run (screen -r restcomm) (Only works if you have screen installed)
- To see the MMS startup process (screen -r mms)
- Open your web browser and go to the url – http://IP:8080/
- log in with the username=administrator@company.com and the password=RestComm
- You will be prompted to change the default password.
- To stop Restcomm run the command
- $RESTCOMM_HOME/bin/restcomm/stop-restcomm.sh
Step 4 – Making Test SIP Calls using the Demo Apps
Restcomm comes pre-configured with SIP demo apps
Open any SIP phone of your choice, you may use Linphone which doesn’t require registeration
Make a sip call to the numbers below
- 1234@Restcomm_IP:5080 – you will hear a welcome message
- 1235@Restcomm_IP:5080 – you will hear an hello world message in 3 languages
- 1236@Restcomm_IP:5080 – this will test the collect verb,
for more demo apps, check HERE.
The post Restcomm – Quick Start User Guide appeared first on Telestax Docs Online.