hangup_and_accept


Description:

[ Version ( since = "1.12" ) ]
public async bool hangup_and_accept (Cancellable? cancellable) throws Error

Asynchronously hangs up all active calls and accepts the next waiting or held call.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call hangup_and_accept.end to get the result of the operation.

See hangup_and_accept_sync for the synchronous, blocking version of this method.

Parameters:

this

A ModemVoice.

cancellable

A Cancellable or null.

callback

A TaskReadyCallback to call when the request is satisfied or null.

user_data

User data to pass to callback.