diff options
author | Dan Williams <dan@ioncontrol.co> | 2025-04-11 20:43:17 -0500 |
---|---|---|
committer | Dan Williams <dan@ioncontrol.co> | 2025-05-30 07:59:58 -0500 |
commit | 5448a85a2bae32b6c9dfb82ac148904bf20fc209 (patch) | |
tree | d3dc01eb24ab04b592195ef335d43ca8ef4c08d0 /src/mm-modem-helpers.h | |
parent | 28b195465422b63ccc77e1a8d9d21e8bb6f217e9 (diff) |
call: allow setting DTMF tone duration at call creation time
Instead of hard-coding a 500ms DTMF tone duration, let applications
use a specific duration at call setup time.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index eb62a551..74626c90 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -643,4 +643,9 @@ guint mm_string_uint_map_lookup (const MMStringUintMap *map, MMModemLock mm_parse_cpin_response (const gchar *response, gboolean expect_cpin_prefix); +/*****************************************************************************/ + +/* Helper to clamp duration and round to next 100ms */ +guint mm_dtmf_duration_normalize (guint duration_ms); + #endif /* MM_MODEM_HELPERS_H */ |