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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user