rejectCall method

Future<bool> rejectCall()

Reject a ringing incoming call with 486 Busy Here (other devices of the same extension can still answer). Hangs up when the call is already answered.

Implementation

Future<bool> rejectCall() async {
  final action = OmiAction(actionName: OmiActionName.REJECT_CALL, data: {});
  return await _controller.action(action) == true;
}