Voice Calling
Voice Calling Setup
<uses-permission android:name="android.permission.RECORD_AUDIO"/>ActivityCompat.requestPermissions( this, arrayOf(Manifest.permission.RECORD_AUDIO), MIC_PERMISSION_REQUEST_CODE // a code you set for monitoring whether or not the permission was granted )
Making an Outgoing Call
let localNumber: PhoneNumber!
let remoteNumber = "2024561414"
let delegate: ActiveCallDelegate
try! telephonyClient.createVoiceCall(localNumber: localNumber, remoteNumber: remoteNumber, delegate: delegate)val localNumber: PhoneNumber
val remoteNumber = "2024561414"
val listener: ActiveCallListener
telephonyClient.createVoiceCall(localNumber, remoteNumber, listener)Interacting With an Active Call
public protocol ActiveCallDelegate {
/// Notifies the delegate that the call has connected
/// - Parameters:
/// - call: The `ActiveVoiceCall`
func activeVoiceCallDidConnect(_ call: ActiveVoiceCall)
/// Notifies the delegate that the call failed to connect
/// - Parameters:
/// - error: `CallingError` that occurred.
func activeVoiceCallDidFailToConnect(withError error: CallingError)
/// Notifies the delegate that the call has been disconnected
/// - Parameters:
/// - call: The `ActiveVoiceCall`
/// - error: Error that caused the call to disconnect if one occurred.
func activeVoiceCall(_ call: ActiveVoiceCall, didDisconnectWithError error: Error?)
/// Notifies the delegate that the call has been muted or un-muted
/// - Parameters:
/// - call: The `ActiveVoiceCall`
/// - isMuted: Whether outgoing call audio is muted
func activeVoiceCall(_ call: ActiveVoiceCall, didChangeMuteState isMuted: Bool)
/// Called when the system audio route has changed.
/// Use `call.isOnSpeaker` to determine if the call is on speaker.
///
/// - Parameter call: The `ActiveVoiceCall`
func activeVoiceCallAudioRouteDidChange(_ call: ActiveVoiceCall)
}Receiving an Incoming Call
Manage Call Records
Get Call Records
Get Call Record
Subscribe To Call Records
Delete Call Record
Call Record
Voicemail
Get Voicemails
Get Voicemail
Subscribe To Voicemails
Voicemail Record
Downloading Voicemail Audio Data
Associating Voicemail Records with Call Records
Last updated