Wipple CPaaS
Menu
Functions / SIP Request

SIP Request

{
  "verb": "sip:request",
  "method": "INFO",
  "headers": {
    "X-Metadata": "my sip metadata"
  }
  "actionHook": "/info"
}

Parameters

methodstringrequired

SIP method, should be one of INFO, MESSAGE, or NOTIFY.


actionHookstring

A webhook to call when the SIP request has completed.


bodystring

The body of the SIP request, if any.


headersobject

An object containing headers (key-value pairs) to include with the SIP request.


The sip:request Function completes when a response is received from the far end.

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