• End a call

    Parameters

    • OptionalcallId: string

      The call ID, empty to end the first one

    Returns Promise<boolean>

    [return description]

    // End any call
    WPP.call.end();

    // End specific call id
    WPP.call.end(callId);

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