From 4628056a3e9ab908463ef826a8fe18366265c7f2 Mon Sep 17 00:00:00 2001 From: Angus Ainslie Date: Fri, 30 Sep 2022 14:16:42 -0600 Subject: mm-modem-helpers.c: adjust the RING regex The Broadmobi BM818 has some additional carriage returns in the RING message Fixes: #626 Signed-off-by: Angus Ainslie --- src/mm-modem-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index b339812c..93d9fda0 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -460,7 +460,7 @@ mm_voice_ring_regex_get (void) /* Example: * RING */ - return g_regex_new ("\\r\\nRING\\r\\n", + return g_regex_new ("\\r\\nRING(?:\\r)?\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); -- cgit v1.2.3-70-g09d2