Problem. An advice seeker who must knock before joining a call (1:1 conversation opened through an audio/video direct link, see #1893) can only knock with the link token, which is kept on the device where the link was opened. If they were turned down or stopped waiting on another device, they cannot knock again from the device they are on now: there is no "knock by conversation" endpoint. Since ORISO-Frontend PR #2015 the frontend refuses honestly instead of opening a call that cannot connect, but the person is stuck.
Example.
- Today: the advice seeker waited on the phone, gave up, later opens the chat on the laptop and clicks "Beitreten". They only get "Der Beitritt ist gerade nicht möglich…" and cannot knock again.
- With the endpoint: "Beitreten" on any of their devices starts a new knock for that conversation; the counsellor sees the knock notice as usual.
- Without it: the counsellor has to send a new direct link, or the advice seeker must go back to the first device.
Proposal. A user-scoped endpoint, e.g. POST /users/call-knocks/mine with the session/conversation id, that creates a knock for the authenticated advice seeker if and only if MatrixRtcCallPolicyService would answer KNOCK_NOT_ADMITTED for them in that conversation. Same authorisation and rate limits as the token knock; no knock for conversations the caller is not a member of. Poll/status like the token flow.
Frontend part (ORISO-Frontend). Use the endpoint when no link token is on the device; show "Erneut anklopfen" again in that case. Replace the misleading text after "stopped waiting" (today it reuses "Beenden Sie gegebenenfalls Ihren anderen Anruf…") with copy confirmed by the product owner.
Collected in OpenResilienceInitiative/ORISO-Admin#1269 (Wave 11). Related: ORISO-Frontend#1893, ORISO-Frontend#2015, ORISO-Frontend#1912 (open question 4).
Generated by Claude Code
Status 2026-11-10: not started, planned for v2.0.17
Nobody has started this. It is not part of the "direct links and call sharing" epic (ORISO-Frontend#2184, delivered work only); it is linked as related. Platform release: v2.0.17. Estimated size: small to medium (about 1 to 1.5 person-days backend, about 1 day frontend).
For the developer who builds it (skip if you only need the status):
Already on dev (checked 2026-11-10, do not rebuild):
- GET /users/call-knocks/mine?sessionId= -> the caller's admission or latest knock in a conversation, any device
(DirectLinkControllerDelegate.getOwnCallKnockForSession, DirectCallKnockService.ownFor).
- DirectCallKnockService.knock(sessionId, user, inviteLinkId, medium): let in once, one open knock per person and
conversation, a new knock after a decline, counsellor notification after commit. Today its only caller is
POST /users/invitelinks/{token}/conversations.
- MatrixRtcCallPolicyService denies the call (KNOCK_NOT_ADMITTED) while the latest DIRECT_LINK knock is not ADMITTED.
- ORISO-Frontend#2015: the lobby refuses honestly when the link token is not on the device (no "Erneut anklopfen").
Build, in this order:
1. api/userservice.yaml first: add POST /users/call-knocks/mine with body {sessionId}, tag direct-link-controller,
responses 200 (CallKnockDTO), 401, 403, 404, 410.
2. UserController + DirectLinkControllerDelegate: new method, caller must be the user of that conversation
(userAccountService.retrieveValidatedUser(), session.user == caller, else 404 so ids cannot be probed).
3. DirectCallKnockService: new method that
- returns the ADMITTED knock if there is one (callAdmitted true, no new knock),
- returns the open PENDING knock if one is waiting,
- otherwise takes inviteLinkId and medium from the conversation's earlier knock and calls knock(...);
- refuses with the same 410 DIRECT_LINK_INACTIVE as the token flow when the link is switched off, and when the
permission "Direkteinladung erlauben" no longer allows the medium.
Audio and video only. There is no rate limit today besides "one open knock"; do not promise one.
4. Tests: admitted -> no new knock; declined or cancelled -> new knock and one counsellor notification;
foreign session id -> 404, no knock row; counsellor token -> 403; link off -> 410.
5. ORISO-Frontend (separate PR, Refs this issue): when no link token is on the device, "Beitreten" and
"Erneut anklopfen" call the new endpoint (apiDirectLinks.ts next to apiGetOwnCallKnockForSession); keep the
refusal only for cases the server refuses; Storybook stories "TurnedDownBeforeOnAnotherDevice" and
"WithdrewBeforeOnAnotherDevice" change accordingly.
6. Copy: replace the text after "stopped waiting" (de/common.json "joinFailed" reuses "Beenden Sie gegebenenfalls Ihren
anderen Anruf ...") with wording confirmed by the product owner. Ask before merging the frontend PR.
ADR: ADR-029 amendment 2026-10-28 §2 already covers it ("after a decline the next visit knocks again"). Optional one sentence.
Acceptance
- Knock on the phone, give up, open the chat on the laptop, press "Beitreten": the counsellor sees a new knock notice; after "admit" the call opens.
- Already admitted: no second knock, the person joins directly.
- Someone else's conversation id: refused, no knock created.
- Counsellor declines: the advice seeker sees the refusal and can knock again.