Forward a call
Forward a call to another phone number or to a SIP URI. This command will create a new call resource and both calls will be connected (bridged).
Command bridge new call with existing call
Check below the forward call object's properties.
type: object
title: Bridge new call with existing call
additionalProperties: false
properties:
from:
type: string
to:
type: string
ringTimeout:
type: integer
minimum: 3
maximum: 120
default: 30
maxDuration:
type: integer
minimum: 1
default: 28800
ringTone:
$ref: '../properties/RingTone.yml'
hangupAfterBridge:
type: boolean
record:
type: boolean
recordStart:
type: string
enum:
- record-from-answer
- record-from-ringing
recordStereo:
type: boolean
notification:
$ref: '../properties/Notification.yml'
required:
- to
Example 1: Forward an inbound call to an external number
curl -X POST "https://nest.messagebird.one/workspaces/8bc02f53-87ac-48d2-b4fd-c2cf856a305f/channels/880d8171-cbab-47bb-81b6-b1a0902da136/calls/4fc2edf7-68f5-437a-89eb-3ce0095409d6
/bridge" \
-H 'Authorization: Bearer {Token}'
{
"from": "string",
"to": "string",
"ringTimeout": 30,
"maxDuration": 28800,
"record": true,
"recordStart": "record-from-answer",
"recordStereo": true
}
{
"command": {
"id": "5982f9a9-759f-48fb-b335-d3ab879f43b5",
"callId": "ea765a11-8cbb-45ac-80d8-f82b931af964",
"command": "bridge",
"status": "accepted"
},
"bridgedCall": {
"id": "e76ab303-f303-49c7-9cc9-64603b3d6a49",
"channelId": "db53c357-92e3-4f3d-babe-159573940a50",
"originator": {
"number": {
"type": "pstn",
"number": "+3197058016589",
"countryIsoCode": "NL"
}
},
"receiver": {
"contact": {
"id": "77571b0f-9b6e-4b5a-a54c-31067e72f989",
"identifierKey": "phonenumber",
"identifierValue": "+351910648517"
},
"number": {
"type": "pstn",
"number": "+351910648517",
"countryIsoCode": "PT"
}
},
"from": "+3197058016589",
"to": "+351910648517",
"parentId": "ea765a11-8cbb-45ac-80d8-f82b931af964",
"direction": "outgoing",
"status": "accepted",
"type": "pstn",
"duration": 0,
"notification": {},
"createdAt": "2024-03-04T11:19:25.852Z",
"updatedAt": "2024-03-04T11:19:25.852Z"
}
}
Last updated