Hello, I am facing an issue with the call event in the latest version of the library.
When I receive an incoming call, the JID provided in the call payload does not contain the real phone number.
Instead of receiving something like:
2010XXXXXXXX@s.whatsapp.net
I always receive a value in this format:
169969455263976@lid
This value is not a phone number, and therefore I am unable to detect the caller’s real WhatsApp number.
Here is a real log from the call event:
===== WA RAW CALL EVENT =====
[
{
chatId: '169969455263976@lid',
from: '169969455263976@lid',
id: 'CB615F3BCC17E4A8E2682B5818A8A4A8',
date: 2025-12-03T04:58:42.000Z,
offline: false,
status: 'terminate',
isVideo: false,
isGroup: false
}
]
Problem Summary
Both chatId and from use a non-standard JID ending with @lid instead of @s.whatsapp.net.
The numeric value before @lid is not the real phone number of the caller.
This prevents my application from identifying who is calling and sending an auto-reply message.
Expected behavior
The call event should provide the caller's correct JID, for example:
@s.whatsapp.net
Questions
Is this a known issue in the current version of the library?
Is there a way to resolve or decode the @lid JID to retrieve the actual WhatsApp phone number?
Is this behavior caused by recent WhatsApp protocol changes related to call privacy?
Please let me know how I can correctly obtain the real caller number from the call event.
Thank you!
Hello, I am facing an issue with the call event in the latest version of the library.
When I receive an incoming call, the JID provided in the call payload does not contain the real phone number.
Instead of receiving something like:
2010XXXXXXXX@s.whatsapp.net
I always receive a value in this format:
169969455263976@lid
This value is not a phone number, and therefore I am unable to detect the caller’s real WhatsApp number.
Here is a real log from the call event:
===== WA RAW CALL EVENT =====
[
{
chatId: '169969455263976@lid',
from: '169969455263976@lid',
id: 'CB615F3BCC17E4A8E2682B5818A8A4A8',
date: 2025-12-03T04:58:42.000Z,
offline: false,
status: 'terminate',
isVideo: false,
isGroup: false
}
]
Problem Summary
Both chatId and from use a non-standard JID ending with @lid instead of @s.whatsapp.net.
The numeric value before @lid is not the real phone number of the caller.
This prevents my application from identifying who is calling and sending an auto-reply message.
Expected behavior
The call event should provide the caller's correct JID, for example:
@s.whatsapp.net
Questions
Is this a known issue in the current version of the library?
Is there a way to resolve or decode the @lid JID to retrieve the actual WhatsApp phone number?
Is this behavior caused by recent WhatsApp protocol changes related to call privacy?
Please let me know how I can correctly obtain the real caller number from the call event.
Thank you!