From 8e83a10c1e712030938fa226ab3f6829f2c1eb97 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 13 Mar 2012 19:42:36 +0100 Subject: hso: disable echo removal Built-in echo removal conflicts with _OWANCALL unsolicited messages, which are not coming prefixed with . Fixes LP#953294 --- plugins/mm-modem-hso.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/mm-modem-hso.c b/plugins/mm-modem-hso.c index acb9d849c..1b007fcfc 100644 --- a/plugins/mm-modem-hso.c +++ b/plugins/mm-modem-hso.c @@ -733,7 +733,12 @@ port_grabbed (MMGenericGsm *gsm, GRegex *regex; if (MM_IS_AT_SERIAL_PORT (port)) { - g_object_set (G_OBJECT (port), MM_SERIAL_PORT_SEND_DELAY, (guint64) 0, NULL); + g_object_set (G_OBJECT (port), + MM_SERIAL_PORT_SEND_DELAY, (guint64) 0, + /* built-in echo removal conflicts with unsolicited _OWANCALL + * messages, which are not prefixed. */ + MM_AT_SERIAL_PORT_REMOVE_ECHO, FALSE, + NULL); regex = g_regex_new ("\\r\\n\\+PACSP0\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); mm_at_serial_port_add_unsolicited_msg_handler (MM_AT_SERIAL_PORT (port), regex, NULL, NULL, NULL); @@ -809,4 +814,3 @@ mm_modem_hso_class_init (MMModemHsoClass *klass) gsm_class->get_allowed_mode = get_allowed_mode; gsm_class->get_access_technology = get_access_technology; } - -- cgit v1.2.1