aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-04-21 16:21:28 +0000
committerDan Williams <dan@ioncontrol.co>2025-04-21 16:21:28 +0000
commit02898fed118bebbcf994c72bf0d87981e4c1bd5d (patch)
treef3c9e5519d6e41cbb953541503c4cbf749c4d8ef
parent19b798fa9943c57033f4271d6cf7cd4b4a0ca50d (diff)
parent92e666e1c92c205e896552604e717d5b39528ae3 (diff)
Merge request !1335 from 'call-polling'
iface-modem-voice: recheck call state polling when call is started https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1335
-rw-r--r--src/mm-iface-modem-voice.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c
index 63a960f1..01519bc3 100644
--- a/src/mm-iface-modem-voice.c
+++ b/src/mm-iface-modem-voice.c
@@ -32,6 +32,10 @@ static GQuark in_call_event_context_quark;
G_DEFINE_INTERFACE (MMIfaceModemVoice, mm_iface_modem_voice, MM_TYPE_IFACE_MODEM)
+static void setup_call_list_polling (MMCallList *call_list,
+ const gchar *call_path_added,
+ MMIfaceModemVoice *self);
+
/*****************************************************************************/
void
@@ -1781,6 +1785,7 @@ typedef enum {
IN_CALL_SETUP_STEP_FIRST,
IN_CALL_SETUP_STEP_UNSOLICITED_EVENTS,
IN_CALL_SETUP_STEP_AUDIO_CHANNEL,
+ IN_CALL_SETUP_STEP_CHECK_POLLING,
IN_CALL_SETUP_STEP_LAST,
} InCallSetupStep;
@@ -1908,6 +1913,10 @@ in_call_setup_context_step (GTask *task)
}
ctx->step++;
/* fall-through */
+ case IN_CALL_SETUP_STEP_CHECK_POLLING:
+ setup_call_list_polling (NULL, NULL, self);
+ ctx->step++;
+ /* fall-through */
case IN_CALL_SETUP_STEP_LAST:
g_task_return_boolean (task, TRUE);
g_object_unref (task);