mirror of
https://github.com/TelegramMessenger/tgcalls.git
synced 2026-11-18 21:35:28 +00:00
dev/android
Every engine that reads the flag (NativeNetworkingImpl for 7-9/12/13,
InstanceV2ReferenceImpl for 11, InstanceV2CompatImpl for 14, CallCoreHost for
18/19) now reads it with getCustomParameterBoolDefaultTrue: an absent key means
on, and only the server's explicit `false` turns it off, the same rollback
switch network_reference_use_addtrack has. Builds before this one keep reading
it as default-off, so the switch reaches only this build and later. The
legacy InstanceImpl (2.7.7, 5.0.0) still hardcodes it off.
Without it, signalled reflector connections are keyed by hostname while every
inbound reflector packet carries the server IP, so no binding response ever
reaches the connection that sent the ping: production logs show 3,469 such
pings with 0 responses on Android 11.0.0 and 8,120 with 0 on iOS 11.0.0, and
a reflector path can only start on a peer-reflexive twin once the peer pings
first.
Checked with the CLI in reflector mode against a local stand-in reflector
(the dev network blocks UDP to Telegram's reflectors; the stand-in routes by
tag and rewrites the tag to the receiver's, never touching the payload), 4-8
calls per arm on 11, 13, 14, 18 and 19, all established: with no key every
signalled reflector connection got its response and was selected first; with
`false` they got none and every call came up on a prflx twin, as before; a
mixed call with the flag on one side connects as before. Not exercised: the
documented key collapse for a peer with several reflector tags on one server
and port (one port per side here). CLAUDE.md records the default, the check
and that open item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit c1de0882de)
Telegram Calls Library
Copyright (c) 2020 The Telegram Calls Library Authors.
This code is published under the terms of the GNU Lesser General Public License version 3. Full license text can be found here: https://github.com/TelegramMessenger/tgcalls/blob/master/LICENSE
Languages
C++
70.2%
Objective-C++
17.7%
Go
5.4%
Objective-C
2.7%
Shell
1.2%
Other
2.7%