Skip to content

Fix RTP wrong-port STUN handling and remove duplicated latching#23

Merged
shenjinti merged 2 commits intorestsend:mainfrom
yeoleobun:issue-117-rtp-stun-latching
Mar 20, 2026
Merged

Fix RTP wrong-port STUN handling and remove duplicated latching#23
shenjinti merged 2 commits intorestsend:mainfrom
yeoleobun:issue-117-rtp-stun-latching

Conversation

@yeoleobun
Copy link
Copy Markdown
Collaborator

@yeoleobun yeoleobun commented Mar 17, 2026

Summary

This PR tries to fix rustpbx#117.

Linphone will sending bare STUN Binding Requests to adjacent media ports with no reason. And rustpbx/rustrtc will allocated contiguous caller/callee RTP ports if the os allocate port in order .

Example

if linphone send an Invite, the caller port rtp would be 10000, and the callee rtp will be 10001, since the rtcp_mux is default setted, so the rtcp port of caller now become the 10001. but linphone will ignore the answer, it will still trying send stun to 10001, and the peer of leg b will be latched to the leg a.

This PR changes in rustrtc:

  • reject STUN Binding Requests on plain RTP transports when ICE-lite is disabled
  • remove duplicated latching logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue: No downlink RTP audio to Linphone when rustpbx uses media_proxy=all (Aliyun VPS)

2 participants