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 <angus@akkea.ca>
This commit is contained in:
Angus Ainslie
2022-09-30 14:16:42 -06:00
parent a74f11ae43
commit 4628056a3e

View File

@@ -460,7 +460,7 @@ mm_voice_ring_regex_get (void)
/* Example:
* <CR><LF>RING<CR><LF>
*/
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);