SDP会话(Session)描述(Description)-消息体

SDP会话描述由会话层和媒体层描述段构成,包括版本、发起者信息、会话名称等关键信息。每个描述段遵循特定格式,如v=、o=、s=等。媒体描述中包含媒体类型、端口、传输协议和格式列表等。时间描述和重复时间用于定义会话活动时段。属性和加密密钥用于进一步配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SDP会话描述由若干行<type>=<value>格式的文本组成,其中,<type>是大小写敏感的单个字符,"="两边不能紧接空格。SDP会话描述由一个会话层描述段和可选的若干媒体层描述段组成,会话层描述段以"v=<value>"行开始,媒体层描述段以"m=<value>"开始。

标准会话描述如下所示,"*"标示行为可选行,各行之间的顺序固定不可变。

Session description
        v=  (protocol version)
        o=  <username> <session id> <version> <network type> <address type> <address> 
        s=  (session name)
        i=* (session information) 
        u=* (URI of description)
        e=* (email address)
        p=* (phone number)
        c=* <network type> <address type> <connection address>  (其中地址可以为<base multicast address>/<ttl>/<number of addresses>) (not required if included in all media)
        b=* <modifier>:<bandwidth-value> 
        One or more time descriptions (see below)
        z=* (time zone adjustments)
        k=* (encryption key)
        a=* <attribute> (<attribute:value>)(比较复杂,详见rfc2327)
        Zero or more media descriptions (see below)
Time description
        t=  (time the session is active)
        r=* (zero or more repeat times)
Media description
        m=<media> <port> <transport> <fmt list>
        i=* (media title)
        c=* (connection information - optional if included at session-level)
        b=* (bandwidth information)
        k=* (encryption key)
        a=* (zero or more media attribute lines) 

详细内容参照RFC2327

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值