Jump to: navigation, search

Reject

This operation is part of the Voice API section of the Web Services API.

Overview

Rejects a ringing call. When this occurs, Web Services redirects the call to the queue from which it was delivered. This operation is only available when a call is delivered via a queue; you can't reject direct calls.

Request URL /api/v2/me/calls/{id}
HTTP method POST
Required features api-voice

Parameters

Parameter Value
operationName Reject

Sample

Request

POST api/v2/me/calls/013V08JRL498H1OI04000VTAES00000I
{
  "operationName": "Reject"
}

HTTP response

{
  "statusCode": 0
}

CometD notification

{  
   "data":{  
      "notificationType":"StatusChange",
      "call":{  
         "id":"013V08JRL498H1OI04000VTAES00000I",
         "state":"Released",
         "callUuid":"013V08JRL498H1OI04000VTAES00000I",
         "connId":"0071023821aec012",
         "deviceUri":"http://127.0.0.1:8080/api/v2/devices/9c14cad7-17c4-48d0-8492-7cf0ff92c224",
         "participants":[  
            {  
               "e164Number":"",
               "formattedPhoneNumber":"5005",
               "phoneNumber":"5005",
               "digits":"5005"
            }
         ],
         "dnis":"9000",
         "callType":"Internal",
         "capabilities":[  

         ],
         "duration":"5",
         "mute":"Off",
         "supervisorListeningIn":false,
         "monitoredUserMuted":false,
         "monitoring":false,
         "uri":"http://127.0.0.1:8080/api/v2/me/calls/013V08JRL498H1OI04000VTAES00000I",
         "path":"/calls/013V08JRL498H1OI04000VTAES00000I"
      },
      "phoneNumber":"5001",
      "extensions":{  
         "WrapUpTime":0,
         "BusinessCall":0
      },
      "messageType":"CallStateChangeMessage"
   },
   "channel":"/v2/me/calls"
}
This page was last edited on October 31, 2023, at 13:26.
Comments or questions about this documentation? Contact us for support!