讨论 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

相关推荐
Fibocom广和通7 天前
广和通推出RU311 5G RedCap模组,让中速终端更轻量接入5G
物联网·5g·redcap·通信·广和通·ru311
liulilittle8 天前
REALITY 代理隧道的有效检测方法: 被动、主动与确定性三层实证研究
linux·服务器·网络·网络协议·安全·网络安全·通信
liulilittle8 天前
加密扩展记录 37B(含头口径):Go TLS 栈形态特征的适用域与配对勘误
网络·网络协议·计算机网络·网络安全·通信·tls·reality
无名3878 天前
siremis 使用手册
通信
祖力5510 天前
进程间通信(IPC机制):消息队列与共享内存
linux·消息队列·共享内存·通信·进程间通信
祖力5512 天前
进程间通信(IPC机制):无名通道与有名通道
linux·运维·服务器·进程·通信·进程间通信·ipc
2501_9298072515 天前
考研初试专业课140+总分400+重庆邮电大学801信号与系统考研经验重邮,电子信息与通信工程,真题,大纲,参考书,博睿泽信息通信Jenny。
考研·信息与通信·信号处理·通信·电子信息
Logintern0917 天前
opcua如何在确认server端准备接收请求的时候,client再下发连接
opcua·通信
liulilittle17 天前
XTCP简述
网络·c++·tcp/ip·ip·tcp·通信
lsz15259018 天前
港口自动控制系统技术白皮书与核心模块全解
控制·通信·基础设施·plc编程·自动控制系统·港口