feat: expose call outcome on call_log messages - #201888
Open
alpersamur3 wants to merge 1 commit into
Open
alpersamur3 wants to merge 1 commit into
alpersamur3 wants to merge 1 commit into
Conversation
This was referenced Aug 6, 2026
Author
|
Re-checked against the current WA Web (2.3000.1048354754): @BenyFilho @tuyuribr @aliyss this one is small and independent of the other call PRs, if you have a moment to review it. |
alpersamur3
force-pushed
the
feat/call-log-outcome
branch
from
September 26, 2026 23:19
d7c59cf to
d279b33
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Exposes the outcome of
call_logmessages on theMessagestructure:message.callOutcome,message.callDurationandmessage.isVideoCall.Why
There was no way to tell how a call ended. In particular, when an incoming call is answered on one of the account's other linked devices,
callOutcomeis'AcceptedElsewhere', which lets a bot know it should not auto-answer. Other common values include'Completed','Missed','Rejected','Cancelled'and'Failed'.Requested in the call PR discussion (#201825).
How
call_logmessages already carry the outcome in their serialized model; this just surfaces it (along with the duration and the video flag) on theMessagestructure.call_logmessages are delivered through the existingmessage/message_createevents, so no new event is needed.Usage
Tested
call_logmessage withcallOutcome: 'AcceptedElsewhere'; a normal completed call read'Completed'.tests/callLog.js.