This API is used to fetch the call waiting setting.
const callWaitingResponse = await callSettings.getCallWaitingSetting();
The callWaitingResponse object will have callSetting object with the properties as mentioned in ToggleSetting
.
ToggleSetting:
{
statusCode: 200,
data: {
callSetting: {
enabled: true,
ringSplashEnabled: true
},
},
message: null
}
This API is used to fetch the do not disturb(DND) status.
const dndResponse = await callSettings.getDoNotDisturbSetting();
The dndResponse object will have callSetting object with the properties as mentioned in ToggleSetting
.
Example - ToggleSetting
{
statusCode: 200,
data: {
callSetting: {
enabled: true,
ringSplashEnabled: true
},
},
message: null
}
This API is used to fetch the call forward setting.
const callForwardResponse = await callSettings.getCallForwardSetting();
The callForwardResponse
object will have callSetting object with the properties as mentioned in CallForwardSetting.
This API is used to set the call forward setting.
const callForwardResponse = await callSettings.setCallForwardSetting(callForwardSetting);
The callForwardSetting
object will be populated with the properties as mentioned in CallForwardSetting and passed as a parameter to the API.
This API is used to fetch the voicemail.
const voicemailResponse = await callSettings.getVoicemailSetting();
The voicemailResponse
object will have callSetting object with the properties as mentioned in VoicemailSetting.
This API is used to set voicemail.
const voicemailResponse = await callSettings.setVoicemailSetting();
The voicemailSetting
object will be populated with the properties as mentioned in VoicemailSetting and passed as a parameter to the API.
This API is used to fetch the call forward settings including the Voicemail.
const callForwardAlwaysResponse = await callSettings.setVoicemailSetting();
The callForwardAlwaysResponse
object will have callSetting object with the properties as mentioned in CallForwardAlwaysSetting.
Optional
directoryNumber: stringDirectory number for which the call forward always setting is to be fetched. This parameter is only required for Cloud Connected Unified Communications(CCUC): https://www.cisco.com/c/en/us/products/unified-communications/webex-cloud-connected-uc/index.html backend.
Interface for Call Settings Module. This encompasses set of APIs that allows to retrieve and update the settings like CallWaiting, DND, CallForward, Voicemail and more.
These APIs return promises that resolve to a
CallSettingResponse
object, which contains a status code, data, and message. The data field within this response object holds thecallSetting
object, which can take on different types depending on the specific API called.Example