Call Control

When you enable the Click to Dial feature for a user, and when the user initiates an outbound call within Zoho PhoneBridge, the provider can provide additional call controls to the user such as mute, unmute, hold, unhold, answer, hang up, and keypress.

Purpose

To enable or disable the Call Control feature for a user.

Request URL

https://www.zohoapis.com/phonebridge/v3/callcontrol

Request Method

POST - To enable call control

DELETE - To disable call control

Request Parameters

Parameter NameData TypeDescriptionPossible Values
answeruriStringTo send a request to answer the call.https://api.pbx.com/zoho/answeruri
hungupuriStringTo send a request to hang up the call.https://api.pbx.com/zoho/hungupuri
muteuriStringTo send a request to mute the call.https://api.pbx.com/zoho/muteuri
unmuteuriStringTo send a request to unmute the call.https://api.pbx.com/zoho/unmuteuri
holduriStringTo send a request to put the call on hold.https://api.pbx.com/zoho/holduri
unholduriStringTo send a request to resume a call from hold.https://api.pbx.com/zoho/unholduri
keypressuriStringTo send the details about the keys/digits pressed during the call.https://api.pbx.com/zoho/keypressuri
zohouserStringTo enable call control for multiple users, call this API multiple times by passing the zohouser parameter in your API request. zohouser is the ID of the PhoneBridge user who is making the outbound call. Both incoming and outgoing notifications will be enabled for the mentioned users.--
authorizationparamStringA JSON object containing the name and value of the authorization details as a key-value pair.{name:param/header_name,value:token value}
callcontrolparamStringA JSON array of any custom parameters. There are no limits on the number of key-value pairs you can send in this parameter.[{name:pbxuserid,value:pbxuser1234}, {name:emailaddress,value:xyz@pbx.com}]
Note

By default, when a user uses clicktodial from Zoho products, we will call your API and pass the callee phone number in the tonumber parameter.
If you want to send the callee phone number in any other parameter other than tonumber, pass the name and the callee number as a key-value pair in clicktodialparam.

Possible Errors

HTTP StatusError CodeMessageReason
400SC_BAD_REQUESTPROVIDER_NOT_REGISTEREDThe PhoneBridge registration information is not available for the Provider name obtained from the OAuth Token object.
400SC_BAD_REQUESTPROVIDER_NOT_INTEGRATEDThe Provider is not integrated with PhoneBridge.
403SC_FORBIDDENNO_PERMISSIONThe telephony integration is not accessible for the current user's license.
403SC_FORBIDDENNO_PERMISSIONRequested user does not have enough privilege to perform this process.
500SC_INTERNAL_SERVER_ERRORINTERNAL_ERRORAn exception occurred while processing the request.

Sample Request to Enable Call Controls

Copiedcurl "https://www.zohoapis.com/phonebridge/v3/callcontrol" 
-X POST
-d "answeruri=https://pbx.com/answeruri"
-H "Authorization: Zoho-oauthtoken 1000.xxxxxxxxxxxxx.ebd1"

Sample Response

Copied{
	"message": "(Provider Name) Call control notifications has been enabled for the account successfully",
	"status":"success",
	"code":"SUCCESS"
}

Sample Request to Disable Call Controls

Copiedcurl "https://www.zohoapis.com/phonebridge/v3/callcontrol" 
-X DELETE
-H "Authorization: Zoho-oauthtoken 1000.xxxxxxxxxxxxx.ebd1"

Sample Response

Copied{
	"message": "(Provider Name) Call control notifications has been disabled for the account successfully",
	"status":"success",
	"code":"SUCCESS"
}