diff options
author | Dan Williams <dan@ioncontrol.co> | 2025-05-30 18:54:05 -0500 |
---|---|---|
committer | Dan Williams <dan@ioncontrol.co> | 2025-05-30 18:54:05 -0500 |
commit | 37f17d4b5859d8a37d1a9350abc9fcb15917de07 (patch) | |
tree | 7af9420327a7deea70df1bbcaa004724fed1aec7 /src/mm-broadband-modem.c | |
parent | 3ed7f378765b45a84ce6c0b4de6751769fefc221 (diff) | |
parent | dad2d49b696c66ccf868bc89b35a6529f9e15777 (diff) |
Merge request !1336 from 'dtmf-serialize'
Serialize DTMF requests and allow setting DTMF duration at call creation time
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1336
Closes #970
Diffstat (limited to 'src/mm-broadband-modem.c')
-rw-r--r-- | src/mm-broadband-modem.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index 3d02553d..27ac8f56 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -50,6 +50,7 @@ #include "mm-bearer-list.h" #include "mm-cbm-list.h" #include "mm-cbm-part.h" +#include "mm-call-at.h" #include "mm-sms-list.h" #include "mm-sms-part-3gpp.h" #include "mm-sms-at.h" @@ -8898,20 +8899,22 @@ modem_voice_disable_unsolicited_events (MMIfaceModemVoice *self, static MMBaseCall * modem_voice_create_call (MMIfaceModemVoice *_self, MMCallDirection direction, - const gchar *number) + const gchar *number, + const guint dtmf_tone_duration) { MMBroadbandModem *self = MM_BROADBAND_MODEM (_self); - return mm_base_call_new (MM_BASE_MODEM (self), - G_OBJECT (self), - direction, - number, - /* If +CLCC is supported, we want no incoming timeout. - * Also, we're able to support detailed call state updates without - * additional vendor-specific commands. */ - self->priv->clcc_supported, /* skip incoming timeout */ - self->priv->clcc_supported, /* dialing->ringing supported */ - self->priv->clcc_supported); /* ringing->active supported */ + return mm_call_at_new (MM_BASE_MODEM (self), + G_OBJECT (self), + direction, + number, + dtmf_tone_duration, + /* If +CLCC is supported, we want no incoming timeout. + * Also, we're able to support detailed call state updates without + * additional vendor-specific commands. */ + self->priv->clcc_supported, /* skip incoming timeout */ + self->priv->clcc_supported, /* dialing->ringing supported */ + self->priv->clcc_supported); /* ringing->active supported */ } /*****************************************************************************/ |