TeleStax.orgCommunity Documentation

Chapter 2. Getting Started and General Configuration

2.1. Quick Start Guide
2.2. Login into Restcomm and Changing the Default Password
2.3. Testing the Demo Applications
2.3.1. Demo 1 - Testing the Play Verb
2.3.2. Detailed Configuration
2.3.3. Runtime Settings
2.3.4. VoIP Innovations Restful API Access
2.3.5. Dao Manager
2.3.6. Media Server Manager
2.3.7. SMS Aggregator
2.3.8. Fax Service
2.3.9. Speech Recognizer
2.3.10. Speech Synthesizer

RestComm is a robust, powerful platform that will facilitate building comprehensive real-time communication solutions. The steps below will help you get started with ease.

Running RestComm on JBoss

JBoss Security

Running a secure application is dependent on multiple factors. Restcomm runs on JBoss which implies that system security implemention can be handled at JBoss level. Please see the link below on how you can make your server environment more secure. https://community.jboss.org/wiki/SecureJboss?_sscc=t

  • Download TelScale-Restcomm-JBoss-AS7-XX.XX.GA.zip

  • Using a terminal of your choice, extract the content of TelScale-Restcomm-XX.XX.GA.zip to a local directory on your computer. The root directoy into which you extract the content of the .zip file will be referred to as $RESTCOMM_HOME.

  • Go to $RESTCOMM_HOME/telscale-media/telscale-media-server/bin

  • change the permission of the run.sh as follows

  • sudo chmod +x ./run.sh

  • then start the TelScale Media Server as follows

  • sudo ./run.sh

  • If all is correctly started you will see the following at the end of the bash terminal window

    [MainDeployer] [[[[[[[[[ Mobicents Media Server: release.version=3.0.0.FINAL Started ]]]]]]]]]
    

  • Open another terminal and proceed as follows:

  • Go to $RESTCOMM_HOME/bin

  • change the permissions of all the .sh files in the bin directory as follows

  • sudo chmod +x ./*.sh

  • Start RestComm by running the following command

  • sudo ./standalone.sh -c standalone-sip.xml

  • If RestComm is correctly started you will see the following at the end of the terminal

    INFO  [Version] TelScale Sip Servlets 6.1.3.GA-TelScale (build: Git Hash=r8947f2732ee64c76566ed6c0b236204c048538e1 date=201306131639) Started.
    17:30:05,854 INFO  [Version] 
    ==============================================================================
    ==                                                                          ==
    ==                      Thank you for running TelScale                      ==
    ==    Carrier Grade Communications Platform by the creators of Mobicents    ==
    ==                    Copyright 2011-2013 Telestax, Inc.                    ==
    ==                         http://www.telestax.com/                         ==
    ==                                                                          ==
    ==============================================================================
    
    

Running RestComm on Tomcat

  • Download TelScale-Restcomm-Tomcat-XX.XX.GA.zip

  • Using a terminal of your choice, extract the content of TelScale-Restcomm-Tomcat-XX.XX.GA.zip to a local directory on your computer. The root directoy into which you extract the content of the .zip file will be referred to as $RESTCOMM_HOME.

  • Go to $RESTCOMM_HOME/telscale-media/telscale-media-server/bin

  • change the permission of the run.sh as follows

  • sudo chmod +x ./run.sh

  • then start the TelScale Media Server as follows

  • sudo ./run.sh

  • If all is correctly started you will see the following at the end of the bash terminal window

    [MainDeployer] [[[[[[[[[ Mobicents Media Server: release.version=3.0.0.FINAL Started ]]]]]]]]]
    

  • Open another terminal and proceed as follows:

  • Go to $RESTCOMM_HOME/bin

  • change the permissions of all the .sh files in the bin directory as follows

  • sudo chmod +x ./*.sh

  • The content of the bin directory should be similar to the list below

    bootstrap.jar                 digest.sh             tomcat-juli.jar
    catalina.bat                  setclasspath.bat      tomcat-native.tar.gz
    catalina.sh                   setclasspath.sh       tool-wrapper.bat
    catalina-tasks.xml            shutdown.bat          tool-wrapper.sh
    commons-daemon.jar            shutdown.sh           version.bat
    commons-daemon-native.tar.gz  startup.bat           version.sh
    cpappend.bat                  startup.sh
    digest.bat                    telestax-license.xml
    
    

    Start RestComm by running the following command

  • sudo ./catalina.sh run

  • If RestComm is correctly started on Tomcat, you will see an output similar to the one below

    Started.
    2013-08-15 19:02:46,903 INFO  [Version] (main) 
    ==============================================================================
    ==                                                                          ==
    ==                      Thank you for running TelScale                      ==
    ==    Carrier Grade Communications Platform by the creators of Mobicents    ==
    ==                    Copyright 2011-2013 Telestax, Inc.                    ==
    ==                         http://www.telestax.com/                         ==
    ==                                                                          ==
    ==============================================================================
    Aug 15, 2013 7:02:50 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 14090 ms
    
    
    

Before you start using Restcomm, you must change the default password. Please follow the steps below

Open your browser and go to http://127.0.0.1:8080/restcomm-management

Enter the following information:
   - Email/Account SID = administrator@company.com
   - Password = RestComm
   - Press the  Login button

You will see a screen similar to the one below

In the screen below, change the password and update.

Once the password has been changed, you can now log into the Admin Management interface and start using Restcomm.

Restcomm comes prepackaged with multiple example applications designed to help you quickly get started. For more demos and configuration details please visit www.telestax.com/doc

Start a SIP phone (see below) and dial 1234@127.0.0.1:5080. You will hear a welcome message.

RestComm is a robust, powerful platform that will facilitate building comprehensive real-time communication solutions. The steps below will help you get started with ease.

Running RestComm on JBoss

JBoss Security

Running a secure application is dependent on multiple factors. Restcomm runs on JBoss which implies that system security implemention can be handled at JBoss level. Please see the link below on how you can make your server environment more secure. https://community.jboss.org/wiki/SecureJboss?_sscc=t

  • Download TelScale-Restcomm-JBoss-AS7-XX.XX.GA.zip

  • Using a terminal of your choice, extract the content of TelScale-Restcomm-XX.XX.GA.zip to a local directory on your computer. The root directoy into which you extract the content of the .zip file will be referred to as $RESTCOMM_HOME.

  • Go to $RESTCOMM_HOME/telscale-media/telscale-media-server/bin

  • change the permission of the run.sh as follows

  • sudo chmod +x ./run.sh

  • then start the TelScale Media Server as follows

  • sudo ./run.sh

  • If all is correctly started you will see the following at the end of the bash terminal window

    						[MainDeployer] [[[[[[[[[ Mobicents Media Server: release.version=3.0.0.FINAL
    						Started ]]]]]]]]]
    					

  • Open another terminal and proceed as follows:

  • Go to $RESTCOMM_HOME/bin

  • change the permissions of all the .sh files in the bin directory as follows

  • sudo chmod +x ./*.sh

  • Start RestComm by running the following command

  • sudo ./standalone.sh -c standalone-sip.xml

  • If RestComm is correctly started you will see the following at the end of the terminal

    					INFO [Version] TelScale Sip Servlets 6.1.3.GA-TelScale (build: Git
    					Hash=r8947f2732ee64c76566ed6c0b236204c048538e1 date=201306131639)
    					Started.
    					17:30:05,854 INFO [Version]
    					==============================================================================
    					== ==
    					== Thank you for running TelScale ==
    					== Carrier Grade Communications Platform by the creators of Mobicents
    					==
    					== Copyright 2011-2013 Telestax, Inc. ==
    					== http://www.telestax.com/ ==
    					== ==
    					==============================================================================
    
    				

Running RestComm on Tomcat

  • Download TelScale-Restcomm-Tomcat-XX.XX.GA.zip

  • Using a terminal of your choice, extract the content of TelScale-Restcomm-Tomcat-XX.XX.GA.zip to a local directory on your computer. The root directoy into which you extract the content of the .zip file will be referred to as $RESTCOMM_HOME.

  • Go to $RESTCOMM_HOME/telscale-media/telscale-media-server/bin

  • change the permission of the run.sh as follows

  • sudo chmod +x ./run.sh

  • then start the TelScale Media Server as follows

  • sudo ./run.sh

  • If all is correctly started you will see the following at the end of the bash terminal window

    						[MainDeployer] [[[[[[[[[ Mobicents Media Server: release.version=3.0.0.FINAL
    						Started ]]]]]]]]]
    					

  • Open another terminal and proceed as follows:

  • Go to $RESTCOMM_HOME/bin

  • change the permissions of all the .sh files in the bin directory as follows

  • sudo chmod +x ./*.sh

  • The content of the bin directory should be similar to the list below

    					bootstrap.jar digest.sh tomcat-juli.jar
    					catalina.bat setclasspath.bat tomcat-native.tar.gz
    					catalina.sh setclasspath.sh tool-wrapper.bat
    					catalina-tasks.xml shutdown.bat tool-wrapper.sh
    					commons-daemon.jar shutdown.sh version.bat
    					commons-daemon-native.tar.gz startup.bat version.sh
    					cpappend.bat startup.sh
    					digest.bat telestax-license.xml
    
    				

    Start RestComm by running the following command

  • sudo ./catalina.sh run

  • If RestComm is correctly started on Tomcat, you will see an output similar to the one below

    					Started.
    					2013-08-15 19:02:46,903 INFO [Version] (main)
    					==============================================================================
    					== ==
    					== Thank you for running TelScale ==
    					== Carrier Grade Communications Platform by the creators of Mobicents
    					==
    					== Copyright 2011-2013 Telestax, Inc. ==
    					== http://www.telestax.com/ ==
    					== ==
    					==============================================================================
    					Aug 15, 2013 7:02:50 PM org.apache.catalina.startup.Catalina start
    					INFO: Server startup in 14090 ms
    
    
    				

Restcomm comes prepackaged with multiple example applications designed to help you quickly get started.

You must first activate Text-to-Speech before you can proceed.

You must get an API key from http://www.voicerss.org in order to proceed with this section. You can register for a free account and an API key will be emailed to you. Once you have the API key, open the $RESTCOMM_HOME/standalone/deployments/restcomm.war/WEB-INF/conf/restcomm.xml file and find the speech-synthesizer VoiceRSS section. Add your API key as shown below and restart RestComm


<speech-synthesizer
		class="org.mobicents.servlet.restcomm.tts.VoiceRSSSpeechSynthesizer">
		<service-root>http://api.voicerss.org</service-root>
		<apikey>2901c0aXXXXXXXXXXXXXX</apikey>

			

Start a SIP phone dial 1235@127.0.0.1:5080 . You will hear a welcome message in multiple languages.


The application bound to the number 1235 can be found at
 $RESTCOMM_HOME/standalone/deployments/restcomm.war/demos/hello-world.xml.

			

The runtime-settings are used by TelScale RestComm at runtime to customize it's behavior. A list of the runtime settings and a description is provided below.

Table 2.1. Runtime Settings

ElementDescription
api-versionThe version of the TelScale RestComm API that we will be executing by default.
prompts-uriThe location where the audio prompts are located.
cache-pathThe local path the cache folder.
cache-uriThe HTTP URI to the cache folder.
recordings-pathThe local path to the folder containing the recordings.
recordings-uriThe HTTP URI to the folder containing the recordings.
error-dictionary-uriThe HTTP URI to the TelScale RestComm error dictionary.
external-ip The IP to use for out-bound SIP REGISTER requests. This is useful when you want to report a different IP than the one TelScale RestComm picked by default.
use-to If set to true TelScale RestComm will use the To header to determine the destination. If set to false TelScale RestComm will use the Request URI to determine the destination.
outbound-proxy-user The user name used to authenticate with the outbound proxy. (Optional)
outbound-proxy-password The password used to authenticated with the outbound proxy. (Optional)
outbound-proxy-uri The SIP URI to the outbound proxy. Note: Do not prepend 'sip:' to the proxy uri. If necessary the port can be included, for example alice@localhost:5080
fallback-outbound-proxy-user The user name used to authenticate with the fallback outbound proxy. (Optional)
fallback-outbound-proxy-password The password used to authenticated with the fallback outbound proxy. (Optional)
fallback-outbound-proxy-uri The SIP URI to the fallback outbound proxy. Note: Do not prepend 'sip:' to the proxy uri. If necessary the port can be included, for example alice@localhost:5080
allow-fallback Set this to true so Restcomm will fallback to the backup proxy in case of failed calls
max-failed-calls Maximum number of failed call before switching from primary to fallback outbound proxy
allow-fallback-to-primary Allow fallback from Backup to Primary proxy in case fail called at backup proxy.

TelScale Restcomm Resource Security. The security model is based on role based access control. TelScale RestComm defines a set of permissions that can be defined for each role. There are two predefined roles Administrator and Developer. The Developer role can be configured or removed all together depending on your needs but the Administrator role can not be changed. The Administrator role can not be modified or removed and it has access to every resource.

First we will define the list of permissions and what they mean.


These permissions apply to every resource exposed by the Restful APIs. Once a role is defined it can be specified for new Account resources that are created.

Note

If no role is specified when creating a new Account resource then the new Account will inherit the security role of the account that created it. If this role is the Administrator role the system may become compromised.

Wildcard Permission. The asterisk '*' is a wildcard that means grant all permissions and can be used in place of typing out all the permissions.

To see how this all comes together please check out the restcomm.xml configuration file.