From 395b22178c4f6dd24d552e82d2d46dfb24c65297 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 15 Oct 2019 10:30:00 +0200 Subject: simtech: handle 'VOICE CALL' URCs Just processing and parsing them for now, so that they don't interfere with other commands: $ sudo mmcli --call 1 --accept error: couldn't accept the call: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Failed: Couldn't accept the call: Unhandled response ' VOICE CALL: BEGIN'' --- plugins/simtech/mm-modem-helpers-simtech.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/simtech/mm-modem-helpers-simtech.h') diff --git a/plugins/simtech/mm-modem-helpers-simtech.h b/plugins/simtech/mm-modem-helpers-simtech.h index 66e5c467..1a046f58 100644 --- a/plugins/simtech/mm-modem-helpers-simtech.h +++ b/plugins/simtech/mm-modem-helpers-simtech.h @@ -36,4 +36,13 @@ gboolean mm_simtech_parse_clcc_list (const gchar *str, GError **error); void mm_simtech_call_info_list_free (GList *call_info_list); +/*****************************************************************************/ +/* VOICE CALL URC helpers */ + +GRegex *mm_simtech_get_voice_call_urc_regex (void); +gboolean mm_simtech_parse_voice_call_urc (GMatchInfo *match_info, + gboolean *start_or_stop, + guint *duration, + GError **error); + #endif /* MM_MODEM_HELPERS_SIMTECH_H */ -- cgit v1.2.3-70-g09d2