dialPhoneNumber

abstract fun dialPhoneNumber(phoneNumber: String): Call

Dials a phone number, placing an audio call routed through the Sinch Voice V2 platform and terminated to the PSTN-network (Publicly Switched Telephone Network).

Return

A Call instance.

Parameters

phoneNumber

The phone number to dial. The phone number should be given according to E.164 number formatting (http://en.wikipedia.org/wiki/E.164) and should be prefixed with a '+'. E.g. to dial the US phone number 415 555 0101, it should be specified as "+14155550101", where the '+' is the required prefix and the US country code '1' added before the local subscriber number.

Throws

If missing a permission required to place a call.


abstract fun dialPhoneNumber(phoneNumber: String, options: DialPhoneNumberOptions): Call

Dials a phone number, placing an audio call routed through the Sinch Voice V2 platform and terminated to the PSTN (Public Switched Telephone Network).

Return

A Call instance.

Parameters

phoneNumber

Phone number in E.164 format, including the leading + and country code, for example +14155550101.

options

Voice V2 phone dial options.

Throws

If a permission required to place the call is missing.