decline method
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:
- VICallError.ERROR_INCORRECT_OPERATION - Android only. If the call is already answered or ended.
Implementation
Future<void> decline([Map<String, String>? headers]) async {
await _reject('decline', headers);
}