Use release_all_held to release a single held call

This commit is contained in:
Denis Kenzior 2009-11-12 17:54:49 -06:00
parent e9341c5203
commit 9a703cd378
1 changed files with 8 additions and 0 deletions

View File

@ -296,6 +296,14 @@ static DBusMessage *voicecall_hangup(DBusConnection *conn,
return NULL;
}
if (num_calls == 1 && vc->driver->release_all_held &&
call->status == CALL_STATUS_HELD) {
vc->pending = dbus_message_ref(msg);
vc->driver->release_all_held(vc, generic_callback, vc);
return NULL;
}
if (vc->driver->release_specific == NULL)
return __ofono_error_not_implemented(msg);