mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5537] [Question]: How to set up Telegram voice calls via a cascading proxy? #3864
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3864
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JohniGo76 on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5537
What are you trying to do?
How to set up a cascading proxy for voice calls in Telegram?
What have you already tried?
I've set up MTProxy inbound and traffic forwarding to an upstream proxy. Text messages get through, but voice calls only get as far as the key exchange.
3x-ui version
3.4.0
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Screenshots or config snippets
Before submitting
@github-actions[bot] commented on GitHub (Jun 24, 2026):
The behavior you describe is a fundamental transport limitation of MTProxy (the
mtgbinary used by this panel), not a configuration problem.Why text works but voice calls do not
mtgproxies Telegram's MTProto protocol over TCP only. The loopback SOCKS bridge that the "Route through Xray" option injects into the Xray config is also configured with UDP disabled — this is hardcoded ininternal/web/service/xray.go:The comment in that file is explicit: "mtg makes plain TCP connections, so UDP is left off."
Telegram voice (and video) calls use a two-phase flow:
Cascading a second upstream MTProxy does not change this: both hops still only carry TCP, so the UDP media stream remains unrouted regardless of the number of hops.
What will actually work for voice calls
You need a tunnel that carries arbitrary UDP traffic, not an MTProxy chain. The panel already supports protocols suited to this:
The MTProxy inbound is appropriate for censorship circumvention of Telegram's text and file traffic only. It cannot be extended to cover voice calls through any cascade or routing configuration currently exposed by this panel, including the "Route through Xray" option.
This reply was generated automatically; a maintainer may follow up.
@JohniGo76 commented on GitHub (Jun 24, 2026):
I previously tried Mixed Inbound with UDP support. Telegram behaves similarly.