Skip to content

Commit

Permalink
test: add fixtures from mozilla's webrtc-sdp
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Jan 17, 2022
1 parent c0ffeee commit c0ffeeb
Show file tree
Hide file tree
Showing 41 changed files with 684 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fixtures/mozilla/02.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
c=IN IP4 198.51.100.7
t=0 0
m=video 56436 RTP/SAVPF 120
a=rtpmap:120 VP8/90000
38 changes: 38 additions & 0 deletions fixtures/mozilla/03.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
; Many RTCP-FB feed back types take a parameter
; Most of these will not parse.
; One can experiment by commenting out individual lines.
; Note: comment lines only work in the example parser.
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
c=IN IP4 198.51.100.7
t=0 0
m=video 56436 RTP/SAVPF 120
a=rtpmap:120 VP8/90000
a=rtpmap:122 red/90000
a=rtcp-fb:120 ack rpsi
a=rtcp-fb:120 ack app
a=rtcp-fb:120 ack app foo
a=rtcp-fb:120 ack foo bar
a=rtcp-fb:120 ack foo bar baz
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 nack sli
a=rtcp-fb:120 nack rpsi
a=rtcp-fb:120 nack app
a=rtcp-fb:120 nack app foo
a=rtcp-fb:120 nack app foo bar
a=rtcp-fb:120 nack foo bar baz
a=rtcp-fb:120 trr-int 0
a=rtcp-fb:120 trr-int 123
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 ccm tmmbr
a=rtcp-fb:120 ccm tstr
a=rtcp-fb:120 ccm vbcm 123 456 789
a=rtcp-fb:120 ccm foo
a=rtcp-fb:120 ccm foo bar baz
a=rtcp-fb:120 foo
a=rtcp-fb:120 foo bar
a=rtcp-fb:120 foo bar baz
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
7 changes: 7 additions & 0 deletions fixtures/mozilla/04.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
t=0 0
m=video 56436 RTP/SAVPF 120
c=IN IP4 198.51.100.7
a=rtpmap:120 VP8/90000
6 changes: 6 additions & 0 deletions fixtures/mozilla/05.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=ice-lite
12 changes: 12 additions & 0 deletions fixtures/mozilla/06.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
c=IN IP4 198.51.100.7
b=CT:5000
b=FOOBAR:10
b=AS:4
t=0 0
m=video 56436 RTP/SAVPF 120
a=rtpmap:120 VP8/90000
m=audio 12345/2 RTP/SAVPF 0
a=rtpmap:0 PCMU/8000
8 changes: 8 additions & 0 deletions fixtures/mozilla/07.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=
c=IN IP4 198.51.100.7
t=0 0
m=video 56436 RTP/SAVPF 120
b=CT:1000
a=rtpmap:120 VP8/90000
87 changes: 87 additions & 0 deletions fixtures/mozilla/08.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
;
; This example fails to parse because of a mismatched fingerprint length
;
v=0
o=Mozilla-SIPUA-35.0a1 5184 0 IN IP4 0.0.0.0
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=ice-ufrag:4a799b2e
a=ice-pwd:e4cc12a910f106a0a744719425510e17
a=ice-lite
a=ice-options:trickle foo
a=msid-semantic:WMS stream streama
a=msid-semantic:foo stream
a=fingerprint:sha-256 DF:2E:AC:8A:FD:0A:8E:99:BF:5D:E8:3C:E7:FA:FB:08:3B:3C:54:1D:D7:D4:05:77:A0:72:9B:14:08:6D:0F:4C
a=identity:eyJpZHAiOnsiZG9tYWluIjoiZXhhbXBsZS5vcmciLCJwcm90b2NvbCI6ImJvZ3VzIn0sImFzc2VydGlvbiI6IntcImlkZW50aXR5XCI6XCJib2JAZXhhbXBsZS5vcmdcIixcImNvbnRlbnRzXCI6XCJhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3l6XCIsXCJzaWduYXR1cmVcIjpcIjAxMDIwMzA0MDUwNlwifSJ9
a=group:BUNDLE first second
a=group:BUNDLE third
a=group:LS first third
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=mid:first
a=rtpmap:109 opus/48000/2
a=ptime:20
a=maxptime:20
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15,66,32-34,67
a=ice-ufrag:00000000
a=ice-pwd:0000000000000000000000000000000
a=sendonly
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=setup:actpass
a=rtcp-mux
a=msid:stream track
a=candidate:0 1 UDP 2130379007 10.0.0.36 62453 typ host
a=candidate:2 1 UDP 1694236671 24.6.134.204 62453 typ srflx raddr 10.0.0.36 rport 62453
a=candidate:3 1 UDP 100401151 162.222.183.171 49761 typ relay raddr 162.222.183.171 rport 49761
a=candidate:6 1 UDP 16515071 162.222.183.171 51858 typ relay raddr 162.222.183.171 rport 51858
a=candidate:3 2 UDP 100401150 162.222.183.171 62454 typ relay raddr 162.222.183.171 rport 62454
a=candidate:2 2 UDP 1694236670 24.6.134.204 55428 typ srflx raddr 10.0.0.36 rport 55428
a=candidate:6 2 UDP 16515070 162.222.183.171 50340 typ relay raddr 162.222.183.171 rport 50340
a=candidate:0 2 UDP 2130379006 10.0.0.36 55428 typ host
a=rtcp:62454 IN IP4 162.222.183.171
a=end-of-candidates
a=ssrc:5150
m=video 9 RTP/SAVPF 120 121 122 123
c=IN IP6 ::1
a=fingerprint:sha-1 DF:FA:FB:08:3B:3C:54:1D:D7:D4:05:77:A0:72:9B:14:08:6D:0F:4C:2E:AC:8A:FD:0A:8E:99:BF:5D:E8:3C:E7
a=mid:second
a=rtpmap:120 VP8/90000
a=rtpmap:121 VP9/90000
a=rtpmap:122 red/90000
a=rtpmap:123 ulpfec/90000
a=recvonly
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=setup:active
a=rtcp-mux
a=msid:streama tracka
a=msid:streamb trackb
a=candidate:0 1 UDP 2130379007 10.0.0.36 59530 typ host
a=candidate:0 2 UDP 2130379006 10.0.0.36 64378 typ host
a=candidate:2 2 UDP 1694236670 24.6.134.204 64378 typ srflx raddr 10.0.0.36 rport 64378
a=candidate:6 2 UDP 16515070 162.222.183.171 64941 typ relay raddr 162.222.183.171 rport 64941
a=candidate:6 1 UDP 16515071 162.222.183.171 64800 typ relay raddr 162.222.183.171 rport 64800
a=candidate:2 1 UDP 1694236671 24.6.134.204 59530 typ srflx raddr 10.0.0.36 rport 59530
a=candidate:3 1 UDP 100401151 162.222.183.171 62935 typ relay raddr 162.222.183.171 rport 62935
a=candidate:3 2 UDP 100401150 162.222.183.171 61026 typ relay raddr 162.222.183.171 rport 61026
a=rtcp:61026
a=end-of-candidates
a=ssrc:1111 foo
a=ssrc:1111 foo:bar
a=imageattr:120 send * recv *
m=audio 9 RTP/SAVPF 0
a=mid:third
a=rtpmap:0 PCMU/8000
a=ice-lite
a=ice-options:foo bar
a=msid:noappdata
a=bundle-only
34 changes: 34 additions & 0 deletions fixtures/mozilla/09.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
c=IN IP4 198.51.100.7
t=0 0
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=mid:first
a=rtpmap:109 opus/48000/2
a=ptime:20
a=maxptime:20
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=fmtp:101 0-5.
a=fmtp:101 0-15,66,67
a=fmtp:101 0,1,2-4,5-15,66,67
a=fmtp:101 5,6,7
a=fmtp:101 0
a=fmtp:101 1
a=fmtp:101 123
a=fmtp:101 0-123
a=fmtp:101 -12
a=fmtp:101 12-
a=fmtp:101 1,12-,4
a=fmtp:101 ,2,3
a=fmtp:101 ,,,2,3
a=fmtp:101 1,,,,,,,,3
a=fmtp:101 1,2,3,
a=fmtp:101 1-2-3
a=fmtp:101 112233
a=fmtp:101 33-2
13 changes: 13 additions & 0 deletions fixtures/mozilla/10.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
v=0
o=- 4294967296 2 IN IP4 127.0.0.1
s=SIP Call
c=IN IP4 198.51.100.7
t=0 0
m=video 9 RTP/SAVPF 97 120 121 122 123
c=IN IP6 ::1
a=fingerprint:sha-1 DF:FA:FB:08:3B:3C:54:1D:D7:D4:05:77:A0:72:9B:14:08:6D:0F:4C
a=rtpmap:97 H264/90000
a=rtpmap:120 VP8/90000
a=rtpmap:121 VP9/90000
a=rtpmap:122 red/90000
a=rtpmap:123 ulpfec/90000
66 changes: 66 additions & 0 deletions fixtures/mozilla/11.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
;
; This example fails to parse because a=ice-lite is session only
;
v=0
o=Mozilla-SIPUA-35.0a1 5184 0 IN IP4 0.0.0.0
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=ice-ufrag:4a799b2e
a=ice-pwd:e4cc12a910f106a0a744719425510e17
a=ice-lite
a=msid-semantic:WMS stream streama
a=fingerprint:sha-256 DF:2E:AC:8A:FD:0A:8E:99:BF:5D:E8:3C:E7:FA:FB:08:3B:3C:54:1D:D7:D4:05:77:A0:72:9B:14:08:6D:0F:4C
a=group:BUNDLE first second
a=group:BUNDLE third
a=group:LS first third
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=mid:first
a=rtpmap:109 opus/48000/2
a=ptime:20
a=maxptime:20
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15,66,32-34,67
a=ice-ufrag:00000000
a=ice-pwd:0000000000000000000000000000000
a=sendonly
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=setup:actpass
a=rtcp-mux
a=msid:stream track
a=candidate:0 1 UDP 2130379007 10.0.0.36 62453 typ host
a=candidate:2 1 UDP 1694236671 24.6.134.204 62453 typ srflx raddr 10.0.0.36 rport 62453
a=candidate:3 1 UDP 100401151 162.222.183.171 49761 typ relay raddr 162.222.183.171 rport 49761
a=candidate:6 1 UDP 16515071 162.222.183.171 51858 typ relay raddr 162.222.183.171 rport 51858
a=candidate:3 2 UDP 100401150 162.222.183.171 62454 typ relay raddr 162.222.183.171 rport 62454
a=candidate:2 2 UDP 1694236670 24.6.134.204 55428 typ srflx raddr 10.0.0.36 rport 55428
a=candidate:6 2 UDP 16515070 162.222.183.171 50340 typ relay raddr 162.222.183.171 rport 50340
a=candidate:0 2 UDP 2130379006 10.0.0.36 55428 typ host
m=video 9 RTP/SAVPF 97 98 120
c=IN IP6 ::1
a=mid:second
a=rtpmap:97 H264/90000
a=rtpmap:98 H264/90000
a=rtpmap:120 VP8/90000
a=recvonly
a=setup:active
a=rtcp-mux
a=msid:streama tracka
a=msid:streamb trackb
a=candidate:0 1 UDP 2130379007 10.0.0.36 59530 typ host
a=candidate:0 2 UDP 2130379006 10.0.0.36 64378 typ host
a=candidate:2 2 UDP 1694236670 24.6.134.204 64378 typ srflx raddr 10.0.0.36 rport 64378
a=candidate:6 2 UDP 16515070 162.222.183.171 64941 typ relay raddr 162.222.183.171 rport 64941
a=candidate:6 1 UDP 16515071 162.222.183.171 64800 typ relay raddr 162.222.183.171 rport 64800
a=candidate:2 1 UDP 1694236671 24.6.134.204 59530 typ srflx raddr 10.0.0.36 rport 59530
a=candidate:3 1 UDP 100401151 162.222.183.171 62935 typ relay raddr 162.222.183.171 rport 62935
a=candidate:3 2 UDP 100401150 162.222.183.171 61026 typ relay raddr 162.222.183.171 rport 61026
m=audio 9 RTP/SAVPF 0
a=mid:third
a=rtpmap:0 PCMU/8000
a=ice-lite
a=msid:noappdata
58 changes: 58 additions & 0 deletions fixtures/mozilla/12.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
v=0
o=Mozilla-SIPUA-35.0a1 27987 0 IN IP4 0.0.0.0
s=SIP Call
t=0 0
a=ice-ufrag:8a39d2ae
a=ice-pwd:601d53aba51a318351b3ecf5ee00048f
a=fingerprint:sha-256 30:FF:8E:2B:AC:9D:ED:70:18:10:67:C8:AE:9E:68:F3:86:53:51:B0:AC:31:B7:BE:6D:CF:A4:2E:D3:6E:B4:28
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=rtpmap:109 opus/48000/2
a=ptime:20
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/sendonly some_extension
a=extmap:3 some_other_extension some_params some more params
a=setup:actpass
a=rtcp-mux
m=video 9 RTP/SAVPF 120 126 97
c=IN IP4 0.0.0.0
a=rtpmap:120 VP8/90000
a=rtpmap:126 H264/90000
a=rtpmap:97 H264/90000
a=sendrecv
a=rtcp-fb:120 ack rpsi
a=rtcp-fb:120 ack app foo
a=rtcp-fb:120 ack foo
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack sli
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 nack rpsi
a=rtcp-fb:120 nack app foo
a=rtcp-fb:120 nack foo
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 ccm tmmbr
a=rtcp-fb:120 ccm tstr
a=rtcp-fb:120 ccm vbcm
a=rtcp-fb:120 ccm foo
a=rtcp-fb:120 trr-int 10
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 foo
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:* ccm tmmbr
a=setup:actpass
a=rtcp-mux
m=application 9 DTLS/SCTP 5000
c=IN IP4 0.0.0.0
a=sctpmap:5000 webrtc-datachannel 16
a=setup:actpass
12 changes: 12 additions & 0 deletions fixtures/mozilla/13.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
v=0
o=Mozilla-SIPUA-35.0a1 27987 0 IN IP4 0.0.0.0
s=SIP Call
t=0 0
a=ice-ufrag:8a39d2ae
a=ice-pwd:601d53aba51a318351b3ecf5ee00048f
a=fingerprint:sha-256 30:FF:8E:2B:AC:9D:ED:70:18:10:67:C8:AE:9E:68:F3:86:53:51:B0:AC:31:B7:BE:6D:CF:A4:2E:D3:6E:B4:28
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 0.0.0.0
a=sctp-port:5000
a=max-message-size:10000
a=setup:actpass
9 changes: 9 additions & 0 deletions fixtures/mozilla/14.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v=0
o=Mozilla-SIPUA-35.0a1 5184 0 IN IP4 0.0.0.0
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=candidate:0 1 UDP 2130379007 10.0.0.36 62453 typ host
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=rtpmap:109 opus/48000/2
9 changes: 9 additions & 0 deletions fixtures/mozilla/15.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v=0
o=Mozilla-SIPUA-35.0a1 5184 0 IN IP4 0.0.0.0
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=bundle-only
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=rtpmap:109 opus/48000/2
9 changes: 9 additions & 0 deletions fixtures/mozilla/16.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v=0
o=Mozilla-SIPUA-35.0a1 5184 0 IN IP4 0.0.0.0
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=fmtp:109 0-15
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=rtpmap:109 opus/48000/2
9 changes: 9 additions & 0 deletions fixtures/mozilla/17.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v=0
o=Mozilla-SIPUA-35.0a1 5184 0 IN IP4 0.0.0.0
s=SIP Call
c=IN IP4 224.0.0.1/100/12
t=0 0
a=ice-mismatch
m=audio 9 RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=rtpmap:109 opus/48000/2
Loading

0 comments on commit c0ffeeb

Please sign in to comment.