一、概述
遵从标准SIP信令(RFC)
二、信令兼容的常见问题以及解决方案
三、WebRTC、SIP网关的SIP信令交互
在WebSocket API中,浏览器和服务器只需要做一个握手的动作,然后,浏览器和服务器之间就形成了一条快速通道。两者之间就直接可以数据互相传送。
上图为浏览器、WebRTC2SIP、MCU的SIP注册流程。基于HTTP协议,浏览器和WebRTC2SIP建立了WebSocket通道。通过WebSocket通道,浏览器和WebRTC2SIP进行SIP消息通信。WebRTC2SIP通过UDP和MCU进行SIP消息交互。
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 |
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通道。
REGISTER sip:192.168.1.253 SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;rport From: "2002" To: "2002" Contact: "2002" 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 |
REGISTER sip:192.168.1.253 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKTOTHfCEZLzsGETGIUSBu4vqxTGwMivqM;rport From: "2002" To: "2002" Contact: "2002" 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 |
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" To: "2002" Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e CSeq: 10875 REGISTER Server: SUIRUI eSight/MCU 1000/5.3.76 Content-Length: 0 |
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" 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 |
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" 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 |
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" 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 |
REGISTER sip:192.168.1.253 SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;rport From: "2002" To: "2002" Contact: "2002" 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 |
REGISTER sip:192.168.1.253 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bKHROv76yuBPKUlTgtOWv8iVpDKT51cmoR;rport From: "2002" To: "2002" Contact: "2002" 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 |
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" To: "2002" Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e CSeq: 10876 REGISTER Server: SUIRUI eSight/MCU 1000/5.3.76 Content-Length: 0 |
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" 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 |
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" To: "2002" Call-ID: 27ca58e3-358c-e3e9-db3a-37f5370e8c4e CSeq: 10876 REGISTER Expires: 200 Contact: 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 |
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" To: "2002" Contact: 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 |
INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL;rport From: "2002" To: Contact: "2002" 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 |
INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1754819368;rport From: 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
|
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: To: Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f CSeq: 848919089 INVITE Server: AgileVideo/MCU 1000/5.3.77 Content-Length: 0
|
SIP/2.0 100 Trying (sent from the Transaction Layer) Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL From: "2002" To: Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731 CSeq: 18177 INVITE Content-Length: 0 |
SIP/2.0 180 Ringing Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL From: "2002" To: 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 |
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: To: 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]] |
SIP/2.0 200 OK Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bK47y1bhlQQoS7mWKhHaOtD0UtvLcXIABL From: "2002" To: 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 |
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" To: Contact: "2002" 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 |
ACK sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-926861572;rport From: To: 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 |
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: 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]] |
INVITE sip:[email protected]:10060 SIP/2.0 Via: SIP/2.0/WS 192.168.1.135:10060;branch=z9hG4bK-531070239;rport From: 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 |
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: To: Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e CSeq: 789547369 INVITE Content-Length: 0 |
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: To: Call-ID: [email protected] CSeq: 37 INVITE Content-Length: 0 |
SIP/2.0 180 Ringing Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-531070239 From: To: 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 |
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: To: Contact: Call-ID: [email protected] CSeq: 37 INVITE Content-Length: 0 Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE |
SIP/2.0 200 OK Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-531070239 From: To: 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 |
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: To: 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 |
ACK sip:[email protected]:10060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 192.168.1.253:5060;rport;branch=z9hG4bK1225080659 From: To: Call-ID: [email protected] CSeq: 37 ACK Max-Forwards: 20 Contact: User-Agent: AgileVideo/MCU 1000/5.3.77 Content-Length: 0 |
ACK sip:[email protected];transport=ws SIP/2.0 Via: SIP/2.0/WS 192.168.1.135:10060;branch=z9hG4bK-144870216;rport From: To: 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 |
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" To: 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 |
BYE sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.135:10060;branch=z9hG4bK-1684245131;rport From: To: Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f CSeq: 848919090 BYE Content-Length: 0 Max-Forwards: 70 User-Agent: webrtc2sip Media Server 2.6.0 |
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: To: Call-ID: 8cff8eef-b298-a3c8-207d-62319c8ebd8f CSeq: 848919090 BYE Server: AgileVideo/MCU 1000/5.3.77 Content-Length: 0 |
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: To: 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 |
SIP/2.0 200 OK Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bKReVGgLGyAEuAupdGOKbZMUJGHeXpvTiM From: "2002" To: Contact: Call-ID: 737dfea8-f592-2c98-2426-c8f5c00a1731 CSeq: 18178 BYE Content-Length: 0 |
BYE sip:[email protected]:10060;transport=udp SIP/2.0 Call-ID: [email protected] From: To: 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 |
BYE sip:[email protected];transport=ws SIP/2.0 Via: SIP/2.0/WS 192.168.1.135:10060;branch=z9hG4bK-1320520671;rport From: To: 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 |
SIP/2.0 200 OK Via: SIP/2.0/WS 192.168.1.135:10060;rport=10060;branch=z9hG4bK-1320520671 From: To: Contact: Call-ID: 1210b8f5-ddac-3734-d7af-cdf99a84e88e CSeq: 789547370 BYE Content-Length: 0 |
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: To: Contact: Call-ID: [email protected] CSeq: 39 BYE Content-Length: 0 |
注销流程和注册流程类似,只是Contact头信息中的expires=0