decline method

Future<void> decline([
  1. Map<String, String>? headers
])

Declines the incoming call.

Should be used only for incoming calls.

Indicates that the user can't answer the call right now, and VoxEngine will terminate the call and any pending calls to other devices of the current user.

Optional headers - Optional SIP headers

Throws VIException, if an error occurred.

Errors:

Implementation

Future<void> decline([Map<String, String>? headers]) async {
  await _reject('decline', headers);
}