Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.


Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

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 March 25, 2016, at 18:22.

Feedback

Comment on this article:

blog comments powered by Disqus