Config
Config is used to log in and connect to the Telnyx WebRTC client. It contains the necessary fields to log in with either a token or credentials. The base Config class is represented like so:Config Parameters
sipCallerIDName(String, required): Name associated with the SIP accountsipCallerIDNumber(String, required): Number associated with the SIP accountnotificationToken(String?, optional): Token used to register the device for notifications if required (FCM or APNS)autoReconnect(bool?, optional): Flag to decide whether or not to attempt a reconnect (3 attempts) in the case of a login failure with legitimate credentialslogLevel(LogLevel, optional): Log level to set for SDK Logging (defaults toLogLevel.all)debug(bool, required): Flag to enable debug logscustomLogger(CustomLogger?, optional): Custom logger to use for logging - if left null the default logger will be used which uses the Logger packageringTonePath(String?, optional): Path to the ringtone file (audio to play when receiving a call)ringbackPath(String?, optional): Path to the ringback file (audio to play when calling)reconnectionTimeout(int?, optional): Reconnection timeout in milliseconds (Default 60 seconds). This is the maximum time allowed for a call to be in the RECONNECTING or DROPPED stateregion(Region, optional): The region to use for the connection (defaults toRegion.auto)fallbackOnRegionFailure(bool, optional): Whether the SDK should default to AUTO after attempting and failing to connect to a specified region (defaults totrue)
Available Regions
TheRegion enum provides the following options:
Region.auto: Automatically select the best region (default)Region.eu: European regionRegion.usCentral: US Central regionRegion.usEast: US East regionRegion.usWest: US West regionRegion.caCentral: Canada Central regionRegion.apac: Asia Pacific region
TokenConfig and CredentialConfig classes. These are the actual classes that you will use to log into the client.
TokenConfig
TokenConfig is used to log in with a token. It extends the base Config class and looks like this:
CredentialConfig
CredentialConfig is used to log in with credentials. It extends the base Config class and looks like this: