To build the image:
-
git clone this repository
-
if you are using Windows check that all shell scripts have
LFline separators -
run this command from the root of this project to build
restcomm/restcommimage. Make sure you don't skip the dot (.) at the end of the command
docker build -t restcomm/restcomm:latest -f Dockerfile .Parameters explanation
-t Name and optionally a tag in the 'name:tag' format (restcomm/restcomm:latest)
-f Docker file to use for build the container (Dockerfile)
- run Restcomm application using
docker-composefrom the root
docker-compose up-
login using URL http://localhost:8080/
-
enter default credentials
username : administrator@company.com
password : RestComm
After you sign up with Restcomm, you can find your Account SID and Auth Token by navigating to your profile → Account in the Restcomm Console.
You then need to use these credentials in your request’s Authorization header using Basic authentication type (i.e. Authorization: Basic )
REST API can be tested using get accounts request
curl -X GET https://www.restcomm.com/restcomm/2012-04-24/Accounts/ACCOUNT_SID.json \
-u 'YourAccountSid:YourAuthToken'example for
Account SID: ACae6e420f425248d6a26948c17a9e2acf
Auth Token: 94fe4b386b6f8127d0b1ccad6f7dc805
curl --location --request GET 'localhost:8080/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf.json' \
--header 'Authorization: Basic QUNhZTZlNDIwZjQyNTI0OGQ2YTI2OTQ4YzE3YTllMmFjZjo5NGZlNGIzODZiNmY4MTI3ZDBiMWNjYWQ2ZjdkYzgwNQ=='