CredentialConfig constructor

CredentialConfig({
  1. required String sipUser,
  2. required String sipPassword,
  3. required String sipCallerIDName,
  4. required String sipCallerIDNumber,
  5. String? notificationToken,
  6. bool? autoReconnect,
  7. required LogLevel logLevel,
  8. required bool debug,
  9. String? ringTonePath,
  10. String? ringbackPath,
  11. CustomLogger? customLogger,
  12. int? reconnectionTimeout,
  13. Region region = Region.auto,
  14. bool fallbackOnRegionFailure = true,
  15. bool forceRelayCandidate = false,
})

Creates an instance of CredentialConfig which can be used to log in

Uses the sipUser and sipPassword fields to log in sipCallerIDName and sipCallerIDNumber will be the Name and Number associated notificationToken is the token used to register the device for notifications if required (FCM or APNS) The autoReconnect flag decided whether or not to attempt a reconnect (3 attempts) in the case of a login failure with legitimate credentials logLevel is the log level to set for SDK Logging debug flag to enable debug logs which will collect stats for each call and provide WebRTC stats to view in the portal ringTonePath is the path to the ringtone file (audio to play when receiving a call) ringbackPath is the path to the ringback file (audio to play when calling) customLogger is a custom logger to use for logging - if left null the default logger will be used which uses the Logger package

Implementation

CredentialConfig({
  required this.sipUser,
  required this.sipPassword,
  required super.sipCallerIDName,
  required super.sipCallerIDNumber,
  super.notificationToken,
  super.autoReconnect,
  required super.logLevel,
  required super.debug,
  super.ringTonePath,
  super.ringbackPath,
  super.customLogger,
  super.reconnectionTimeout,
  super.region = Region.auto,
  super.fallbackOnRegionFailure = true,
  super.forceRelayCandidate = false,
});