rv1126 GB28181录制回放及下载流程分析

rv1126 GB28181录制回放及下载流程分析 2024-09-29 22:00:33 339

1.下级域上级域说明

1.上级域:采用的是第三方的试用软件,livegbs。

2.下级域:运行于rv1126上的国标客户端测试程序。

2.录制回放—recordinfo信令流程

流程:

(1)向下级域发送recordinfo请求

(2)下级域回复200

(3)如果下级域有相应时间段的录制文件,下级域就回复录像信息

(4)上级域回复200

(5)下级域如果有没回复上级域的查询指令,就继续回复200,接着有录制文件的话就继续回复录像信息。

信令数据:

(1)向下级域发送recordinfo请求:

(1.1)开始时间00:00:00-05:00:00

Frame 315082: 709 bytes on wire (5672 bits), 709 bytes captured (5672 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (MESSAGE)
Request-Line: MESSAGE sip:37010200541320000001@192.168.0.31:5688;transport=udp SIP/2.0
    Method: MESSAGE
    Request-URI: sip:37010200541320000001@192.168.0.31:5688;transport=udp
    [Resent Packet: False]
Message Header
    Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK223438086
    From: <sip:34020000002000000001@3402000000>;tag=932438086
    To: <sip:37010200541320000001@3402000000>
    Call-ID: 703438086
    [Generated Call-ID: 703438086]
    CSeq: 579 MESSAGE
    Max-Forwards: 70
    User-Agent: Easy SIP Server
    Content-Length: 270
    Content-Type: Application/MANSCDP+xml
Message Body
    <?xml version="1.0" encoding="UTF-8"?>\n
    <Query>\n
        <CmdType>RecordInfo</CmdType>\n
        <SN>756438086</SN>\n
        <DeviceID>37010200541320000001</DeviceID>\n
        <StartTime>2021-05-11T00:00:00</StartTime>\n
        <EndTime>2021-05-11T05:00:00</EndTime>\n
        <Type>all</Type>\n
    </Query>\n

(1.2)开始时间05:00:00-10:00:00

Frame 315083: 709 bytes on wire (5672 bits), 709 bytes captured (5672 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (MESSAGE)
Request-Line: MESSAGE sip:37010200541320000001@192.168.0.31:5688;transport=udp SIP/2.0
    Method: MESSAGE
    Request-URI: sip:37010200541320000001@192.168.0.31:5688;transport=udp
    [Resent Packet: False]
Message Header
    Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK445438087
    From: <sip:34020000002000000001@3402000000>;tag=344438087
    To: <sip:37010200541320000001@3402000000>
    Call-ID: 797438087
    [Generated Call-ID: 797438087]
    CSeq: 580 MESSAGE
    Max-Forwards: 70
    User-Agent: Easy SIP Server
    Content-Length: 270
    Content-Type: Application/MANSCDP+xml
Message Body
    <?xml version="1.0" encoding="UTF-8"?>\n
    <Query>\n
        <CmdType>RecordInfo</CmdType>\n
        <SN>400438087</SN>\n
        <DeviceID>37010200541320000001</DeviceID>\n
        <StartTime>2021-05-11T05:00:00</StartTime>\n
        <EndTime>2021-05-11T10:00:00</EndTime>\n
        <Type>all</Type>\n
    </Query>\n

(1.3)开始时间10:00:00-15:00:00

Frame 315084: 708 bytes on wire (5664 bits), 708 bytes captured (5664 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (MESSAGE)
Request-Line: MESSAGE sip:37010200541320000001@192.168.0.31:5688;transport=udp SIP/2.0
    Method: MESSAGE
    Request-URI: sip:37010200541320000001@192.168.0.31:5688;transport=udp
    [Resent Packet: False]
Message Header
    Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK802438090
    From: <sip:34020000002000000001@3402000000>;tag=571438090
    To: <sip:37010200541320000001@3402000000>
    Call-ID: 147438090
    [Generated Call-ID: 147438090]
    CSeq: 581 MESSAGE
    Max-Forwards: 70
    User-Agent: Easy SIP Server
    Content-Length: 269
    Content-Type: Application/MANSCDP+xml
Message Body
    <?xml version="1.0" encoding="UTF-8"?>\n
    <Query>\n
        <CmdType>RecordInfo</CmdType>\n
        <SN>47438090</SN>\n
        <DeviceID>37010200541320000001</DeviceID>\n
        <StartTime>2021-05-11T10:00:00</StartTime>\n
        <EndTime>2021-05-11T15:00:00</EndTime>\n
        <Type>all</Type>\n
    </Query>\n

(1.4)开始时间15:00:00-20:00:00

Frame 315085: 709 bytes on wire (5672 bits), 709 bytes captured (5672 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (MESSAGE)
Request-Line: MESSAGE sip:37010200541320000001@192.168.0.31:5688;transport=udp SIP/2.0
    Method: MESSAGE
    Request-URI: sip:37010200541320000001@192.168.0.31:5688;transport=udp
    [Resent Packet: False]
Message Header
    Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK390438091
    From: <sip:34020000002000000001@3402000000>;tag=966438091
    To: <sip:37010200541320000001@3402000000>
    Call-ID: 857438091
    [Generated Call-ID: 857438091]
    CSeq: 582 MESSAGE
    Max-Forwards: 70
    User-Agent: Easy SIP Server
    Content-Length: 270
    Content-Type: Application/MANSCDP+xml
Message Body
    <?xml version="1.0" encoding="UTF-8"?>\n
    <Query>\n
        <CmdType>RecordInfo</CmdType>\n
        <SN>574438091</SN>\n
        <DeviceID>37010200541320000001</DeviceID>\n
        <StartTime>2021-05-11T15:00:00</StartTime>\n
        <EndTime>2021-05-11T18:31:48</EndTime>\n
        <Type>all</Type>\n
    </Query>\n

此处说明一下,因为当时抓包的时候是18:31:48,所以这第四部分的record获取时间是15:00:00-18:31:48,如果查询的时刻比较晚,或者说是查询前一天的,那时间就是15:00:00-20:00:00。

(1.5)开始时间20:00:00-24:00:00

这部分没有,原因同(1.4)说明。

(2)下级域回复200

(2.1)下级域回复00:00:00-05:00:00时间段的录制信息查询命令的200OK

Frame 315089: 334 bytes on wire (2672 bits), 334 bytes captured (2672 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
        Status-Code: 200
        [Resent Packet: False]
        [Request Frame: 315082]
        [Response Time (ms): 8]
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK223438086
        From: <sip:34020000002000000001@3402000000>;tag=932438086
        To: <sip:37010200541320000001@3402000000>;tag=1231225219
        Call-ID: 703438086
        [Generated Call-ID: 703438086]
        CSeq: 579 MESSAGE
        User-Agent: eXosip/4.1.0
        Content-Length: 0

(2.2)下级域回复05:00:00-10:00:00时间段的录制信息查询命令的200OK

Frame 315090: 334 bytes on wire (2672 bits), 334 bytes captured (2672 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
        Status-Code: 200
        [Resent Packet: False]
        [Request Frame: 315083]
        [Response Time (ms): 7]
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK445438087
        From: <sip:34020000002000000001@3402000000>;tag=344438087
        To: <sip:37010200541320000001@3402000000>;tag=2002674909
        Call-ID: 797438087
        [Generated Call-ID: 797438087]
        CSeq: 580 MESSAGE
        User-Agent: eXosip/4.1.0
        Content-Length: 0

(2.3)下级域回复10:00:00-15:00:00时间段的录制信息查询命令的200OK

Frame 315092: 334 bytes on wire (2672 bits), 334 bytes captured (2672 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
        Status-Code: 200
        [Resent Packet: False]
        [Request Frame: 315084]
        [Response Time (ms): 8]
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK802438090
        From: <sip:34020000002000000001@3402000000>;tag=571438090
        To: <sip:37010200541320000001@3402000000>;tag=1792452360
        Call-ID: 147438090
        [Generated Call-ID: 147438090]
        CSeq: 581 MESSAGE
        User-Agent: eXosip/4.1.0
        Content-Length: 0

(2.3.1)下级域回复10:00:00-15:00:00时间段的录制信息查询命令的结果

Frame 315093: 949 bytes on wire (7592 bits), 949 bytes captured (7592 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (MESSAGE)
    Request-Line: MESSAGE sip:34020000002000000001@192.168.0.35:15060 SIP/2.0
        Method: MESSAGE
        Request-URI: sip:34020000002000000001@192.168.0.35:15060
        [Resent Packet: False]
    Message Header
        Via: SIP/2.0/UDP 192.168.0.31:5688;rport;branch=z9hG4bK847532728
        From: <sip:37010200541180000000@192.168.0.31>;tag=1984056157
        To: <sip:34020000002000000001@192.168.0.35:15060>
        Call-ID: 112757530
        [Generated Call-ID: 112757530]
        CSeq: 20 MESSAGE
        Content-Type: Application/MANSCDP+xml
        Max-Forwards: 70
        User-Agent: eXosip/4.1.0
        Content-Length:   521
    Message Body
        <?xml version="1.0" encoding="GB2312"?>\r\n
        <Response>\r\n
        <CmdType>RecordInfo</CmdType>\r\n
        <SN>47438090</SN>\r\n
        <DeviceID>37010200541320000001</DeviceID>\r\n
        <Name>Camera 01</Name>\r\n
        <SumNum>1</SumNum>\r\n
        <RecordList Num="1"><Item>\r\n
        <DeviceID>37010200541320000001</DeviceID>\r\n
        <Name>Camera 01</Name>\r\n
        <FilePath>1591069694_1591071812</FilePath>\r\n
        <Address>Address 1</Address>\r\n
        <StartTime>2021-05-11T12:16:15</StartTime>\r\n
        <EndTime>2021-05-11T12:59:35</EndTime>\r\n
        <Secrecy>0</Secrecy>\r\n
        <Type>time</Type>\r\n
        </Item>\r\n
        </RecordList>\r\n
        </Response>\r\n

(2.3.2)上级域回复200

Frame 315096: 366 bytes on wire (2928 bits), 366 bytes captured (2928 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (200)
Status-Line: SIP/2.0 200 OK
    Status-Code: 200
    [Resent Packet: False]
    [Request Frame: 315093]
    [Response Time (ms): 0]
Message Header
    Via: SIP/2.0/UDP 192.168.0.31:5688;rport=5688;received=192.168.0.31;branch=z9hG4bK847532728
    From: <sip:37010200541180000000@192.168.0.31>;tag=1984056157
    To: <sip:34020000002000000001@192.168.0.35:15060>;tag=732438100
    CSeq: 20 MESSAGE
    Call-ID: 112757530
    [Generated Call-ID: 112757530]
    User-Agent: Easy SIP Server
    Content-Length: 0

(2.4)下级域回复15:00:00-20:00:00时间段的录制信息查询命令的200OK

Frame 315106: 334 bytes on wire (2672 bits), 334 bytes captured (2672 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
        Status-Code: 200
        [Resent Packet: False]
        [Request Frame: 315085]
        [Response Time (ms): 16]
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK390438091
        From: <sip:34020000002000000001@3402000000>;tag=966438091
        To: <sip:37010200541320000001@3402000000>;tag=1754239150
        Call-ID: 857438091
        [Generated Call-ID: 857438091]
        CSeq: 582 MESSAGE
        User-Agent: eXosip/4.1.0
        Content-Length: 0

(2.5)本来应该是回复20:00:00-24:00:00的录制信息查询的200OK,或者后面跟着录像信息的结果,但是因为查询的时候是18点,所以只发了四个查询命令。

至于上级域发给下级域的录制信息查询结果如何跟下级域回复的200OK对应,可以通过Call-ID值,相同的值代表一轮交互。

另外上级域查询的时间段划分并不是固定的,本抓包是5-5-5-5-4,也有6-6-6-6的

3.录制回放—invite信令流程

流程:

1.上级域发送invite请求(注意:跟直播invite不一样,s=Playback,直播的 s=Play)

2.下级域回复100

3.下级域回复200

4.上级域回复ack

信令数据:

注:此时目的域id不再是下级平台的域id,而是要预览的设备id了,或者说是要预览的通道的id,多通道的时候,需要根据这个id区分不同的通道,对ipc来说可能就一个通道,但是对于nvr来说,很大可能是多通道的。

1.上级域发送invite请求(注意:跟直播invite不一样,s=Playback,直播的 s=Play)

Frame 261998: 817 bytes on wire (6536 bits), 817 bytes captured (6536 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (INVITE)
    Request-Line: INVITE sip:37010200541320000001@192.168.0.35:5070;transport=udp SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK640423358
        From: <sip:34020000002000000001@3402000000>;tag=205423358
        To: <sip:37010200541320000001@3402000000>
        Call-ID: 849422839
        [Generated Call-ID: 849422839]
        CSeq: 572 INVITE
            Sequence Number: 572
            Method: INVITE
        Max-Forwards: 70
        User-Agent: Easy SIP Server
        Content-Length: 268
        Content-Type: application/sdp
        Contact: <sip:34020000002000000001@192.168.0.35:15060>
        Subject: 37010200541320000001:125422839,34020000002000000001:0
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): 37010200541320000001 0 0 IN IP4 192.168.0.35
            Session Name (s): Playback
            URI of Description (u): 37010200541320000001:0
            Connection Information (c): IN IP4 192.168.0.35
            Time Description, active time (t): 1620706575 1620709175
            Media Description, name and address (m): video 50088 RTP/AVP 96 98 97
            Media Attribute (a): recvonly
            Media Attribute (a): rtpmap:96 PS/90000
            Media Attribute (a): rtpmap:98 H264/90000
            Media Attribute (a): rtpmap:97 MPEG4/90000
            Unknown: y=1102000001
            [Generated Call-ID: 952369079]
            [Generated Call-ID: 849422839]
            [Generated Call-ID: 534450134]
            [Generated Call-ID: 822455208]

2.下级域回复100

Frame 261999: 322 bytes on wire (2576 bits), 322 bytes captured (2576 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (100)
    Status-Line: SIP/2.0 100 Trying
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK640423358
        From: <sip:34020000002000000001@3402000000>;tag=205423358
        To: <sip:37010200541320000001@3402000000>
        Call-ID: 849422839
        [Generated Call-ID: 849422839]
        CSeq: 572 INVITE
            Sequence Number: 572
            Method: INVITE
        User-Agent: eXosip/4.1.0
        Content-Length: 0

3.下级域回复200

Frame 262004: 820 bytes on wire (6560 bits), 820 bytes captured (6560 bits)
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
    Message Header
        [Expert Info (Warning/Undecoded): Trailing stray characters]
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK640423358
        From: <sip:34020000002000000001@3402000000>;tag=205423358
        To: <sip:37010200541320000001@3402000000>;tag=1193240549
        Call-ID: 849422839
        [Generated Call-ID: 849422839]
        CSeq: 572 INVITE
            Sequence Number: 572
            Method: INVITE
        Contact: <sip:37010200541320000001@192.168.0.31:5688>
        Content-Type: APPLICATION/SDP
        User-Agent: eXosip/4.1.0
        Content-Length:   397
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): 37010200541180000000 0 0 IN IP4 192.168.0.31
            Session Name (s): Play
            Connection Information (c): IN IP4 192.168.0.31
            Time Description, active time (t): 0 0
            Media Description, name and address (m): video 5688 RTP/AVP 96
            Media Attribute (a): sendonly
            Media Attribute (a): rtpmap:96 PS/90000
            Unknown: y=1102000001
            Data: 0d0a
            [Generated Call-ID: 952369079]
            [Generated Call-ID: 849422839]
            [Generated Call-ID: 534450134]
            [Generated Call-ID: 822455208]

4.上级域回复ack

Frame 262005: 405 bytes on wire (3240 bits), 405 bytes captured (3240 bits)
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (ACK)
    Request-Line: ACK sip:37010200541320000001@192.168.0.31:5688;transport=udp SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK760423369
        From: <sip:34020000002000000001@3402000000>;tag=205423358
        To: <sip:37010200541320000001@3402000000>;tag=1193240549
        Call-ID: 849422839
        [Generated Call-ID: 849422839]
        CSeq: 572 ACK
            Sequence Number: 572
            Method: ACK
        Max-Forwards: 70
        User-Agent: Easy SIP Server
        Content-Length: 0

4.录制下载—invite信令流程

流程:

1.上级域发送invite请求(注意:跟直播回看invite不一样,回看的s=Playback,直播的s=Play,下载的s=Download)

2.下级域回复100

3.下级域回复200

4.上级域回复ack

信令数据跟录制回看类似,不再赘述。

5.回看或者下载的时候倍速相关信令

Gb28181标准中,明确说明历史视音频的回复控制命令应采用监控报警联网系统实时流协议(MANSRTSP),并采用SIP消息INFO消息体携带传输。

上级域控制界面:

(1)上级域——>下级域消息如下:

Frame 14375: 547 bytes on wire (4376 bits), 547 bytes captured (4376 bits) on interface \Device\NPF_{0945714A-CEA2-4409-9E80-A007CD0C4954}, id 0
Ethernet II, Src: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33), Dst: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15)
Internet Protocol Version 4, Src: 192.168.0.35, Dst: 192.168.0.31
User Datagram Protocol, Src Port: 15060, Dst Port: 5688
Session Initiation Protocol (INFO)
    Request-Line: INFO sip:37010200541320000001@192.168.0.31:5688;transport=udp SIP/2.0
        Method: INFO
        Request-URI: sip:37010200541320000001@192.168.0.31:5688;transport=udp
            Request-URI User Part: 37010200541320000001
            Request-URI Host Part: 192.168.0.31
            Request-URI Host Port: 5688
        [Resent Packet: False]
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK154464221
        From: <sip:34020000002000000001@3402000000>;tag=11454897
        To: <sip:37010200541320000001@3402000000>;tag=381143452
        Call-ID: 380454377
        [Generated Call-ID: 380454377]
        CSeq: 520 INFO
        Max-Forwards: 70
        User-Agent: Easy SIP Server
        Content-Length: 49
        Content-Type: Application/MANSRTSP
        Contact: <sip:34020000002000000001@192.168.0.35:15060>
    Message Body
        PLAY RTSP/1.0\r\n
        CSeq: 686464222\r\n
        Scale: 4.000000\r\n

说明:Scale 字段就是倍速的值。

(2)下级域—->上级域消息如下:

Frame 14433: 420 bytes on wire (3360 bits), 420 bytes captured (3360 bits) on interface \Device\NPF_{0945714A-CEA2-4409-9E80-A007CD0C4954}, id 0
Ethernet II, Src: 1e:28:78:e8:94:15 (1e:28:78:e8:94:15), Dst: e8:62:24:7e:e3:33 (e8:62:24:7e:e3:33)
Internet Protocol Version 4, Src: 192.168.0.31, Dst: 192.168.0.35
User Datagram Protocol, Src Port: 5688, Dst Port: 15060
Session Initiation Protocol (200)
    Status-Line: SIP/2.0 200 OK
    Message Header
        Via: SIP/2.0/UDP 192.168.0.35:15060;rport=15060;branch=z9hG4bK154464221
        From: <sip:34020000002000000001@3402000000>;tag=11454897
        To: <sip:37010200541320000001@3402000000>;tag=381143452
        Call-ID: 380454377
        [Generated Call-ID: 380454377]
        CSeq: 520 INFO
        Contact: <sip:37010200541320000001@192.168.0.31:5688>
        Content-Type: APPLICATION/MANSRTSP
        User-Agent: eXosip/4.1.0
        Content-Length: 0

说明:重点注意回复的200K跟其他的命令是不一样的,需要指定Content-Type为APPLICATION/MANSRTSP,否则上级域是收不到的,抓包也抓不到,比如我的rv1126上eXosip接口的回复代码如下:

osip_message_t *message = evt->request;
int status = eXosip_call_build_answer(sip_context, evt->tid, 200, &message);
osip_message_set_content_type(message, "APPLICATION/MANSRTSP");
eXosip_call_send_answer(sip_context, evt->tid, 200, message);
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包 2 收藏 评论 打赏
评论
1个
内容存在敏感词
手气红包
相关专栏
置顶时间设置
结束时间
删除原因
  • 广告/SPAM
  • 恶意灌水
  • 违规内容
  • 文不对题
  • 重复发帖
打赏作者
易百纳技术社区
您的支持将鼓励我继续创作!
打赏金额:
¥1易百纳技术社区
¥5易百纳技术社区
¥10易百纳技术社区
¥50易百纳技术社区
¥100易百纳技术社区
支付方式:
微信支付
支付宝支付
易百纳技术社区微信支付
易百纳技术社区
打赏成功!

感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~

举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

审核成功

发布时间设置
发布时间:
是否关联周任务-专栏模块

审核失败

失败原因
备注
拼手气红包 红包规则
祝福语
恭喜发财,大吉大利!
红包金额
红包最小金额不能低于5元
红包数量
红包数量范围10~50个
余额支付
当前余额:
可前往问答、专栏板块获取收益 去获取
取 消 确 定

小包子的红包

恭喜发财,大吉大利

已领取20/40,共1.6元 红包规则

    易百纳技术社区