• Reject a incoming call

    Parameters

    • OptionalcallId: string

      The call ID, empty to reject the first one

    Returns Promise<boolean>

    [return description]

    // Reject any incoming call
    WPP.call.reject();

    // Reject specific call id
    WPP.call.reject(callId);

    // Reject any incoming call
    WPP.on('call.incoming_call', (call) => {
    WPP.call.reject(call.id);
    });