Skip to Content
SIP trunks

List SIP trunk rejections

Permissionsip-trunks:readAuthentication
GET
/sip-trunks/{id}/rejections

Lists recent calls on this trunk that were refused at the SIP layer. SIP-level refusals with the SIP status, reason, stage (trunk_auth, no_trunk, no_dispatch_rule, admission, capacity, quota, unknown_number, carrier_rejected, registrar, other) and the captured INVITE / final response headers.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Query Parameters

limit?integer
Range1 <= value <= 200
Default50

Response Body

Recent rejections, newest first.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://api.kejue.co/v1/sip-trunks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rejections'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",      "occurred_at": "2019-08-24T14:15:22Z",      "direction": "inbound",      "stage": "string",      "sip_status": 0,      "sip_reason": "string",      "caller_number": "string",      "called_number": "string",      "sip_trunk_id": "3eeb45a3-96f0-493f-8a7e-d09946261852",      "phone_number_id": "54afc7b8-17df-415a-9fb0-21ee66219576",      "sip_call_id": "string",      "source_ip": "string",      "detail_internal": "string",      "messages": [        {          "seq": 0,          "sip_call_id": "string",          "direction": "sent",          "hop": "sonus",          "src": "string",          "dst": "string",          "transport": "string",          "kind": "request",          "method": "string",          "status_code": 0,          "reason": "string",          "headers": "string",          "ts": "2019-08-24T14:15:22Z"        }      ]    }  ]}