aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/cinterion/mm-shared-cinterion.c
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-04-11 20:43:17 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-30 07:59:58 -0500
commit5448a85a2bae32b6c9dfb82ac148904bf20fc209 (patch)
treed3dc01eb24ab04b592195ef335d43ca8ef4c08d0 /src/plugins/cinterion/mm-shared-cinterion.c
parent28b195465422b63ccc77e1a8d9d21e8bb6f217e9 (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/plugins/cinterion/mm-shared-cinterion.c')
-rw-r--r--src/plugins/cinterion/mm-shared-cinterion.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/cinterion/mm-shared-cinterion.c b/src/plugins/cinterion/mm-shared-cinterion.c
index 60bbe6db..aa9b6208 100644
--- a/src/plugins/cinterion/mm-shared-cinterion.c
+++ b/src/plugins/cinterion/mm-shared-cinterion.c
@@ -998,7 +998,8 @@ mm_shared_cinterion_enable_location_gathering (MMIfaceModemLocation *self,
MMBaseCall *
mm_shared_cinterion_create_call (MMIfaceModemVoice *self,
MMCallDirection direction,
- const gchar *number)
+ const gchar *number,
+ const guint dtmf_tone_duration)
{
Private *priv;
@@ -1010,6 +1011,7 @@ mm_shared_cinterion_create_call (MMIfaceModemVoice *self,
G_OBJECT (self),
direction,
number,
+ dtmf_tone_duration,
/* When SLCC is supported we have support for detailed
* call list events via call list report URCs */
TRUE, /* incoming timeout not required */
@@ -1020,7 +1022,7 @@ mm_shared_cinterion_create_call (MMIfaceModemVoice *self,
/* otherwise, run parent's generic base call logic */
g_assert (priv->iface_modem_voice_parent);
g_assert (priv->iface_modem_voice_parent->create_call);
- return priv->iface_modem_voice_parent->create_call (self, direction, number);
+ return priv->iface_modem_voice_parent->create_call (self, direction, number, dtmf_tone_duration);
}
/*****************************************************************************/