aboutsummaryrefslogtreecommitdiff
path: root/plugins/mm-modem-hso.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mm-modem-hso.c')
-rw-r--r--plugins/mm-modem-hso.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/mm-modem-hso.c b/plugins/mm-modem-hso.c
index 26b986cd..de960411 100644
--- a/plugins/mm-modem-hso.c
+++ b/plugins/mm-modem-hso.c
@@ -417,7 +417,15 @@ connection_enabled (MMSerial *serial,
str = g_match_info_fetch (info, 2);
if (str[0] == '1')
connect_pending_done (MM_MODEM_HSO (serial));
- else if (str[0] == '0')
+ else if (str[0] == '3') {
+ MMCallbackInfo *cb_info = MM_MODEM_HSO_GET_PRIVATE (serial)->connect_pending_data;
+
+ if (cb_info)
+ cb_info->error = g_error_new_literal (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
+ "Call setup failed");
+
+ connect_pending_done (MM_MODEM_HSO (serial));
+ } else if (str[0] == '0')
/* FIXME: disconnected. do something when we have modem status signals */
;