From 6bc4f0ae8cad621e11d882d2b3813765c86156c2 Mon Sep 17 00:00:00 2001 From: Jeroen Elebaut Date: Fri, 16 Oct 2009 14:41:12 -0700 Subject: [PATCH] hso: handle OWANCALL response better --- plugins/mm-modem-hso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mm-modem-hso.c b/plugins/mm-modem-hso.c index 7f7703a4..6e1f768a 100644 --- a/plugins/mm-modem-hso.c +++ b/plugins/mm-modem-hso.c @@ -627,7 +627,7 @@ grab_port (MMModem *modem, mm_generic_gsm_set_unsolicited_registration (gsm, TRUE); - regex = g_regex_new ("_OWANCALL: (\\d), (\\d)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); + regex = g_regex_new ("_OWANCALL: (\\d),\\s*(\\d)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, connection_enabled, modem, NULL); g_regex_unref (regex); }