sendDTMF method

bool sendDTMF(
  1. String tone, {
  2. String? callId,
})

Implementation

bool sendDTMF(String tone, {String? callId}) {
  if (callId == null) {
    if (!callCurrentIsEmpty()) {
      Call? call = _sipuaHelper.findCall(_callIdCurrent!);
      if (call != null) {
        call.sendDTMF(tone);
        return true;
      }
      return false;
    } else {
      _logger.error('You have to set callIdCurrent or pass param callId');
      return false;
    }
  } else {
    Call? call = _sipuaHelper.findCall(callId);
    if (call != null) {
      call.sendDTMF(tone);
      return true;
    }
    return false;
  }
}