web浏览器无插件播放实时音视频技术---WebRTC2SIP与第三方SIP网关对接(五)

一、概述

遵从标准SIP信令(RFC)


二、信令兼容的常见问题以及解决方案

1、遵从标准SIP信令
2、SDP的描述要能进行兼容
3、对于WebRTC2SIP中,Invite所携带的SDP的m字段必须与200OK所携带的SDP的m字段必须一一对应(否则虽然能建立会话但不会进行流的处理)
4、如果WebRTC2SIP与SIP网关的SIP信令存在差异化,可以在二者之间加一个SIP代理,其作用是对SIP信令和SDP的不兼容进行相互转化
5、在WebRTC2SIP中,如果SDP里的端口对应的是sendrecv,根据RFC规范,对于SIP客户端发来的RTP与RTCP流会进行端口重新设置,之后WebRTC2SIP将流会推送到重新设置的端口上,也就是会把流推送到SIP客户端的发送端口,可以在代码里面注释掉重新设置端口的地方。
6、音视频播放过程中,没有声音的原因很可能是因为音频采样率的原因,可以在代码里面对音频采样率进行重新设。
7、会话建立后,SIP客户端可能20s后才显示画面,原因是会话没完全建立时,I帧已经推送出去但由于SIP客户端没成功建立会话导致I帧丢失,20s左右才有下一个I帧,要在编码单元去设置I帧间隔。

三、WebRTC、SIP网关的SIP信令交互

注册流程

WebSocket API中,浏览器和服务器只需要做一个握手的动作,然后,浏览器和服务器之间就形成了一条快速通道。两者之间就直接可以数据互相传送。

 web浏览器无插件播放实时音视频技术---WebRTC2SIP与第三方SIP网关对接(五)_第1张图片

上图为浏览器、WebRTC2SIPMCUSIP注册流程。基于HTTP协议,浏览器和WebRTC2SIP建立了WebSocket通道。通过WebSocket通道,浏览器和WebRTC2SIP进行SIP消息通信。WebRTC2SIP通过UDPMCU进行SIP消息交互。

F1:发起WebSocket连接

GET / HTTP/1.1

Upgrade: websocket

Connection: Upgrade

Host: 192.168.1.135:10060

Origin: http://192.168.1.105:8080

Sec-WebSocket-Protocol: sip

Pragma: no-cache

Cache-Control: no-cache

Sec-WebSocket-Key: QfRTDTwtjTE4ov8sxXWRVA==

Sec-WebSocket-Version: 13

Sec-WebSocket-Extensions: x-webkit-deflate-frame

User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

F2:确认WebSocket连接

HTTP/1.1 101 Switching Protocols

Content-Length: 0

Upgrade: websocket

Connection: Upgrade

Sec-WebSocket-Accept: cqNhYWo3dADxsso2SdwM0PQk1hI=

Sec-WebSocket-Protocol: sip

Sec-WebSocket-Version: 13

浏览器和网关通过HTTP进行一次握手,建立WebSocket通道。

F3:浏览器发起SIP注册

REGISTER sip:192.168.1.253 SIP/2.0

Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;rport

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Contact: "2002";expires=200;click2call=no;+g.oma.sip-im;+audio;language="en,fr"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10875 REGISTER

Content-Length: 0

Route:

Max-Forwards: 70

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

Supported: path

F4WebRTC2SIP转发SIP注册

REGISTER sip:192.168.1.253 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;rport

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Contact: "2002";expires=200;click2call=no;+g.oma.sip-im;+audio;language="en,fr"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10875 REGISTER

Content-Length: 0

Max-Forwards: 70

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

Supported: path

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;ws-hacked=WS

F5MCU回复100 Trying

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;rport=10060;received=192.168.1.135

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;ws-hacked=WS

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10875 REGISTER

Server: SUIRUI eSight/MCU 1000/5.3.76

Content-Length: 0

F6WebRTC2SIP回复100 Trying

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 192.168.1.135:10060;rport=10060;received=192.168.1.135;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10875 REGISTER

Content-Length: 0

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;ws-hacked=WS

Server: SUIRUI eSight/MCU 1000/5.3.76

F7MCU回复401 Unauthorized

SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;rport=10060;received=192.168.1.135

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;ws-hacked=WS

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10875 REGISTER

WWW-Authenticate: Digest realm="MCU", nonce="311ab02ae918c61a3700e271e7e9c54a.1393819793", stale=FALSE, algorithm=MD5

Server: SUIRUI eSight/MCU 1000/5.3.76

Allow: ACK, INVITE, BYE, CANCEL, MESSAGE, REGISTER, REFER, OPTIONS, INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

Content-Length: 0

F8WebRTC2SIP回复401 Unauthorized

SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 192.168.1.135:10060;rport=10060;received=192.168.1.135;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10875 REGISTER

Content-Length: 0

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;ws-hacked=WS

WWW-Authenticate: Digest realm="MCU",nonce="311ab02ae918c61a3700e271e7e9c54a.1393819793",stale=FALSE,algorithm=MD5

Server: SUIRUI eSight/MCU 1000/5.3.76

Allow: ACK,INVITE,BYE,CANCEL,MESSAGE,REGISTER,REFER,OPTIONS,INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

F9:浏览器发送Register消息

REGISTER sip:192.168.1.253 SIP/2.0

Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;rport

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Contact: "2002";expires=200;click2call=no;+g.oma.sip-im;+audio;language="en,fr"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10876 REGISTER

Content-Length: 0

Route:

Max-Forwards: 70

Authorization: Digest username="2002",realm="MCU",nonce="311ab02ae918c61a3700e271e7e9c54a.1393819793",uri="sip:192.168.1.253",response="e00dd1c152af00246fc6584fe79c8c89",algorithm=MD5

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

Supported: path

F10WebRTC2SIPMCU发送Register消息

REGISTER sip:192.168.1.253 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;rport

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Contact: "2002";expires=200;click2call=no;+g.oma.sip-im;+audio;language="en,fr"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10876 REGISTER

Content-Length: 0

Max-Forwards: 70

Authorization: Digest username="2002",realm="MCU",nonce="311ab02ae918c61a3700e271e7e9c54a.1393819793",uri="sip:192.168.1.253",response="e00dd1c152af00246fc6584fe79c8c89",algorithm=MD5

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

Supported: path

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;ws-hacked=WS

F11MCUWebRTC2SIP发送100 Tring

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;rport=10060;received=192.168.1.135

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;ws-hacked=WS

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10876 REGISTER

Server: SUIRUI eSight/MCU 1000/5.3.76

Content-Length: 0

F12WebRTC2SIP向浏览器发送100 Tring

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 192.168.1.135:10060;rport=10060;received=192.168.1.135;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002"

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10876 REGISTER

Content-Length: 0

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;ws-hacked=WS

Server: SUIRUI eSight/MCU 1000/5.3.76

F13MCUWebRTC2SIP发送200 OK

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;rport=10060;received=192.168.1.135

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;ws-hacked=WS

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002";tag=1510599126

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10876 REGISTER

Expires: 200

Contact: ;expires=200

Server: SUIRUI eSight/MCU 1000/5.3.76

Allow: ACK, INVITE, BYE, CANCEL, MESSAGE, REGISTER, REFER, OPTIONS, INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

Content-Length: 0

F14WebRTC2SIP向浏览器发送200 OK

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.135:10060;rport=10060;received=192.168.1.135;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR

From: "2002";tag=TDk5zuUZSTsxq5LbTIhg

To: "2002";tag=1510599126

Contact: ;expires=200

Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e

CSeq: 10876 REGISTER

Expires: 200

Content-Length: 0

Via: SIP/2.0/TCP 192.168.1.105:4160;rport;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;ws-hacked=WS

Server: SUIRUI eSight/MCU 1000/5.3.76

Allow: ACK,INVITE,BYE,CANCEL,MESSAGE,REGISTER,REFER,OPTIONS,INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

主叫流程

web浏览器无插件播放实时音视频技术---WebRTC2SIP与第三方SIP网关对接(五)_第2张图片

F1Web Client发送INVITE请求

INVITE sip:[email protected] SIP/2.0

Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL;rport

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To:

Contact: "2002"rtcweb-breaker=yes;click2call=no;transport=ws>;impi=2002;ha1=604e9ec7dfe461fa8be7d838d746cb06;+g.oma.sip-im;+sip.ice;language="en,fr"

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18177 INVITE

Content-Type: application/sdp

Content-Length: 4290

Route: 

Max-Forwards: 70

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

 

v=0

o=- 5724780397461465000 2 IN IP4 127.0.0.1

s=Doubango Telecom - chrome

t=0 0

a=group:BUNDLE audio video

a=msid-semantic: WMS 5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQb

m=audio 42417 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126

c=IN IP4 59.174.201.19

a=rtcp:42417 IN IP4 59.174.201.19

a=candidate:3047471893 1 udp 2113937151 169.254.173.97 55895 typ host generation 0

a=candidate:3047471893 2 udp 2113937151 169.254.173.97 55895 typ host generation 0

a=candidate:3142423050 1 udp 2113937151 169.254.39.88 55896 typ host generation 0

a=candidate:3142423050 2 udp 2113937151 169.254.39.88 55896 typ host generation 0

a=candidate:2222700650 1 udp 2113937151 192.168.1.105 55897 typ host generation 0

a=candidate:2222700650 2 udp 2113937151 192.168.1.105 55897 typ host generation 0

a=candidate:87277278 1 udp 1845501695 59.174.201.19 42417 typ srflx raddr 192.168.1.105 rport 55897 generation 0

a=candidate:87277278 2 udp 1845501695 59.174.201.19 42417 typ srflx raddr 192.168.1.105 rport 55897 generation 0

a=candidate:4213655525 1 tcp 1509957375 169.254.173.97 0 typ host generation 0

a=candidate:4213655525 2 tcp 1509957375 169.254.173.97 0 typ host generation 0

a=candidate:4123946746 1 tcp 1509957375 169.254.39.88 0 typ host generation 0

a=candidate:4123946746 2 tcp 1509957375 169.254.39.88 0 typ host generation 0

a=candidate:3405268122 1 tcp 1509957375 192.168.1.105 0 typ host generation 0

a=candidate:3405268122 2 tcp 1509957375 192.168.1.105 0 typ host generation 0

a=ice-ufrag:60WaAWTuJICyke+z

a=ice-pwd:wJLAlJY5t/Grqr/m2WPwrKdf

a=ice-options:google-ice

a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level

a=sendrecv

a=mid:audio

a=rtcp-mux

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:5t4MRzJoPADNXOXA6QDMvEh1akt0OG4O+Mgl+xee

a=rtpmap:111 opus/48000/2

a=fmtp:111 minptime=10

a=rtpmap:103 ISAC/16000

a=rtpmap:104 ISAC/32000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:107 CN/48000

a=rtpmap:106 CN/32000

a=rtpmap:105 CN/16000

a=rtpmap:13 CN/8000

a=rtpmap:126 telephone-event/8000

a=maxptime:60

a=ssrc:1938715939 cname:69Bl8RgNWEOtXysh

a=ssrc:1938715939 msid:5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQb 5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQba0

a=ssrc:1938715939 mslabel:5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQb

a=ssrc:1938715939 label:5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQba0

m=video 42417 RTP/SAVPF 100 116 117

c=IN IP4 59.174.201.19

a=rtcp:42417 IN IP4 59.174.201.19

a=candidate:3047471893 1 udp 2113937151 169.254.173.97 55895 typ host generation 0

a=candidate:3047471893 2 udp 2113937151 169.254.173.97 55895 typ host generation 0

a=candidate:3142423050 1 udp 2113937151 169.254.39.88 55896 typ host generation 0

a=candidate:3142423050 2 udp 2113937151 169.254.39.88 55896 typ host generation 0

a=candidate:2222700650 1 udp 2113937151 192.168.1.105 55897 typ host generation 0

a=candidate:2222700650 2 udp 2113937151 192.168.1.105 55897 typ host generation 0

a=candidate:87277278 1 udp 1845501695 59.174.201.19 42417 typ srflx raddr 192.168.1.105 rport 55897 generation 0

a=candidate:87277278 2 udp 1845501695 59.174.201.19 42417 typ srflx raddr 192.168.1.105 rport 55897 generation 0

a=candidate:4213655525 1 tcp 1509957375 169.254.173.97 0 typ host generation 0

a=candidate:4213655525 2 tcp 1509957375 169.254.173.97 0 typ host generation 0

a=candidate:4123946746 1 tcp 1509957375 169.254.39.88 0 typ host generation 0

a=candidate:4123946746 2 tcp 1509957375 169.254.39.88 0 typ host generation 0

a=candidate:3405268122 1 tcp 1509957375 192.168.1.105 0 typ host generation 0

a=candidate:3405268122 2 tcp 1509957375 192.168.1.105 0 typ host generation 0

a=ice-ufrag:60WaAWTuJICyke+z

a=ice-pwd:wJLAlJY5t/Grqr/m2WPwrKdf

a=ice-options:google-ice

a=extmap:2 urn:ietf:params:rtp-hdrext:toffset

a=sendrecv

a=mid:video

a=rtcp-mux

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:5t4MRzJoPADNXOXA6QDMvEh1akt0OG4O+Mgl+xee

a=rtpmap:100 VP8/90000

a=rtcp-fb:100 ccm fir

a=rtcp-fb:100 nack

a=rtcp-fb:100 goog-remb

a=rtpmap:116 red/90000

a=rtpmap:117 ulpfec/90000

a=ssrc:527171996 cname:69Bl8RgNWEOtXysh

a=ssrc:527171996 msid:5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQb 5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQbv0

a=ssrc:527171996 mslabel:5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQb

a=ssrc:527171996 label:5VLhgfqgoPHnJgnpA5fRGlfISDyYnAzZQKQbv0

F2WebRTC2SIP转发INVITE消息

INVITE sip:[email protected] SIP/2.0

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1754819368;rport

From: ;tag=1745181551

To:

Contact:

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919089 INVITE

Content-Type: application/sdp

Content-Length: 2373

Max-Forwards: 70

User-Agent: webrtc2sip Media Server 2.6.0

 

v=0

o=doubango 1983 678901 IN IP4 192.168.1.135

s=-

c=IN IP4 192.168.1.135

t=0 0

a=tcap:1 RTP/SAVPF RTP/SAVP RTP/AVPF

m=audio 55074 RTP/AVP 111 8 0 101

c=IN IP4 192.168.1.135

a=ptime:20

a=minptime:1

a=maxptime:255

a=silenceSupp:off - - - -

a=rtpmap:111 opus/48000/2

a=fmtp:111 maxplaybackrate=48000; sprop-maxcapturerate=48000; stereo=0; sprop-stereo=0; useinbandfec=0; usedtx=0

a=rtpmap:8 PCMA/8000/1

a=rtpmap:0 PCMU/8000/1

a=rtpmap:101 telephone-event/8000/1

a=fmtp:101 0-16

a=acap:1 crypto:1 AES_CM_128_HMAC_SHA1_80 inline:CobkqYw0kcBHY1IBTeQMQtBqQCU6oBDVVGkog7x7

a=acap:2 crypto:2 AES_CM_128_HMAC_SHA1_32 inline:BCXNfA7QE9/vnAeXQGraGJVo4cJIPf6y9OSk8PKc

a=pcfg:1 t=1 a=1,2

a=pcfg:2 t=2 a=1,2

a=pcfg:3 t=3

a=sendrecv

a=rtcp-mux

a=ssrc:3655583855 cname:f5d0e86fd41970710fff25f56c044324

a=ssrc:3655583855 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:3655583855 label:doubango@audio

a=ice-ufrag:H0OXKsZaZ0X7PTk

a=ice-pwd:EB3CZsWvBMgW9fsFjORCs

a=candidate:77YdO6jni 1 udp 2130706431 192.168.1.135 55074 typ host

a=candidate:77YdO6jni 2 udp 2130706430 192.168.1.135 55075 typ host

a=candidate:srflx77Yd 2 udp 1694498814 59.174.201.19 42457 typ srflx raddr 192.168.1.135 rport 55075

a=candidate:srflx77Yd 1 udp 1694498815 59.174.201.19 42456 typ srflx raddr 192.168.1.135 rport 55074

m=video 45972 RTP/AVP 100

c=IN IP4 192.168.1.135

a=rtcp-fb:* ccm fir

a=rtcp-fb:* nack

a=rtcp-fb:* goog-remb

a=rtpmap:100 VP8/90000

a=imageattr:100 recv [x=[128:16:640],y=[96:16:480]] send [x=[128:16:640],y=[96:16:480]]

a=acap:1 crypto:1 AES_CM_128_HMAC_SHA1_80 inline:TtqsMs6JPtxDFvexHclzpzVxKosyD4wJVV98FRdM

a=acap:2 crypto:2 AES_CM_128_HMAC_SHA1_32 inline:iIscrnZxALjanAUiml7v2v7nbz3R/0zZT18DNRls

a=pcfg:1 t=1 a=1,2

a=pcfg:2 t=2 a=1,2

a=pcfg:3 t=3

a=sendrecv

a=rtcp-mux

a=ssrc:2558368669 cname:3e8d8ff9adbcbc174d703a3f34e9a8da

a=ssrc:2558368669 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:2558368669 label:doubango@video

a=ice-ufrag:Zro6zZgkHkv3EfA

a=ice-pwd:iVNH8zbmUy7l4cDoHh3X9

a=candidate:YylmAaF53 1 udp 2130706431 192.168.1.135 45972 typ host

a=candidate:YylmAaF53 2 udp 2130706430 192.168.1.135 45973 typ host

a=candidate:srflxYylm 1 udp 1694498815 59.174.201.19 42454 typ srflx raddr 192.168.1.135 rport 45972

a=candidate:srflxYylm 2 udp 1694498814 59.174.201.19 42455 typ srflx raddr 192.168.1.135 rport 45973

 

F3MCU回复100 Trying

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1754819368;rport=10060;received=192.168.1.135

From: ;tag=1745181551

To:

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919089 INVITE

Server: AgileVideo/MCU 1000/5.3.77

Content-Length: 0

 

F4WebRTC2SIPWeb返回100 Trying

SIP/2.0 100 Trying (sent from the Transaction Layer)

Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To:

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18177 INVITE

Content-Length: 0

F5WebRTC2SIPWeb返回180 Ringing

SIP/2.0 180 Ringing

Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To: ;tag=329928595

Contact:

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18177 INVITE

Content-Length: 0

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

F6MCU返回200 OK

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1754819368;rport=10060;received=192.168.1.135

From: ;tag=1745181551

To: ;tag=1193271484

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919089 INVITE

Server: AgileVideo/MCU 1000/5.3.77

Contact:

Allow: ACK, INVITE, BYE, CANCEL, MESSAGE, REGISTER, REFER, OPTIONS, INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

Content-Type: application/sdp

Content-Length: 364

 

v=0

o=mcusystem 1394421916 1394421916 IN IP4 192.168.1.253

s=SIP Call

c=IN IP4 192.168.1.253

b=AS:600

t=0 0

m=audio 41342 RTP/AVP 8 0 101

a=rtpmap:8 PCMA/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

m=video 41116 RTP/AVP 100

a=rtpmap:100 VP8/90000

a=imageattr:100 recv [x=[128:16:640],y=[96:16:480]] send [x=[128:16:640],y=[96:16:480]]

F7WebRTC2SIPWeb返回200 OK

SIP/2.0 200 OK

Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To: ;tag=329928595

Contact:

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18177 INVITE

Content-Type: application/sdp

Content-Length: 1548

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

 

v=0

o=doubango 1983 678901 IN IP4 192.168.1.135

s=-

c=IN IP4 192.168.1.135

t=0 0

m=audio 40060 RTP/SAVPF 0 8 126

c=IN IP4 192.168.1.135

a=ptime:20

a=minptime:1

a=maxptime:255

a=silenceSupp:off - - - -

a=rtpmap:0 PCMU/8000/1

a=rtpmap:8 PCMA/8000/1

a=rtpmap:126 telephone-event/8000/1

a=fmtp:126 0-16

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:u2aeBA8Dmm9FNs9B0zKEGPwb50n6wFtvNNYdNg2B

a=sendrecv

a=rtcp-mux

a=ssrc:3865857220 cname:7c1c5878ce6356156177f800458ce856

a=ssrc:3865857220 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:3865857220 label:doubango@audio

a=ice-ufrag:1tFkVyz6UpEpIGl

a=ice-pwd:tXEoM5pKzoBWV8GdW15WN

a=candidate:vxCYnofbA 1 udp 2130706431 192.168.1.135 40060 typ host

a=candidate:srflxvxCY 1 udp 1694498815 59.174.201.19 42451 typ srflx raddr 192.168.1.135 rport 40060

m=video 45936 RTP/SAVPF 100

c=IN IP4 192.168.1.135

a=rtcp-fb:* ccm fir

a=rtcp-fb:* nack

a=rtcp-fb:* goog-remb

a=rtpmap:100 VP8/90000

a=imageattr:100 recv [x=[128:16:640],y=[96:16:480]] send [x=[128:16:640],y=[96:16:480]]

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:jLZmlDJ0tUYxdpwuZFPAUKj1dDNsOcn2SpUVybLT

a=sendrecv

a=rtcp-mux

a=ssrc:4136111719 cname:19787bc219f63fc411940236cefb7a8c

a=ssrc:4136111719 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:4136111719 label:doubango@video

a=ice-ufrag:nw2PmcoSGE1gFW9

a=ice-pwd:zcvis2hkyweMm7NIJfixB

a=candidate:fioB93wk5 1 udp 2130706431 192.168.1.135 45936 typ host

a=candidate:srflxfioB 1 udp 1694498815 59.174.201.19 42449 typ srflx raddr 192.168.1.135 rport 45936

F8WebWebRTC2SIP发送ACK

ACK sip:[email protected]:10060;transport=ws;ws-src-ip=192.168.1.105;ws-src-port=3888;ws-src-proto=ws SIP/2.0

Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bK4JAKJQAFECpteCUasuA6;rport

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To: ;tag=329928595

Contact: "2002";+g.oma.sip-im;+sip.ice;language="en,fr"

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18177 ACK

Content-Length: 0

Route:

Max-Forwards: 70

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

F9WebRTC2SIPMCU发送ACK

ACK sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-926861572;rport

From: ;tag=1745181551

To: ;tag=1193271484

Contact:

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919089 ACK

Content-Length: 0

Max-Forwards: 70

User-Agent: webrtc2sip Media Server 2.6.0

被叫流程

web浏览器无插件播放实时音视频技术---WebRTC2SIP与第三方SIP网关对接(五)_第3张图片

F1MCU发起呼叫

INVITE sip:[email protected]:10060;rtcweb-breaker=yes;transport=udp;ws-src-ip=192.168.1.105;ws-src-port=9950;ws-src-proto=ws SIP/2.0

Max-Forwards: 20

Via: SIP/2.0/UDP 192.168.1.253:5060;rport;branch=z9hG4bK677654567

From: ;tag=873042120

To:

Call-ID: [email protected]

CSeq: 37 INVITE

User-Agent: AgileVideo/MCU 1000/5.3.77

Contact:

Allow: ACK, INVITE, BYE, CANCEL, MESSAGE, REGISTER, REFER, OPTIONS, INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

Content-Type: application/sdp

Content-Length: 839

 

v=0

o=mcusystem 1394445967 1394445967 IN IP4 192.168.1.253

s=SIP Call

c=IN IP4 192.168.1.253

b=AS:1024

t=0 0

m=audio 51518 RTP/AVP 106 9 107 108 18 0 8 101

a=rtpmap:106 G7221/32000

a=fmtp:106 bitrate=48000

a=rtpmap:9 G722/8000

a=rtpmap:107 ISAC/16000

a=rtpmap:108 ISAC/32000

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=no

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:101 telephone-event/8000

m=video 57580 RTP/AVP 111 112 34 31 113

a=rtpmap:111 H264/90000

a=fmtp:111 profile-level-id=428028;max-mbps=245760;max-fs=8192;max-br=3840

a=rtpmap:112 H263-1998/90000

a=fmtp:112 CIF4=1;CIF=1;QCIF=1;F=1;I=1;J=1;T=1

a=rtpmap:34 H263/90000

a=fmtp:34 CIF4=1;CIF=1

a=rtpmap:31 H261/90000

a=fmtp:31 CIF=1;QCIF=1

a=rtpmap:113 VP8/90000

a=imageattr:113 recv [x=[128:16:352],y=[96:16:288]] send [x=[128:16:352],y=[96:16:288]]

F2WebRTC2SIP转发INVITE

INVITE sip:[email protected]:10060 SIP/2.0

Via: SIP/2.0/WS 192.168.1.135:10060;branch=z9hG4bK-531070239;rport

From: ;tag=64900326

To:

Contact:

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547369 INVITE

Content-Type: application/sdp

Content-Length: 2224

Max-Forwards: 70

Route:

User-Agent: webrtc2sip Media Server 2.6.0

 

v=0

o=doubango 1983 678901 IN IP4 192.168.1.135

s=-

c=IN IP4 192.168.1.135

t=0 0

a=tcap:1 RTP/SAVPF RTP/SAVP RTP/AVPF

m=audio 53286 RTP/AVP 8 0 101

c=IN IP4 192.168.1.135

a=ptime:20

a=minptime:1

a=maxptime:255

a=silenceSupp:off - - - -

a=rtpmap:8 PCMA/8000/1

a=rtpmap:0 PCMU/8000/1

a=rtpmap:101 telephone-event/8000/1

a=fmtp:101 0-16

a=acap:1 crypto:1 AES_CM_128_HMAC_SHA1_80 inline:6RckCSR8ny4ynJX6OKhSGDtu6OiSKrgC+dnlirc/

a=acap:2 crypto:2 AES_CM_128_HMAC_SHA1_32 inline:e3BOjDj4KcCGxzifBFrSbB+vBqeiHT9opq+/ADTp

a=pcfg:1 t=1 a=1,2

a=pcfg:2 t=2 a=1,2

a=pcfg:3 t=3

a=sendrecv

a=rtcp-mux

a=ssrc:2987674666 cname:90dc41823a6b5bbb8ff112965f5eb124

a=ssrc:2987674666 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:2987674666 label:doubango@audio

a=ice-ufrag:1jtbrIlyHWzTyyR

a=ice-pwd:Apd4yRSU7KKIl13H7wej2

a=candidate:5U8XXX9uL 1 udp 2130706431 192.168.1.135 53286 typ host

a=candidate:5U8XXX9uL 2 udp 2130706430 192.168.1.135 53287 typ host

a=candidate:srflx5U8X 1 udp 1694498815 59.174.201.19 5540 typ srflx raddr 192.168.1.135 rport 53286

a=candidate:srflx5U8X 2 udp 1694498814 59.174.201.19 5541 typ srflx raddr 192.168.1.135 rport 53287

m=video 51804 RTP/AVP 100

c=IN IP4 192.168.1.135

a=rtcp-fb:* ccm fir

a=rtcp-fb:* nack

a=rtcp-fb:* goog-remb

a=rtpmap:100 VP8/90000

a=imageattr:100 recv [x=[128:16:640],y=[96:16:480]] send [x=[128:16:640],y=[96:16:480]]

a=acap:1 crypto:1 AES_CM_128_HMAC_SHA1_80 inline:+41KurqhgIH6xp9Uo58hb9HhpZeMgxeTbG/93tnB

a=acap:2 crypto:2 AES_CM_128_HMAC_SHA1_32 inline:4GgcKKJFCYYtDtrs3hAX8cvk1OhqfX6EEAar+Kip

a=pcfg:1 t=1 a=1,2

a=pcfg:2 t=2 a=1,2

a=pcfg:3 t=3

a=sendrecv

a=rtcp-mux

a=ssrc:3431208345 cname:484c611a61accc4cd1ac75b3539cecc3

a=ssrc:3431208345 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:3431208345 label:doubango@video

a=ice-ufrag:5se3Ldzty5bvFba

a=ice-pwd:4nSW41Y2y2o4HkJcLuFsR

a=candidate:cWE3nYveF 1 udp 2130706431 192.168.1.135 51804 typ host

a=candidate:cWE3nYveF 2 udp 2130706430 192.168.1.135 51805 typ host

a=candidate:srflxcWE3 2 udp 1694498814 59.174.201.19 5539 typ srflx raddr 192.168.1.135 rport 51805

a=candidate:srflxcWE3 1 udp 1694498815 59.174.201.19 5538 typ srflx raddr 192.168.1.135 rport 51804

F3Web Client发送100 Trying

SIP/2.0 100 Trying (sent from the Transaction Layer)

Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-531070239

From: ;tag=64900326

To:

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547369 INVITE

Content-Length: 0

F4WebRTC2SIP转发100 Trying

SIP/2.0 100 Trying (sent from the Transaction Layer)

Via: SIP/2.0/UDP 192.168.1.253:5060;rport=5060;received=192.168.1.253;branch=z9hG4bK677654567

From: ;tag=873042120

To:

Call-ID: [email protected]

CSeq: 37 INVITE

Content-Length: 0

F5Web Client发送180 Ringing

SIP/2.0 180 Ringing

Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-531070239

From: ;tag=64900326

To: ;tag=hPrfT0vztVfk3aOrBmzI

Contact:

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547369 INVITE

Content-Length: 0

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

F6WebRTC2SIP转发180 Ringing

SIP/2.0 180 Ringing

Via: SIP/2.0/UDP 192.168.1.253:5060;rport=5060;received=192.168.1.253;branch=z9hG4bK677654567

From: ;tag=873042120

To: ;tag=1357500115

Contact:

Call-ID: [email protected]

CSeq: 37 INVITE

Content-Length: 0

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

F7Web Client发送200 OK

SIP/2.0 200 OK

Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-531070239

From: ;tag=64900326

To: ;tag=hPrfT0vztVfk3aOrBmzI

Contact:

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547369 INVITE

Content-Type: application/sdp

Content-Length: 2587

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

 

v=0

o=- 1244505687192192500 2 IN IP4 127.0.0.1

s=Doubango Telecom - chrome

t=0 0

a=msid-semantic: WMS IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9

m=audio 5588 RTP/SAVPF 0 8 101

c=IN IP4 59.174.201.19

a=rtcp:1 IN IP4 0.0.0.0

a=candidate:3047471893 1 udp 2113937151 169.254.173.97 54197 typ host generation 0

a=candidate:3142423050 1 udp 2113937151 169.254.39.88 54198 typ host generation 0

a=candidate:2222700650 1 udp 2113937151 192.168.1.105 54199 typ host generation 0

a=candidate:87277278 1 udp 1845501695 59.174.201.19 5588 typ srflx raddr 192.168.1.105 rport 54199 generation 0

a=candidate:4213655525 1 tcp 1509957375 169.254.173.97 0 typ host generation 0

a=candidate:4123946746 1 tcp 1509957375 169.254.39.88 0 typ host generation 0

a=candidate:3405268122 1 tcp 1509957375 192.168.1.105 0 typ host generation 0

a=ice-ufrag:2nHm6nCERsdoXC/z

a=ice-pwd:ZC94p7g121qNGgyraYvdVv/c

a=sendrecv

a=mid:audio

a=rtcp-mux

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:VZgu7W0WhPeQnTgaYdektjbNVOx7KlVpLqdKdUhX

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:101 telephone-event/8000

a=ssrc:757104097 cname:XvFmm45hPF+PzuFE

a=ssrc:757104097 msid:IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9 IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9a0

a=ssrc:757104097 mslabel:IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9

a=ssrc:757104097 label:IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9a0

m=video 5589 RTP/SAVPF 100

c=IN IP4 59.174.201.19

a=rtcp:1 IN IP4 0.0.0.0

a=candidate:3047471893 1 udp 2113937151 169.254.173.97 54200 typ host generation 0

a=candidate:3142423050 1 udp 2113937151 169.254.39.88 54201 typ host generation 0

a=candidate:2222700650 1 udp 2113937151 192.168.1.105 54202 typ host generation 0

a=candidate:87277278 1 udp 1845501695 59.174.201.19 5589 typ srflx raddr 192.168.1.105 rport 54202 generation 0

a=candidate:4213655525 1 tcp 1509957375 169.254.173.97 0 typ host generation 0

a=candidate:4123946746 1 tcp 1509957375 169.254.39.88 0 typ host generation 0

a=candidate:3405268122 1 tcp 1509957375 192.168.1.105 0 typ host generation 0

a=ice-ufrag:3dGeZUF0/ZdcMt8Z

a=ice-pwd:f+EC0tOh1e5ePoXn7x0RnDX+

a=sendrecv

a=mid:video

a=rtcp-mux

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:TbWY5v0pzPwuiqF4vAmqphmgQWJW1+w6uqMfd3kk

a=rtpmap:100 VP8/90000

a=rtcp-fb:100 ccm fir

a=rtcp-fb:100 nack

a=rtcp-fb:100 goog-remb

a=ssrc:2074217712 cname:XvFmm45hPF+PzuFE

a=ssrc:2074217712 msid:IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9 IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9v0

a=ssrc:2074217712 mslabel:IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9

a=ssrc:2074217712 label:IQJRLeinEGGaRkhi1TWQim6qoXHdOzyjn1t9v0

F8WebRTC2SIP转发200 OK

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.253:5060;rport=5060;received=192.168.1.253;branch=z9hG4bK677654567

From: ;tag=873042120

To: ;tag=1357500115

Contact:

Call-ID: [email protected]

CSeq: 37 INVITE

Content-Type: application/sdp

Content-Length: 838

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE

 

v=0

o=doubango 1983 678901 IN IP4 192.168.1.135

s=-

c=IN IP4 192.168.1.135

t=0 0

m=audio 15182 RTP/AVP 0 8 101

a=ptime:20

a=minptime:1

a=maxptime:255

a=silenceSupp:off - - - -

a=rtpmap:0 PCMU/8000/1

a=rtpmap:8 PCMA/8000/1

a=rtpmap:101 telephone-event/8000/1

a=fmtp:101 0-16

a=sendrecv

a=ssrc:2507759946 cname:78bc3c2c6950f6d051c164c0dc9931d4

a=ssrc:2507759946 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:2507759946 label:doubango@audio

m=video 19236 RTP/AVP 113

a=rtcp-fb:* ccm fir

a=rtcp-fb:* nack

a=rtcp-fb:* goog-remb

a=rtpmap:113 VP8/90000

a=imageattr:113 recv [x=[128:16:352],y=[96:16:288]] send [x=[128:16:352],y=[96:16:288]]

a=sendrecv

a=ssrc:2875079148 cname:942f76324f08a0e025717f3db0f262e4

a=ssrc:2875079148 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2

a=ssrc:2875079148 label:doubango@video

F9MCU发送ACK

ACK sip:[email protected]:10060;transport=udp SIP/2.0

Via: SIP/2.0/UDP 192.168.1.253:5060;rport;branch=z9hG4bK1225080659

From: ;tag=873042120

To: ;tag=1357500115

Call-ID: [email protected]

CSeq: 37 ACK

Max-Forwards: 20

Contact:

User-Agent: AgileVideo/MCU 1000/5.3.77

Content-Length: 0

F10WebRTC2SIP转发ACK

ACK sip:[email protected];transport=ws SIP/2.0

Via: SIP/2.0/WS 192.168.1.135:10060;branch=z9hG4bK-144870216;rport

From: ;tag=64900326

To: ;tag=hPrfT0vztVfk3aOrBmzI

Contact:

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547369 ACK

Content-Length: 0

Max-Forwards: 70

Route:

User-Agent: webrtc2sip Media Server 2.6.0

终端挂断流程

web浏览器无插件播放实时音视频技术---WebRTC2SIP与第三方SIP网关对接(五)_第4张图片

F1Web Client发送BYE消息

BYE sip:[email protected]:10060;transport=ws;ws-src-ip=192.168.1.105;ws-src-port=3888;ws-src-proto=ws SIP/2.0

Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKReVGgLGyAEuAupdGOKbZMUJGHeXpvTiM;rport

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To: ;tag=329928595

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18178 BYE

Content-Length: 0

Route:

Max-Forwards: 70

Accept-Contact: *;+g.oma.sip-im

Accept-Contact: *;+sip.ice

Accept-Contact: *;language="en,fr"

User-Agent: IM-client/OMA1.0 sipML5-v1.2013.08.10B

Organization: Doubango Telecom

F2WebRTC2SIP转发BYE消息

BYE sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1684245131;rport

From: ;tag=1745181551

To: ;tag=1193271484

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919090 BYE

Content-Length: 0

Max-Forwards: 70

User-Agent: webrtc2sip Media Server 2.6.0

F3MCU回复100 Trying

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1684245131;rport=10060;received=192.168.1.135

From: ;tag=1745181551

To: ;tag=1193271484

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919090 BYE

Server: AgileVideo/MCU 1000/5.3.77

Content-Length: 0

F4MCU回复200 OK

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1684245131;rport=10060;received=192.168.1.135

From: ;tag=1745181551

To: ;tag=1193271484

Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f

CSeq: 848919090 BYE

Server: AgileVideo/MCU 1000/5.3.77

Allow: ACK, INVITE, BYE, CANCEL, MESSAGE, REGISTER, REFER, OPTIONS, INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

Content-Length: 0

F5WebRTC2SIP转发200 OK

SIP/2.0 200 OK

Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bKReVGgLGyAEuAupdGOKbZMUJGHeXpvTiM

From: "2002";tag=1y07pZExFhnbnFBbQG0v

To: ;tag=329928595

Contact:

Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731

CSeq: 18178 BYE

Content-Length: 0

MCU挂断流程

web浏览器无插件播放实时音视频技术---WebRTC2SIP与第三方SIP网关对接(五)_第5张图片

F1MCU发送BYE消息

BYE sip:[email protected]:10060;transport=udp SIP/2.0

Call-ID: [email protected]

From: ;tag=873042120

To: ;tag=1357500115

Reason: SIP;text="localhangup"

Via: SIP/2.0/UDP 192.168.1.253:5060;rport;branch=z9hG4bK1392734679

CSeq: 39 BYE

User-Agent: AgileVideo/MCU 1000/5.3.77

Max-Forwards: 70

Allow: ACK, INVITE, BYE, CANCEL, MESSAGE, REGISTER, REFER, OPTIONS, INFO

Accept: application/sdp, application/media_control+xml, application/h239_control+xml

Content-Length: 0

F2WebRTC2SIP转发BYE消息

BYE sip:[email protected];transport=ws SIP/2.0

Via: SIP/2.0/WS 192.168.1.135:10060;branch=z9hG4bK-1320520671;rport

From: ;tag=64900326

To: ;tag=hPrfT0vztVfk3aOrBmzI

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547370 BYE

Content-Length: 0

Max-Forwards: 70

Route:

User-Agent: webrtc2sip Media Server 2.6.0

F3Web Client回复200 OK

SIP/2.0 200 OK

Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-1320520671

From: ;tag=64900326

To: ;tag=hPrfT0vztVfk3aOrBmzI

Contact:

Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e

CSeq: 789547370 BYE

Content-Length: 0

F4WebRTC2SIP转发200 OK

SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.253:5060;rport=5060;received=192.168.1.253;branch=z9hG4bK1392734679

From: ;tag=873042120

To: ;tag=1357500115

Contact:

Call-ID: [email protected]

CSeq: 39 BYE

Content-Length: 0

注销流程

注销流程和注册流程类似,只是Contact头信息中的expires=0


你可能感兴趣的:(音视频)