sendDtmf method
Implementation
Future<void> sendDtmf(String digit) async {
final call = current.value;
if (call == null || call.legId == null) return;
await _guard(() => _engine.sendDtmf(digit));
final res = await _post('/partner/voice/dtmf', {
'sessionId': call.sessionId,
'legId': call.legId,
'digit': digit,
});
final ivr = res?['ivr'];
if (ivr is Map<String, dynamic>) onIvr?.call(ivr);
}