mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-10-16 00:14:28 +00:00
* added docs for sip refer and bidrectional audio * typos * more detail on bidirectional audio * say supports azure in 0.6.7 * minor updates * minor
1019 B
1019 B
sip:decline
The sip:decline action is used to reject an incoming call with a specific status and, optionally, a reason and SIP headers to include on the response.
This action must be the first and only action returned in the JSON payload for an incoming call.
The sip:decline action is a non-blocking action and the session ends immediately after the action is executed.
{
"verb": "sip:decline",
"status": 480,
"reason": "Gone Fishing",
"headers" : {
"Retry-After": 1800
}
}
You can use the following options in the sip:decline action:
| option | description | required |
|---|---|---|
| status | a valid SIP status code in the range 4XX - 6XX | yes |
| reason | a brief description | no (default: the well-known SIP reasons associated with the specified status code |
| headers | SIP headers to include in the response | no |