diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-13 16:04:45 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-13 16:04:45 -0600 |
commit | 6b223870bd463dd6885efc493e4a9a94637a156b (patch) | |
tree | 518fa5d14c0bf3fc7b512313811fe4696b56d82a | |
parent | 27cb260d07d20b7d1e9bd126d667fea61a38a733 (diff) | |
download | ofono-6b223870bd463dd6885efc493e4a9a94637a156b.tar.bz2 |
Fix: Make sure we don't dial with an incoming call
-rw-r--r-- | src/voicecall.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |