registrationStateChanged method

  1. @override
void registrationStateChanged(
  1. RegistrationState state
)

Implementation

@override
void registrationStateChanged(RegistrationState state) {
  _registrationState = state;
  debugPrint('═══════════════════════════════════════');
  debugPrint('📞 SIP REGISTRATION STATE');
  debugPrint('═══════════════════════════════════════');
  debugPrint('State: ${state.state}');
  debugPrint('═══════════════════════════════════════');

  onRegistrationStateChanged?.call(state);
}