iOS and Android apps on cellular: tunnel rebuilds every ~8.5s

MCJ

Premier Customer
Joined
Jul 6, 2022
Messages
3
Reaction score
1
Self hosted v20 U9 (build 995), no SBC. Every mobile app user on cellular gets audio in 1 to 6 second bursts, a beep, "Recovering", then they hang up. T-Mobile and AT&T, iOS and Android, current builds. Same app and phone on district Wi-Fi is flawless.

WAN edge packet capture of the failing calls (port 5090, TCP control plus UDP media) shows a repeating 8.5 second cycle: the app opens a UDP flow, sends about 3.3 seconds of audio, then abandons that port completely while the PBX keeps streaming at 50 packets per second into it for another 4.6 to 4.9 seconds. At 8.5 seconds the app opens a new UDP port and a new TCP connection and starts over. The app sends the RST or FIN itself, the PBX never closes first and answers each new port within about 100ms.

For reference: on Wi-Fi one TCP connection held 324 seconds and one UDP flow held 329 seconds with zero gaps. Cellular but idle, one port held 90 seconds or more. The churn only happens while a call is active.

Firewall side is clean: 21 to 22 sessions per phone across 20 to 22 source ports per window, all accepted, zero denies, destination NAT only with no source port rewrite, no DoS policies, IPS clear.

Control test: a laptop tethered to that same phone over cellular, using the 3CX web client, 55 second call, single UDP media flow, 2,747 packets up and 2,729 down, continuous, no audio problems.

Questions:

  1. Known issue on carriers using 464XLAT and carrier grade NAT, where the app drops its tunnel media flow after a few seconds?
  2. What makes the app abandon the flow after 3.3 seconds and rebuild the tunnel at 8.5, on cellular only? Is there a client timer?
  3. Can the mobile apps be forced to tunnel over TCP, or is KEEPALIVE_TIME_UDP=30 it?
 
Sounds like DPI / Flood Protection Problem.

5090 TCP is only for the SIP traffic.
5090 UDP for the RTP traffic.

So for me it sounds like something is blocking the RTP traffic and the descriptions sounds like some kind of flood protection.
Each directions requires 50 Pakets per second as 20ms Paketization Time. So some firewall might block this as false positive for flood.

While the phones are using WIFI are they inside the same network as the PBX or are they in the WIFI inside Home office?

For me it sounds like a problem with the firewall. Which can be tested as described. Try to use the Phones inside an WiFI on another location if the 3CX phone shows the same Problems its not the carrier.
 

Latest Posts

Forum statistics

Threads
112,345
Messages
592,004
Members
165,506
Latest member
Netflo