• Accept a incoming call

    Parameters

    • OptionalcallId: string

      The call ID, empty to accept the first one

    Returns Promise<boolean>

    [return description]

    // Accept any incoming call
    WPP.call.accept();

    // Accept specific call id
    WPP.call.accept(callId);

    // Accept any incoming call
    WPP.on('call.incoming_call', (call) => {
    setTimeout(() => {
    WPP.call.accept(call.id);
    }, 1000);
    });