communication protocol_error ai_generated partial

RTP SSRC冲突检测到:重复的SSRC 0x%08X

RTP SSRC collision detected: duplicate SSRC 0x%08X

ID: communication/rtp-ssrc-collision

其他格式: JSON · Markdown 中文 · English
80%修复率
85%置信度
1证据数
2024-03-15首次发现

版本兼容性

版本状态引入弃用备注
libWebRTC M120 active
PJSIP 2.13.1 active
FFmpeg 6.1 active

根因分析

同一RTP会话中的两个端点使用了相同的同步源标识符,导致数据包错误路由。

English

Two RTP endpoints in the same session are using the same synchronization source identifier, causing packet misrouting.

generic

官方文档

https://datatracker.ietf.org/doc/html/rfc3550#section-8.2

解决方案

  1. Implement RTCP BYE and re-invite with new random SSRC. Example in Python: import random; new_ssrc = random.randint(0, 0xFFFFFFFF); send_rtcp_bye(old_ssrc); start_rtp(new_ssrc)
  2. Enable SSRC collision detection and handling in your RTP stack (e.g., in PJSIP set pjsua_media_config.rtp_collision_detection=1)

无效尝试

常见但无效的做法:

  1. Restart all RTP streams simultaneously 60% 失败

    Collision may reoccur if SSRCs are generated from the same seed or algorithm without randomization.

  2. Increase SSRC pool size or use fixed SSRCs 80% 失败

    Fixed SSRCs can cause permanent collisions in multi-party calls; randomization is required by RFC 3550.