waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] Reject calls (all incoming)

Open devlikepro opened this issue 4 months ago • 23 comments

Discussed in https://github.com/devlikeapro/waha/discussions/1252

Originally posted by igordisco August 20, 2025 I currently have a WhatsApp number that's often used for chatbot support, and people keep adding it to groups.

Okay, the problem is that a lot of people call. It's on my cell phone, and I can't automatically reject calls via cell phone.

Other APIs have a select option called "reject call." I noticed there's no API for rejecting calls, so I don't know how it works.

But I think it would be really cool to automatically reject calls.

CleanShot 2025-08-19 at 17 18 29@2x

patron:PLUS

patron:PRO

devlikepro avatar Aug 20 '25 10:08 devlikepro

nice

patron:PLUS

igordisco avatar Aug 20 '25 18:08 igordisco

+1

patron:PLUS

dv336699 avatar Aug 30 '25 11:08 dv336699

+1

patron:PLUS

paulobautz avatar Sep 01 '25 10:09 paulobautz

+1

trojantm avatar Sep 11 '25 02:09 trojantm

+1

pagugo01 avatar Sep 11 '25 05:09 pagugo01

Just to add, other implementations allow you to set an optional message when the call is rejected.

I’ll send a code snippet soon.

patron:PLUS

dv336699 avatar Sep 11 '25 06:09 dv336699

+1

patron:PRO

mxyzt avatar Sep 11 '25 10:09 mxyzt

+1

patron:PLUS

elvisfalmeida avatar Sep 11 '25 10:09 elvisfalmeida

+1

Midasstart avatar Sep 11 '25 12:09 Midasstart

https://github.com/WhiskeySockets/Baileys/issues/890

This is how they do in Baileys. I hope that helps.

patron:PLUS

dv336699 avatar Sep 11 '25 16:09 dv336699

+1

patron:PLUS

vhiperdev avatar Sep 15 '25 15:09 vhiperdev

+1

snot1988 avatar Sep 29 '25 22:09 snot1988

+1

patron:PLUS

johnhenderson avatar Sep 29 '25 22:09 johnhenderson

HASHTAG-COM avatar Sep 29 '25 22:09 HASHTAG-COM

+1

pagugo01 avatar Sep 29 '25 22:09 pagugo01

+1

patron:PLUS

jayveloper avatar Oct 01 '25 23:10 jayveloper

+1

Midasstart avatar Oct 02 '25 00:10 Midasstart

Image

oasilap avatar Oct 10 '25 14:10 oasilap

+1

trojantm avatar Oct 10 '25 14:10 trojantm

+1

patron:PLUS

ecocentauro-git avatar Oct 10 '25 15:10 ecocentauro-git

+1

patron:PLUS

vhiperdev avatar Oct 10 '25 15:10 vhiperdev

@devlikepro Hi! First of all, thank you for your great work on this project. I’d like to ask if there’s any plan or estimated timeframe to implement a call rejection feature, since many users have been requesting it lately.

patron:PLUS

vhiperdev avatar Oct 31 '25 00:10 vhiperdev

+1 Is this implementation included in the plans?

patron:PRO

bergpinheiro avatar Nov 04 '25 21:11 bergpinheiro

Ready and available in dev images:

  • devlikeapro/waha-plus:dev — make sure to select the engine via the environment variable
  • devlikeapro/waha-plus:dev-arm

🚀 Will be included in the next release!


API

Reject Call

Decline an incoming call using its call id and chat id from the call.received event.

POST /api/{session}/calls/reject
{
  "from": "[email protected]",
  "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}

👉 Available on WEBJS, GOWS, NOWEB

WAHA emits call.rejected event after the call is declined.


To reject any calls

  1. Listen call.received - get from and id field
  2. Call POST /api/{session}/calls/reject
  3. Send a message or ban the contact, idk.

ℹ️ If anyone needs to "automatically reject calls" with "auto-reply messages" - we'll add it as a calls app, comment +1 the issue https://github.com/devlikeapro/waha/issues/1694

patron:PRO

devlikepro avatar Dec 03 '25 06:12 devlikepro

+1

patron:PLUS

ecocentauro-git avatar Dec 03 '25 21:12 ecocentauro-git

2025.12.1 - API - 📞 Reject Call API - #608 #1258

  • WEBJS, GOWS, NOWEB

patron:PRO

devlikepro avatar Dec 05 '25 08:12 devlikepro