Configuration

REST API integration allows you to receive notificacions from phone system events in your own applications.

For each event you have to configure a web service URL that will receive the notificacion and a HTTP method to make the request (GET, POST, PUT or DELETE).

If you use GET or DELETE you'll have to embed the event parameters in the URL and in the case of POST and PUT the parameters must be used in the data field that will be appear beside the URL field.

For example, if you want to receive an incoming call notificacion via GET method you must configure the URL like this:

https://yourdomain.com/test_ws.php?callid={id}&caller={src}&numcalled={dst}

These are available events and configurable parameters:

- Incoming call

This event will be called everytime a new call is received in any public number.

Parameters:

.     {id}: unique indentifier for the call

.     {src}: caller phone number

.     {dst}: called public number

- Outgoing call

This event will be called everytime a new outgoing call is make.

Parameters:

.     {id}: unique indentifier for the call

.     {src}: used caller id

.     {dst}: phone number called

.     {ext}: extension who has originated the call


- Answer call

This event will be called everytime a call is answered by an extension.

Parameters:

.     {id}: unique indentifier for the call

.     {ext}: extension who has answered the call

- Get contact name

This event is called to get the contact name from a phone number. This name will be used to display it in your phone device when making or receiving a call. Response from your API should be the name of the contact in plain text.

Parameters:

.     {number}: phone number of the contact.


- Hangup call

This event will be called everytime a call is hangup.

Parameters:

.     {id}: unique indentifier for the call

.     {duration}: duration of the call in seconds


- Transfer call

This event will be called everytime a call is transfered.

Parameters:

.     {id}: unique indentifier for the call

.     {duration}: duration of the call in seconds

.     {ext}: extension or external number who call has been transfered

Monema for Business

Telephony, virtual PBX and fax

Virtual PBX, minute plans for landline and cellular phones, easy-to-use control panel, immediate setup and a 30-day free trial.

Centralita Virtual

See more

Contact us

In Monema we are delighted to serve you. If you need additional information on our services you can reach us by chat, or our online form:

Contact us