相同编解码器的重复有效负载类型,但不同的fmtp线是否有效?

问题描述 投票:0回答:1

我正在开发一个voip应用程序。在其中一个场景中,我从网络接收以下SDP:

`m=audio 10660 RTP/AVP 18 18 8 0 108
 a=fmtp:18 annexb=yes
 a=fmtp:18 annexb=no
 a=rtpmap:108 telephone-event/16000
 a=fmtp:108 0-15
 a=ptime:20`

对于不同的fmtp线,有2个有效载荷类型18的实例。根据rfc是否有效?

sip codec sdp
1个回答
1
投票

那种情况无效。

首先它缺少标识编解码器的rtpmap,假设它的G729由于编解码器提到的优惠应该是这样的:

 m=audio 10660 RTP/AVP 18 8 0 108
 a=rtpmap:18 G729/16000
 a=fmtp:18 annexb=yes
 a=rtpmap:108 telephone-event/16000
 a=fmtp:108 0-15
 a=ptime:20

关于附件部分,如果支持它应该提供'= yes'然后answerer可以选择接受“= no”按照RFC:

https://tools.ietf.org/html/rfc7261

© www.soinside.com 2019 - 2024. All rights reserved.