Applies to VoipNow 3 and higher! |
Call Events is a service that provides ways to notify web applications about various events triggered by phone calls. The notification is performed using REST calls. With the help of this service, a developer can define custom requests to be sent when specific events occur.
There are currently 3 events supported by the Call Events service:
In order to modify Call Events for an extension, you have to connect to the web interface and go to the extension's management page and click on Call Events icon in the Developers area.The attributes you can modify are:
Here is a list with the parameters that are automatically added to each request. Their main usage is to provide third-party applications with more information about events:
Name | Occurence | Type | Required | Description |
---|---|---|---|---|
CallID | 1 | String | No | The call's unique identifier. |
CallerIDNum | 1 | String | No | The caller's CallerID number. |
CallerIDNam | 1 | String | No | The caller's CallerID name. |
CalledDID | 1 | String | No | The public number of the called extension (if available). |
CalledExtension | 1 | String | No | The extension that received the call. Supported format: extended extension number (e.g. yyyy*zzz). |
CallStatus | 1 | String | No | The call status. For Dial-In and Dial-Out type events, this parameter is set to CALLING, for Hangup events is set to ANSWER or UNKNOWN. |
CallFlow | 1 | String | No | The call flow: IN - for the calls received by the extension or OUT - for the calls made by the extension. |
CallerExtension | 1 | String | No | The extension that made the call. Supported format: extended extension number (e.g. yyyy*zzz). |
CalledNumber | 1 | String | No | The number that was dialed by the caller. It can be a public number or the extended number of an extension. |