讨论 RTPEngine 的 ICE-lite

跟 ICE-lite 对应的就是 ICE-Full

ICE-lite 仅在 offer 时设置,四选一:

  1. forward
  2. backward
  3. both
  4. off

测试 backward (后向)

RTPEngine 收到的 offer SDP 为

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

c=IN IP4 172.17.0.5

m=audio 4024 RTP/AVP 0

a=ice-pwd:bd5dfhdfddd8e1bc6

a=ice-ufrag:q25293

a=candidate:1 1 UDP 2130706303 172.17.0.5 4024 typ host

a=candidate:1 2 UDP 2130706302 172.17.0.5 4025 typ host

a=rtcp-mux

调用 rtpengine_offer("ICE=remove ICE-lite=backward rtcp-mux=demux")

得到的是:

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

m=audio 32958 RTP/AVP 0

c=IN IP4 203.0.113.1

a=rtpmap:0 PCMU/8000

a=sendrecv

a=rtcp:32959

在收到 answer 之后,调用 rtpengine_anwer("无flag")

得到的 sdp 为:

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

a=ice-lite

m=audio 32566 RTP/AVP 0

c=IN IP4 203.0.113.1

a=rtpmap:0 PCMU/8000

a=sendrecv

a=rtcp:32566

a=rtcp-mux

a=ice-ufrag:TMZC0F2C

a=ice-pwd:wPEWJVJ9KNrWH0YhcOpw53isGN

a=candidate:RDdGWrjNTEEe18Df 1 UDP 2130706431 203.0.113.1 32566 typ host

a=candidate:Mdk7jX69EgZEGFkD 1 UDP 2130706175 2001:db8:4321::1 35040 typ host

返回给主叫

我们注意到 主叫offer 没有 ice-lite 属性,主叫 answer 有 ice-lite 属性

文档是这样描述 backward (后向)的

backward to enable "ICE lite" mode towards the peer that has sent this offer.

ice=>RTPEngine(ice lite)=>rtp


forward 应该是这样:

RTPEngine 收到这样的 offer

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

c=IN IP4 172.17.0.5

m=audio 4026 RTP/AVP 0

调用 rtpengine_offer("ICE=force ICE-lite=forward")

也就是说

RTP =>RTPEngine (ice lite) =>ice

不知道我讲的对不对


ice-full vs ice-lite

可参考这里:

https://groups.google.com/g/rtpengine/c/cyD2f-hd6sE/m/Fch3_YZpAAAJ

相关推荐
我爱C编程2 天前
【3.1】基于FPGA的FFT/IFFT模块开发——前言/目录
fpga开发·教程·通信·fft·傅里叶变换
HalvmånEver2 天前
Linux:基于 UDP Socket 的实战项目——UDP 群聊聊天室
linux·运维·网络·学习·udp·通信
物联通信量讯说3 天前
量讯物联携HiveLink云宽带亮相CHIC,助力连锁零售数字化降本增效
物联网·零售·iot·通信
liulilittle4 天前
LINUX RING BUFFER TUN/TAP 1
linux·服务器·网络·c++·信息与通信·通信
普中科技6 天前
【普中STM32F1xx开发攻略--标准库版】-- 第 38 章 RS485 通信实验
stm32·单片机·嵌入式硬件·开发板·通信·rs485·普中科技
xixixi777776 天前
2026 年 03 月 20 日 AI+通信+安全行业日报(来更新啦)
大数据·人工智能·安全·ai·大模型·通信
嵌入小生0076 天前
硬件 --- 通信 --- uart/通信方式/电平标准/通信方向
uart·通信·串行通信·并行通信·电平标准·通信方向
xixixi777776 天前
5G核心网核心之辨:从服务化架构(SBA)到网络切片的深度实践解析
人工智能·网络安全·信息与通信·通信
问道飞鱼6 天前
【Tauri框架学习】Tauri 与 React 前端集成:通信机制与交互原理详解
前端·学习·react.js·rust·通信