NotifyAction - addReject()

Rejects an incoming call.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
RejectAction The action added to the NotifyAction object. Use the RejectAction object to define the reason for rejecting the call.

// instantiate NotifyAction
var notifyAction = new SNC.NotifyAction();

// reject the call
var rejectAction = notifyAction.addReject();
rejectAction.setReason('busy'); // 'busy' or 'rejected'