Skip to main content

CloudonixRegistrationData

The CloudonixRegistrationData class is used to hold SIP account registration details. The class exposes several properties for each of the SIP account settings supported by the Cloudonix Mobile SDK.

Properties

String serverUrl

The SIP server address (host name, IPv4 address or canonical IPv6 address) to connect to. Default: "sip.cloudonix.io".

int port

The SIP port to use when connecting to the SIP server. This property must be set for correct operation. Default: depends on the value of transportType: for UDP - 5060; for TCP - 80; for TLS - 443.

boolean useDnsSrv

Whether to resolve the actual server address and SIP port using DNS SRV lookup of the configured server address. If this is set to true, and DNS SRV is configured correctly, the port address need not be specified. Default: false.

TransportType transportType

The transport type to use when connecting to the SIP server. The parameter can be any of the TransportType enum values, to select UDP, TCP or TLS transports. Default: TLS.

String domain

The Cloudonix domain / SIP domain to use for registration and dialing. This property must be set for correct operation.

String username

The login name to use to authenticate to the SIP server or Cloudonix platform. This property must be set for correct operation in SIP Registration mode.

String password

The password to use to authenticate to the SIP server or Cloudonix platform. This property must be set for correct operation in SIP Registration mode.

String displayName

The display name to use in the SIP caller ID when dialing. Default: if not set, defaults to the value of the username property.

WorkflowType workflowType

Tthe workflow type to active in the Cloudonix SDK for this account. The parameter can be any of the WorkflowType enum values, to select either auto switching between “SIP Registration” and “Cloudonix Registration-Free” workflows, force the “SIP Registration” workflow, force the “Cloudonix Registration-Free” workflow or force the “SIP Registration-less” workflow (like “SIP Registration”, but the Cloudonix SDK never registers, does not need to maintain registration with the SIP service and cannot receive calls). Default: auto detection of "SIP Registration" vs. "Registration-Free".