mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6406] [Bug]: WhatsApp voice and video calls fail over VLESS while browsing and messaging work #4338
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#4338
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 @BOyrain93 on GitHub (Sep 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6406
Describe the bug
Hi,
I’m having an issue with WhatsApp voice and video calls when using your X-UI panel.
My VLESS connection works normally for internet browsing and WhatsApp messaging, but WhatsApp voice and video calls do not work at all.
I tested multiple configurations, including:
VLESS + TCP + TLS
VLESS + HTTPUpgrade
Different ports
The server is reachable and the VPN connection works normally, but calls still fail.
I also checked the server:
UFW is inactive.
iptables INPUT/OUTPUT/FORWARD policies are all ACCEPT.
Xray is running normally.
UDP sockets are present on the server.
How to reproduce the problem
The issue appears to be related to UDP traffic handling through the Xray/X-UI configuration.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.7.0
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Sep 4, 2026):
Nothing in the Xray configuration 3x-ui generates blocks UDP, so "UDP traffic handling through the Xray/X-UI configuration" is not the cause on a stock install — the default template contains exactly two
blockrules, and neither touches UDP. I could not pin down what is failing on your server, because the report carries no logs and no Xray version, so there are three things I need at the bottom.What the panel actually generates
The default Xray config is
internal/web/service/config.json. That is its entire routing section (internal/web/service/config.json:62-86):and that is the egress outbound (
internal/web/service/config.json:31-41):There is no port filter, no
networkmatcher and no UDP restriction. The two other panel-side settings that can disturb UDP are both inert by default:sniffing: SniffingSchema.default({ enabled: false, ... })(frontend/src/schemas/forms/inbound-form.ts:42-49).flow: ''(frontend/src/pages/clients/ClientFormModal.tsx:146).I also grepped the Go side: the only
udpswitches in the generated config are the panel's own internal loopback SOCKS bridges (internal/web/service/xray.go:500,:593,:636), which never carry client traffic. Nothing in the panel narrows a VLESS inbound to TCP.One panel-side thing worth ruling out
If you set a flow on the client, check which one. The panel offers two (
frontend/src/schemas/primitives/flow.ts:3):The
-udp443variant exists in Xray-core specifically because plainxtls-rprx-visiontreats UDP to port 443 differently. I could not read the xray-core source from this checkout to quote the deciding line, so treat that as an inference rather than a confirmed fact — but it is a one-click test: set the client's Flow toxtls-rprx-vision-udp443, or clear it, and retry the call. It is irrelevant if your clients already have flow empty (the default).What would settle this
./access.log(the only two values arenoneand./access.log,frontend/src/pages/xray/basics/constants.ts:3), restart Xray, place one WhatsApp call, then paste the lines. On aninstall.shUbuntu install that file is/usr/local/x-ui/access.log, because the unit setsWorkingDirectory=/usr/local/x-ui/(x-ui.service.debian:12). This is the single check that decides the whole question: ifudp:entries for the call appear, your client is tunnelling UDP and the packets die on egress; if none appear, the client never sent them and the panel is not involved at all.DockerInit.sh:35).A useful extra data point while you are on the VPS:
dig +notcp @1.1.1.1 example.comproves generic UDP egress works. That is not the same as WhatsApp working — calls use UDP 3478 and a high port range, and hosting providers filter those far more often than UDP/53. Youriptablescheck covers the local firewall only, not upstream filtering by the provider.Note that
3x-uiv3.7.0 is the current release (gh release list), so you are on the tip — there is no newer version to try.Verdict: Insufficient information
Severity: N/A
Confidence: Medium
Root cause: None found on the panel side. The generated Xray config carries no UDP, port or network restriction: routing has only
geoip:private→blockedandprotocol: ["bittorrent"]→blocked(internal/web/service/config.json:62-86), and the freedom outbound'sfinalRulesblock onlygeoip:private(internal/web/service/config.json:31-41). What breaks the reporter's calls cannot be located without their access log or routing config.Already fixed: Not applicable — no defect identified.
Duplicate of: Related: #1092 and #1373 (same symptom, both closed, neither with a root cause confirmed in the source). Not duplicates.
Evidence:
internal/web/service/config.json:62-86(the three routing rules, quoted above);internal/web/service/config.json:31-41(freedomfinalRules);frontend/src/schemas/forms/inbound-form.ts:42-49—sniffing: SniffingSchema.default({ enabled: false, ... });frontend/src/pages/clients/ClientFormModal.tsx:146—flow: '';frontend/src/schemas/primitives/flow.ts:3—z.enum(['', 'xtls-rprx-vision', 'xtls-rprx-vision-udp443']);frontend/src/pages/xray/basics/constants.ts:3—export const ACCESS_LOG = ['none', './access.log'];;x-ui.service.debian:12—WorkingDirectory=/usr/local/x-ui/;DockerInit.sh:35(bundled Xray v26.7.28).Not determined: Whether the reporter's client emits UDP through the tunnel at all, and whether their routing config is stock. Item 1 above — the Xray access log during one failed call — settles both. I could not read the xray-core source from this checkout, so the
xtls-rprx-visionUDP/443 note is an inference, not a quoted line.I have added the clarification needed label and left the issue open; post the access log and it will be picked up from there. I also retitled it from "[Bug]: WhatsApp voice and video calls" so the symptom is visible in the issue list — your problem statement is unchanged.
This reply was generated automatically; a maintainer may follow up.
@BOyrain93 commented on GitHub (Sep 4, 2026):
I did some additional troubleshooting and would like to provide the results.
Environment / client:
Server: VPS
Panel: 3x-ui
Client: v2rayNG on Android
Protocol tested: VLESS
Problem:
Normal internet traffic and WhatsApp messaging work correctly through the VPN, but WhatsApp voice and video calls do not work.
Configurations tested:
VLESS + TCP + TLS
Port: 2063
ALPN: http/1.1
SNI: *****
Fingerprint: Chrome
VLESS + HTTPUpgrade
Port: 80 /443/8080/2063
Security: none
Both configurations establish a working VPN connection, and normal internet traffic/WhatsApp messaging work, but WhatsApp voice and video calls fail.
Server-side tests:
UFW is inactive.
iptables is not blocking traffic:
INPUT: ACCEPT
OUTPUT: ACCEPT
FORWARD: ACCEPT
ss -lunp shows multiple UDP sockets opened by Xray.
The Xray outbound uses freedom.
No routing rule was found that specifically blocks WhatsApp or UDP traffic.
DNS is configured with Google DNS servers (8.8.8.8 / 8.8.4.4).
The issue occurs with both VLESS TCP+TLS and VLESS HTTPUpgrade, so it does not appear to be related to the TLS certificate, SNI, or a specific TLS configuration.
At this point, the main suspicion is UDP handling/forwarding for voice and video calls, either in Xray-core, 3x-ui configuration, or the way v2rayNG sends UDP traffic through the VLESS tunnel.
Could you please advise what additional logs or tests you need, and whether there is any known issue with UDP forwarding for WhatsApp calls in the current 3x-ui/Xray version?
I can provide the full Xray configuration, Xray version, v2rayNG version, or relevant logs if needed.
@github-actions[bot] commented on GitHub (Sep 4, 2026):
Thanks — nothing in your follow-up changes the panel-side finding (the generated Xray config still imposes no UDP restriction), but the new details do narrow the search, and they rule out the panel a little further rather than pointing at it. I still cannot name a cause, so I have listed below exactly the four things you offered, in the order they decide the question.
What your new details settle
security: noneshare almost nothing except the freedom outbound and the egress path — so the transport, the certificate and the SNI are out, exactly as you concluded.internal/web/service/config.json:31-41and:62-86): the onlyblockrules aregeoip:privateandprotocol: ["bittorrent"], and the freedom outbound'sfinalRulesblock onlygeoip:private. No port filter, nonetworkmatcher.ss -lunpis the one test I would not lean on. It lists the sockets bound at the moment you ran it; it does not show whether the packets for your call actually left the box. Item 1 below replaces it.The one thing you have not reported
Your follow-up covers routing, the outbound, DNS and the transports, but not the client
Flowvalue. That is the only panel-side knob that treats UDP differently — the panel offers three values (frontend/src/schemas/primitives/flow.ts:3):A new client is created with
flow: ''(frontend/src/pages/clients/ClientFormModal.tsx:146), which is unaffected. If yours is set toxtls-rprx-vision, switching it toxtls-rprx-vision-udp443or clearing it is a one-click test. Item 3 below shows me which one you have without you having to look.What I need, in order of how much each decides
./access.log(the only two values arenoneand./access.log,frontend/src/pages/xray/basics/constants.ts:3), then restart Xray. The file lands at/usr/local/x-ui/access.log, because the unit setsWorkingDirectory=/usr/local/x-ui/(x-ui.service.debian:12) and the Xray child inherits it. Note the default template ships"maskAddress": "", so real addresses are written — redact before pasting.udp:entries here mean your client is tunnelling UDP.internal/xray/process.go:41+:608), and it is rewritten on every restart (internal/xray/process.go:603) — read it, do not edit it. Redact UUIDs, your domain and any passwords. One paste gives me the routing rules, the sniffing block and each client'sflowtogether.You are on the current release —
v3.7.0is the latest tag (gh release list) — so there is no newer version to try in the meantime.Verdict: Insufficient information
Severity: N/A
Confidence: Medium
Root cause: Still none identified on the panel side. The generated config carries no UDP, port or
networkrestriction — routing has onlygeoip:private→blockedandprotocol: ["bittorrent"]→blocked(internal/web/service/config.json:62-86), the freedom outbound'sfinalRulesblock onlygeoip:private(internal/web/service/config.json:31-41), sniffing defaults to disabled (frontend/src/schemas/forms/inbound-form.ts:42-49) and a new client toflow: ''(frontend/src/pages/clients/ClientFormModal.tsx:146). The panel also exposes no UDP session-timeout knob: the policy UI writes onlyconnIdleandbufferSize(frontend/src/pages/xray/basics/BasicsTab.tsx:361-386), neveruplinkOnly/downlinkOnly.Already fixed: Not applicable — no defect identified.
Duplicate of: Related: #3283 (same symptom for Telegram calls, closed as completed with no root cause recorded in the thread). Not a duplicate.
Evidence:
internal/web/service/config.json:62-86(three routing rules);internal/web/service/config.json:31-41(freedomfinalRules);frontend/src/schemas/forms/inbound-form.ts:42-49—sniffing: SniffingSchema.default({ enabled: false, ... });frontend/src/pages/clients/ClientFormModal.tsx:146—flow: '';frontend/src/schemas/primitives/flow.ts:3—z.enum(['', 'xtls-rprx-vision', 'xtls-rprx-vision-udp443']);frontend/src/pages/xray/basics/constants.ts:3—export const ACCESS_LOG = ['none', './access.log'];;internal/xray/process.go:41—return config.GetBinFolderPath() + "/config.json"with the default"bin"(internal/config/config.go:129-136);internal/xray/process.go:608—exec.CommandContext(..., GetBinaryPath(), "-c", configPath)with nocmd.Dir, so the child inheritsWorkingDirectory=/usr/local/x-ui/(x-ui.service.debian:12);gh release list—v3.7.0is the latest tag.Not determined: Whether UDP for the call leaves the VPS at all, and what
flowthe reporter's clients carry. Items 1 and 3 above settle both. I could not read the xray-core source from this checkout, so the note aboutxtls-rprx-visionand UDP/443 remains an inference, not a quoted line.The clarification needed label stays and the issue stays open; post items 1–3 and it will be picked up from there.
This reply was generated automatically; a maintainer may follow up.