Some modems don't return from ATD until connected
authorDenis Kenzior <denis.kenzior@intel.com>
Sat, 5 Sep 2009 01:16:30 +0000 (20:16 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Sat, 5 Sep 2009 01:37:50 +0000 (20:37 -0500)
Yet they send progress indications all the way up to connected, which
breaks the current logic.

src/voicecall.c

index 20b6a7f..bc6986c 100644 (file)
@@ -1459,7 +1459,8 @@ static void dial_callback(const struct ofono_error *error, void *data)
                struct voicecall *v = l->data;
 
                if (v->call->status == CALL_STATUS_DIALING ||
-                       v->call->status == CALL_STATUS_ALERTING)
+                               v->call->status == CALL_STATUS_ALERTING ||
+                               v->call->status == CALL_STATUS_ACTIVE)
                        break;
        }