Overview
Thesip:request verb sends a SIP INFO, NOTIFY, or MESSAGE request during a call.
Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
method | string | Yes | SIP method, should be one of INFO, MESSAGE, or NOTIFY. |
actionHook | string | No | A webhook to call when the SIP request has completed. |
body | string | No | The body of the SIP request, if any. |
headers | object | No | An object containing headers (key-value pairs) to include with the SIP request. |
actionHook properties
The actionHook provides the status code of the sip response:- result: ‘success’ or ‘failed’
- sipStatus: sip status code of response
- err: error message, in the case of failure