Comment 2 for bug 416418

Revision history for this message
Alexander Sack (asac) wrote :

please try this patch against mm:

just apply it on top of the unpacked mm package for testing and build it.

diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c
index 6dfba3a..3c9e2be 100644
--- a/plugins/mm-modem-mbm.c
+++ b/plugins/mm-modem-mbm.c
@@ -709,6 +709,10 @@ grab_port (MMModem *modem,
         regex = g_regex_new ("\\r\\n\\+CIEV: (\\d),(\\d)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
         mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, mbm_ciev_received, modem, NULL);
         g_regex_unref (regex);
+
+ regex = g_regex_new ("\\r\\n\\ *ESTKSMENU: .* \\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
+ mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, NULL, modem, NULL);
+ g_regex_unref (regex);
     }

     return TRUE;