Skip to content

[BUG] 'call' event is not triggered for incoming calls #201691

@less1556

Description

@less1556

Issue Description

I'm attempting to automatically reject incoming calls. However, it appears the event is never fired when a call is received, and as a result, the callback function does not execute.

Reproduction Steps

client.on('call', (call) => {
console.log('Call received, rejecting!');
call.reject();
});

Code Sample

User Setup

WhatsApp Type
Account Type Standard
Authentication Strategy LocalAuth
WhatsApp Web Version 2.3000.1036621378
whatsapp-web.js Version 1.34.6
Environment Version
Browser Type Chromium
Browser Version .
Phone OS Version .
Running OS Version .
Node.js Version .

Checklist

  • I use the latest released version of whatsapp-web.js.
  • I have searched existing issues and confirmed this is not a duplicate.
  • I have verified this is a library issue, not a problem with my code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokenissued lowLow impact issuetypingsType definitions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions