getState method

String? getState({
  1. String? callId,
})

Implementation

String? getState({String? callId}) {
  if (callId == null) {
    if (!callCurrentIsEmpty()) {
      return _states[_callIdCurrent]?.state.toString();
    } else {
      _logger.error('You have to set callIdCurrent or pass param callId');
      return 'UNKNOWN';
    }
  } else {
    return _states[callId]?.state.toString();
  }
}