aboutsummaryrefslogtreecommitdiff
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
parent6d273839e961734fd8e9b042205c68c738fd89f8 (diff)
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.
-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 79d296d9..98d572de 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,