POST/call/redirect

Function


The POST/call/redirect method is used to redirect a call to another extension or external number. For this to work, the redirected call must be placed using the POST/send/call method, in order to identify the call with a unique ID.


Parameters


There are no parameters in the header. All parameters go in the body in JSON Raw format.


ParameterTypeOperation
cnumberstringThe number where the call is to be redirected to. This is usually another user's extension, but can also be any external number.
uniqueidstringA unique ID number for the call. This need to be obtained from the uniqueid field in the response received from the post/send/call method, once the call is placed from that method. 


Example


To redirect a call to extension 1214840  use this syntax:


HTTP method: POST


Header


webserv.telebroad.com/api/teleconsole/rest/call/redirect


Body


{"cnumber":"1214840", "uniqueid":"1519784628.70134037"}


Response:


If the call was redirected successfully:


{

    "error": null,

    "result": "1"

}


If there was a problem redirecting the call (usually due to wrong uniqueid or if the call has already ended):


{

    "error":{

        "code": 444,

        "message": "The call does not exist."

    }

}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.