Calls the conference with the given id and the given headers.
Conference ID to dial in to.
Optionalheaders: Record<string, string>Headers to pass with the call.
A Call instance.
InvalidOperationError if SinchClient is not started
Calls a phone number and terminates the call to the PSTN-network (Publicly Switched Telephone Network).
The phone number to call. 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 call 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.
Optionalheaders: Record<string, string>Headers to pass with the call.
A Call instance.
InvalidOperationError if SinchClient is not started
Makes a SIP call to the user with the given identity. The identity should be in the form "sip:user@server".
SIP identity to dial in to.
Optionalheaders: Record<string, string>A Call instance.
InvalidOperationError if SinchClient is not started
Makes a call to the user with the given id.
The app specific id of the user to call. May not be null or empty.
Optionalheaders: Record<string, string>Headers to pass with the call.
A Call instance.
InvalidOperationError if SinchClient is not started
Makes a video call to the user with the given id and adding the given headers.
The app specific id of the user to call. May not be null or empty.
Optionalheaders: Record<string, string>Headers to pass with the call.
A Call instance.
InvalidOperationError if SinchClient is not started
BetaDials a phone number through the Sinch Voice V2 platform and terminates the call to the PSTN-network (Publicly Switched Telephone Network).
This API is in beta. It is functional, but its signature or behaviour may change in a future release without going through the usual deprecation cycle.
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.
Optionaloptions: DialPhoneNumberOptionsOptional DialPhoneNumberOptions containing a Voice V2 serviceId and caller identifier (cli).
A Call instance.
InvalidOperationError if SinchClient is not started
BetaDials a SIP identity through the Sinch Voice V2 platform. The identity should be in the form "sip:user@server".
This API is in beta. It is functional, but its signature or behaviour may change in a future release without going through the usual deprecation cycle.
SIP identity to dial in to.
Optionaloptions: DialSipOptionsOptional DialSipOptions containing a Voice V2 serviceId, SIP transport, and call headers.
A Call instance.
InvalidOperationError if SinchClient is not started
BetaDials a stream destination through the Sinch Voice V2 platform.
This API is in beta. It is functional, but its signature or behaviour may change in a future release without going through the usual deprecation cycle.
Stream endpoint URL. For example, wss://example.com.
Optionaloptions: DialStreamOptionsOptional DialStreamOptions containing a Voice V2 serviceId, stream configuration, and call headers.
A Call instance.
InvalidOperationError if SinchClient is not started
BetaDials a voice relay destination through the Sinch Voice V2 platform.
This API is in beta. It is functional, but its signature or behaviour may change in a future release without going through the usual deprecation cycle.
URL to the server that will accept the web-socket request. For example, wss://example.com/agent.
DialVoiceRelayOptions containing the required ttsVoice and sttLanguage, and optionally a Voice V2
serviceId, interruption setting, and call headers. See
https://developers.sinch.com/docs/voice/api-reference/voice-locales for available voices and locales.
A Call instance.
InvalidOperationError if SinchClient is not started
Sets or removes audio track constraints that are applied to ongoing calls and will also be used for any new Call created.
The constraints to apply for the audio track:
{ deviceId: { exact: "mic-id" }, echoCancellation: true }).null to remove previously set constraints, falling back to the default device
when requesting audio.Sets or removes video track constraints that are applied to ongoing calls and will also be used for any new Call created.
The constraints to apply for the video track:
{ width: 1280, height: 720 }).null to remove previously set constraints, falling back to default constraints.
The CallClientListener object will be notified of new incoming calls.