Reject
RejectAction rejects the inbound call with an optional reason.
RejectAction rejects the inbound call with an optional reason.
| Parameter | Type | JSON key | Required | Description |
|---|---|---|---|---|
Reason | string | reason | No | Reason is the rejection signal sent to the carrier ("rejected" or "busy"). Default "rejected". |
import { sauti } from "@sautikit/node";
res.json(sauti.reject("busy"));{
"actions": [
{
"reject": {
"reason": "busy"
}
}
]
}<Reject reason="busy" />