feat: add sendDtmf method to send DTMF tones during a call

This commit is contained in:
Andrew 2026-03-30 09:28:40 +07:00
parent b95baa6799
commit f64284f963
9 changed files with 84 additions and 1 deletions

View file

@ -136,6 +136,11 @@ await liblinphone.toggleMicrophone();
// Hangup
await liblinphone.hangupCall();
// Send DTMF tone during a call
await liblinphone.sendDtmf('5'); // Send tone '5'
await liblinphone.sendDtmf('#'); // Send tone '#'
await liblinphone.sendDtmf('*'); // Send tone '*'
// Unregister and cleanup
await liblinphone.unregister();
await liblinphone.stop();
@ -185,6 +190,7 @@ Column(
| `Future<CallType> callType()` | Returns the type of the current call (audio/video) |
| `Future<bool> toggleVideo()` | Toggles video enabled state during a call |
| `Future<bool> toggleMicrophone()` | Toggles microphone muted state |
| `Future<bool> sendDtmf(tone)` | Sends a DTMF tone during a call (0-9, *, #, A-D) |
| `Future<bool> stop()` | Stops the Linphone core |
| `Future<void> syncCurrentState()` | Forces synchronization of current state |