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''
This commit is contained in:
Aleksander Morgado
2019-10-15 10:30:00 +02:00
parent 1a17996ccb
commit 395b22178c
4 changed files with 158 additions and 6 deletions

View File

@@ -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 */