From f6af6bf579646995532110fb9c4c88654ca17f8a Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:32:41 +0200 Subject: [PATCH] debug: more diagnostic logging in processDmCallAcceptEvent --- packages/server/src/routes/federation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/server/src/routes/federation.ts b/packages/server/src/routes/federation.ts index 37afc806..7eebfcdb 100644 --- a/packages/server/src/routes/federation.ts +++ b/packages/server/src/routes/federation.ts @@ -3577,9 +3577,11 @@ function processDmCallAcceptEvent( .where(eq(schema.dmChannels.federatedId, event.federatedId)) .get(); const dmChannelId = channel?.id; + console.log(`[S2S_CALL_ACCEPT] channel lookup: federatedId=${event.federatedId} → dmChannelId=${dmChannelId ?? 'NOT FOUND'}`); // Check if we're the HOST (have a VoiceRoom) const room = dmChannelId ? connectionManager.getRoom(dmChannelId) : undefined; + console.log(`[S2S_CALL_ACCEPT] room lookup: ${room ? `found (type=${room.roomType}, state=${(room.metadata as any).state})` : 'NOT FOUND'}`); if (room && room.roomType === 'dm') { const meta = room.metadata as DmRoomMeta; @@ -3599,6 +3601,7 @@ function processDmCallAcceptEvent( } // Broadcast accepted locally + console.log(`[S2S_CALL_ACCEPT] HOST path: broadcasting dm_call_accepted to dmChannelId=${dmChannelId}`); connectionManager.sendToDmMembers(dmChannelId!, { type: 'dm_call_accepted', dmChannelId: dmChannelId!,