InitiateConference
This operation is part of the Voice API section of the Web Services API.
Overview
Initiates a two-step conference to the specified destination. This operation places the existing call on hold and creates a new call in the dialing state. After initiating the conference you can use the CompleteConference operation to complete the conference and bring all parties into the same call.
Request URL | /api/v2/me/calls/{id} |
---|---|
HTTP method | POST |
Required features | api-voice |
Parameters
Parameter | Value |
---|---|
operationName | InitiateConference |
destination | A JSON object that includes the number to be dialed. |
location | An optional parameter that is used by Web Services to set the location attribute for the corresponding T-Server requests. |
userData | An optional JSON object that includes key/value data to be included with the call. |
Sample
Request
POST api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES000009
{
"operationName": "InitiateConference",
"destination": {
"phoneNumber": "15002"
}
}
HTTP response
{
"statusCode": 0
}
CometD notification
The first notification is that the initial call has been placed on hold:
{
"data":{
"notificationType":"StatusChange",
"call":{
"id":"01RCC3N118B1V0SL8O7GK2LAES000009",
"state":"Held",
"callUuid":"01RCC3N118B1V0SL8O7GK2LAES000009",
"connId":"0071027198180009",
"deviceUri":"http://127.0.0.1:8080/api/v2/devices/631608b3-ceb1-472b-ba05-2ae39555b0d1",
"participants":[
{
"e164Number":"",
"formattedPhoneNumber":"15001",
"phoneNumber":"15001",
"digits":"15001"
}
],
"dnis":"15001",
"callType":"Internal",
"capabilities":[
"UpdateUserData",
"Retrieve",
"InitiateConference",
"SingleStepTransfer",
"InitiateTransfer",
"AttachUserData",
"DeleteUserDataPair",
"SingleStepConference",
"DeleteUserData",
"Hangup"
],
"duration":"31",
"mute":"Off",
"supervisorListeningIn":false,
"monitoredUserMuted":false,
"monitoring":false,
"uri":"http://127.0.0.1:8080/api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES000009",
"path":"/calls/01RCC3N118B1V0SL8O7GK2LAES000009"
},
"phoneNumber":"15000",
"extensions":{
"BusinessCall":0
},
"messageType":"CallStateChangeMessage"
},
"channel":"/v2/me/calls"
}
The second notification is that the new consult call is dialing:
{
"data":{
"notificationType":"StatusChange",
"call":{
"id":"01RCC3N118B1V0SL8O7GK2LAES00000A",
"state":"Dialing",
"callUuid":"01RCC3N118B1V0SL8O7GK2LAES00000A",
"connId":"007102719818000a",
"deviceUri":"http://127.0.0.1:8080/api/v2/devices/631608b3-ceb1-472b-ba05-2ae39555b0d1",
"participants":[
{
"e164Number":"",
"formattedPhoneNumber":"15002",
"phoneNumber":"15002",
"digits":"15002"
}
],
"dnis":"15002",
"callType":"Consult",
"capabilities":[
"UpdateUserData",
"SendDtmf",
"SwapCalls",
"AttachUserData",
"DeleteUserDataPair",
"DeleteUserData",
"Hangup",
"CompleteTransfer"
],
"parentCallUri":"http://127.0.0.1:8080/api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES000009",
"duration":"0",
"mute":"Off",
"supervisorListeningIn":false,
"monitoredUserMuted":false,
"monitoring":false,
"uri":"http://127.0.0.1:8080/api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES00000A",
"path":"/calls/01RCC3N118B1V0SL8O7GK2LAES00000A",
"parentCallPath":"/calls/01RCC3N118B1V0SL8O7GK2LAES000009"
},
"phoneNumber":"15000",
"messageType":"CallStateChangeMessage"
},
"channel":"/v2/me/calls"
}
This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!