From 345922caa10fc86dad181ccd83239af1f43fd30e Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 15 Oct 2019 10:40:11 +0200 Subject: simtech: handle non-standard '+CRING' URCs The SIM7600E ends up emitting these URCs with too many s, and the generic +CRING handler doesn't catch them, interfering with other actions, e.g.: $ 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 '+CRING: VOICE +CRING: VOICE'' --- plugins/simtech/mm-modem-helpers-simtech.h | 5 +++++ 1 file changed, 5 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 1a046f58..b003b029 100644 --- a/plugins/simtech/mm-modem-helpers-simtech.h +++ b/plugins/simtech/mm-modem-helpers-simtech.h @@ -45,4 +45,9 @@ gboolean mm_simtech_parse_voice_call_urc (GMatchInfo *match_info, guint *duration, GError **error); +/*****************************************************************************/ +/* Non-standard CRING URC helpers */ + +GRegex *mm_simtech_get_cring_urc_regex (void); + #endif /* MM_MODEM_HELPERS_SIMTECH_H */ -- cgit v1.2.3-70-g09d2