Initiate Attended Transfer
During a call, call the third party through the interface to initiate attended transfer.
Request URL
{base_url}/{api_path}/call/attended_transfer?token={token}
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
channelid | Yes | String | The call channel ID of each member during the call. |
tonumber | Yes | String | The target number that the call will transferred to. |
dialpermission | No | String | If tonumber is an external number,
dialpermission
must be the extension which is of outbound call
permission. |
Response parameters
Parameter | Type | Description |
---|---|---|
status | String | Request result.
|
callid | String | The unique ID of each call. |
Examples
Request example
POST /api/v2.0.0/call/attended_transfer?token=2584a8eb3fe8739c185c534235ee9421 HTTP/1.1 Content-Type:application/json; charset=utf-8 { "channelid": "PJSIP/1020-0000003b", "tonumber": "2023" }
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 { "status": "Success", "callid": "1571983052.150" }