mirror of git://git.sysmocom.de/ofono
Fix: Make sure we don't dial with an incoming call
This commit is contained in:
parent
27cb260d07
commit
6b223870bd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue