summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Ham <bob.ham@puri.sm>2018-12-12 11:13:02 +0000
committerBob Ham <bob.ham@puri.sm>2018-12-12 11:13:02 +0000
commit318d45353231c778d157ea3a4693eab0dcb51756 (patch)
treeb2103713883d0c9a2bc012cbe582e525f9c69b6b /src
parent6d273839e961734fd8e9b042205c68c738fd89f8 (diff)
downloadModemManager-318d45353231c778d157ea3a4693eab0dcb51756.tar.gz
base-call: Fix in-call URC regex to match handler logic
The handler assumes the regex sub-expressions each have the same index so they need to be within the same set of parentheses rather than each individually parenthesised. Without this fix, call state changes are missed.
Diffstat (limited to 'src')
-rw-r--r--src/mm-base-call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-base-call.c b/src/mm-base-call.c
index 79d296d9f..98d572de6 100644
--- a/src/mm-base-call.c
+++ b/src/mm-base-call.c
@@ -99,7 +99,7 @@ common_setup_cleanup_unsolicited_events (MMBaseCall *self,
gint i;
if (G_UNLIKELY (!self->priv->in_call_events))
- self->priv->in_call_events = g_regex_new ("\\r\\n(NO CARRIER)|(BUSY)|(NO ANSWER)|(NO DIALTONE)\\r\\n$",
+ self->priv->in_call_events = g_regex_new ("\\r\\n(NO CARRIER|BUSY|NO ANSWER|NO DIALTONE)\\r\\n$",
G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
g_object_get (self,