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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
@@ -105,7 +105,8 @@ gboolean mm_shared_cinterion_disable_location_gathering_finish (MMI
|
||||
|
||||
MMBaseCall *mm_shared_cinterion_create_call (MMIfaceModemVoice *self,
|
||||
MMCallDirection direction,
|
||||
const gchar *number);
|
||||
const gchar *number,
|
||||
const guint dtmf_tone_duration);
|
||||
|
||||
void mm_shared_cinterion_voice_check_support (MMIfaceModemVoice *self,
|
||||
GAsyncReadyCallback callback,
|
||||
|
||||
@@ -3879,12 +3879,14 @@ modem_voice_disable_unsolicited_events (MMIfaceModemVoice *self,
|
||||
static MMBaseCall *
|
||||
create_call (MMIfaceModemVoice *self,
|
||||
MMCallDirection direction,
|
||||
const gchar *number)
|
||||
const gchar *number,
|
||||
const guint dtmf_tone_duration)
|
||||
{
|
||||
return mm_call_at_new (MM_BASE_MODEM (self),
|
||||
G_OBJECT (self),
|
||||
direction,
|
||||
number,
|
||||
dtmf_tone_duration,
|
||||
TRUE, /* skip_incoming_timeout */
|
||||
TRUE, /* supports_dialing_to_ringing */
|
||||
TRUE); /* supports_ringing_to_active) */
|
||||
|
||||
@@ -1504,12 +1504,14 @@ modem_voice_setup_unsolicited_events (MMIfaceModemVoice *self,
|
||||
static MMBaseCall *
|
||||
create_call (MMIfaceModemVoice *self,
|
||||
MMCallDirection direction,
|
||||
const gchar *number)
|
||||
const gchar *number,
|
||||
const guint dtmf_tone_duration)
|
||||
{
|
||||
return mm_call_at_new (MM_BASE_MODEM (self),
|
||||
G_OBJECT (self),
|
||||
direction,
|
||||
number,
|
||||
dtmf_tone_duration,
|
||||
TRUE, /* skip_incoming_timeout */
|
||||
TRUE, /* supports_dialing_to_ringing */
|
||||
TRUE); /* supports_ringing_to_active */
|
||||
|
||||
Reference in New Issue
Block a user