Skip to content

1:1 audio call drops with T103 ~10s after answer despite established SRTP media #198

Description

@botnick

Summary

A 1:1 audio call placed with PlanetTransport connects and audio reaches the callee, but LINE ends the call with error T103 roughly 10 seconds after the peer answers. Reproducible on main.

Environment

  • linejs main, Deno 2.9
  • Android primary auth token, device: "ANDROID"
  • 1:1 AUDIO call; callee answering on a mobile (iOS) LINE client

What works

  • client.call.acquireRoute({ to, callType: "AUDIO" }) returns a valid CallRoute (fakeCall: false)
  • connect()inviteDetailed() (ringing) → waitForAnswerDetailed({ autoConnRsp: true })
  • conn_req is parsed, mediaReady: true, SRTP send/recv contexts are established
  • Streaming Opus (48 kHz mono, 20 ms frames, 0x00 payload prefix, timestampStep: 960) with mediaKeyMode: "audio-reverse-stage"the callee hears the audio, and inbound peer media packets are received and decrypted (2-way at the packet level)

Problem

~10 s after answer, the callee's client shows T103 and the call ends, even though RTP keeps being sent.

Findings during investigation

  1. No RTCP is emitted on the 1:1 path. buildRtcpCompound() (rtcp.ts) has no call sites; RTCP is only sent for group calls (#sendGroupRtcpFeedback, gated on #groupJoined). Wiring in a periodic 1:1 RTCP sender report (plaintext, mirroring the group feedback send) did not prevent T103.
  2. After conn_req, the relay emits a rapid stream (~100+/s) of Cassini cc messages whose bodyTag is not present in CC_MSG; they surface as planet_msg cc:"" ccTag:0. linejs does not respond to them. The ~10 s T103 timeout is consistent with the relay waiting on a response that is never sent.
  3. Non-mobile callee: when the peer answers on a desktop (Windows) LINE client, conn_req.answer is ~248 bytes and decodeNativeSetupOffer produces no keying, so mediaReady stays false. A mobile (iOS, ~275-byte answer) yields mediaReady: true.

Question

Which mid-call Cassini cc message (the unmapped flood that follows conn_req) must be answered to keep a 1:1 call alive past ~10 s and avoid T103? Decoded captures of the unmapped messages can be provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions