registerAccount static method

Future<String> registerAccount({
  1. required String domain,
  2. required String username,
  3. required String password,
  4. String? realm,
  5. String? callerId,
  6. String? displayName,
  7. int port = 5060,
  8. bool useWebSocket = false,
  9. String? accountId,
})

Register a new SIP account Returns the account ID

Implementation

static Future<String> registerAccount({
  required String domain,
  required String username,
  required String password,
  String? realm,
  String? callerId,
  String? displayName,
  int port = 5060,
  bool useWebSocket = false,
  String? accountId,
}) async {
  if (!_initialized) {
    await initialize();
  }

  return await MultiSipService.registerAccount(
    domain: domain,
    username: username,
    password: password,
    realm: realm,
    callerId: callerId,
    displayName: displayName,
    port: port,
    useWebSocket: useWebSocket,
    accountId: accountId,
  );
}