debug(voice): add temporary console logs around accept-call path

Trace every checkpoint between the green Accept button click and the
backend POST so we can see exactly where the silent failure happens
(0 /accept requests landing on backend, no console errors, no network
requests reported by the user). Logs prefixed [CW Voice] for grep.
Will revert once the root cause is identified.
This commit is contained in:
Tanmay Deep Sharma
2026-05-03 13:49:33 +07:00
parent 6ed9500792
commit 81464a9087
2 changed files with 40 additions and 2 deletions
@@ -74,7 +74,22 @@ const handleEndCall = async () => {
};
const handleJoinCall = async call => {
if (!call || isJoining.value) return;
// eslint-disable-next-line no-console
console.log('[CW Voice] handleJoinCall', {
call,
isJoining: isJoining.value,
hasActiveCall: hasActiveCall.value,
});
if (!call) {
// eslint-disable-next-line no-console
console.warn('[CW Voice] handleJoinCall: no call object');
return;
}
if (isJoining.value) {
// eslint-disable-next-line no-console
console.warn('[CW Voice] handleJoinCall: already joining (stuck flag?)');
return;
}
const { conversation } = getCallInfo(call);
// End current active call before joining new one