From 6b223870bd463dd6885efc493e4a9a94637a156b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 13 Nov 2009 16:04:45 -0600 Subject: Fix: Make sure we don't dial with an incoming call --- src/voicecall.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/voicecall.c b/src/voicecall.c index 5fe8a0a9..b8f4aab2 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -975,6 +975,9 @@ static DBusMessage *manager_dial(DBusConnection *conn, if (!vc->driver->dial) return __ofono_error_not_implemented(msg); + if (voicecalls_have_incoming(vc)) + return __ofono_error_failed(msg); + /* We can't have two dialing/alerting calls, reject outright */ if (voicecalls_num_connecting(vc) > 0) return __ofono_error_failed(msg); -- cgit v1.2.3