Refuse a Call

Refuse an inbound call through the interface.


If Control Inbound Call Accepting is enabled for the trunk on PBX web interface, PBX will send an Invite event to the application server when receiving an inbound call through the trunk. The application server has 10 seconds to decide whether to accept the call or not.

Note: If no response from the application server within 10 seconds, PBX will accept and route the call to the destination of originated inbound route.

Request URL


Request parameters

Parameter Required Type Description
channelid Yes String The call channel ID of each member during the call.

Response parameters

Parameter Type Description
status String Request result.
  • Success
  • Failed
callid String The unique ID of each call.


Request example
 POST /api/v2.0.0/call/refuse_inbound?token=3c423b4c0e7cab4e164a01523b8ac512 HTTP/1.1
Content-Type:application/json; charset=utf-8

    "channelid": "PJSIP/trunk-siptrunk-endpoint-00000029"
Response example
HTTP/1.1 200 OK
Server: Boa/0.94.14rc21
Accept-Ranges: bytes
Connection: close
Content-Type: application/json
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE