1 /* 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 // This file contain SDP strings used for testing. 12 13 #ifndef PC_TEST_TEST_SDP_STRINGS_H_ 14 #define PC_TEST_TEST_SDP_STRINGS_H_ 15 16 namespace webrtc { 17 18 // SDP offer string from a Nightly FireFox build. 19 static const char kFireFoxSdpOffer[] = 20 "v=0\r\n" 21 "o=Mozilla-SIPUA 23551 0 IN IP4 0.0.0.0\r\n" 22 "s=SIP Call\r\n" 23 "t=0 0\r\n" 24 "a=ice-ufrag:e5785931\r\n" 25 "a=ice-pwd:36fb7878390db89481c1d46daa4278d8\r\n" 26 "a=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:" 27 "BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93\r\n" 28 "m=audio 36993 RTP/SAVPF 109 0 8 101\r\n" 29 "c=IN IP4 74.95.2.170\r\n" 30 "a=rtpmap:109 opus/48000/2\r\n" 31 "a=ptime:20\r\n" 32 "a=rtcp-mux\r\n" 33 "a=rtpmap:0 PCMU/8000\r\n" 34 "a=rtpmap:8 PCMA/8000\r\n" 35 "a=rtpmap:101 telephone-event/8000\r\n" 36 "a=fmtp:101 0-15\r\n" 37 "a=sendrecv\r\n" 38 "a=candidate:0 1 UDP 2112946431 172.16.191.1 61725 typ host\r\n" 39 "a=candidate:2 1 UDP 2112487679 172.16.131.1 58798 typ host\r\n" 40 "a=candidate:4 1 UDP 2113667327 10.0.254.2 58122 typ host\r\n" 41 "a=candidate:5 1 UDP 1694302207 74.95.2.170 36993 typ srflx raddr " 42 "10.0.254.2 rport 58122\r\n" 43 "a=candidate:0 2 UDP 2112946430 172.16.191.1 55025 typ host\r\n" 44 "a=candidate:2 2 UDP 2112487678 172.16.131.1 63576 typ host\r\n" 45 "a=candidate:4 2 UDP 2113667326 10.0.254.2 50962 typ host\r\n" 46 "a=candidate:5 2 UDP 1694302206 74.95.2.170 41028 typ srflx raddr" 47 " 10.0.254.2 rport 50962\r\n" 48 "m=video 38826 RTP/SAVPF 120\r\n" 49 "c=IN IP4 74.95.2.170\r\n" 50 "a=rtcp-mux\r\n" 51 "a=rtpmap:120 VP8/90000\r\n" 52 "a=sendrecv\r\n" 53 "a=candidate:0 1 UDP 2112946431 172.16.191.1 62017 typ host\r\n" 54 "a=candidate:2 1 UDP 2112487679 172.16.131.1 59741 typ host\r\n" 55 "a=candidate:4 1 UDP 2113667327 10.0.254.2 62652 typ host\r\n" 56 "a=candidate:5 1 UDP 1694302207 74.95.2.170 38826 typ srflx raddr" 57 " 10.0.254.2 rport 62652\r\n" 58 "a=candidate:0 2 UDP 2112946430 172.16.191.1 63440 typ host\r\n" 59 "a=candidate:2 2 UDP 2112487678 172.16.131.1 51847 typ host\r\n" 60 "a=candidate:4 2 UDP 2113667326 10.0.254.2 58890 typ host\r\n" 61 "a=candidate:5 2 UDP 1694302206 74.95.2.170 33611 typ srflx raddr" 62 " 10.0.254.2 rport 58890\r\n" 63 #ifdef WEBRTC_HAVE_SCTP 64 "m=application 45536 DTLS/SCTP 5000\r\n" 65 "c=IN IP4 74.95.2.170\r\n" 66 "a=fmtp:5000 protocol=webrtc-datachannel;streams=16\r\n" 67 "a=sendrecv\r\n" 68 "a=candidate:0 1 UDP 2112946431 172.16.191.1 60248 typ host\r\n" 69 "a=candidate:2 1 UDP 2112487679 172.16.131.1 55925 typ host\r\n" 70 "a=candidate:4 1 UDP 2113667327 10.0.254.2 65268 typ host\r\n" 71 "a=candidate:5 1 UDP 1694302207 74.95.2.170 45536 typ srflx raddr" 72 " 10.0.254.2 rport 65268\r\n" 73 "a=candidate:0 2 UDP 2112946430 172.16.191.1 49162 typ host\r\n" 74 "a=candidate:2 2 UDP 2112487678 172.16.131.1 59635 typ host\r\n" 75 "a=candidate:4 2 UDP 2113667326 10.0.254.2 61232 typ host\r\n" 76 "a=candidate:5 2 UDP 1694302206 74.95.2.170 45468 typ srflx raddr" 77 " 10.0.254.2 rport 61232\r\n" 78 #endif 79 ; // NOLINT(whitespace/semicolon) 80 81 // Audio SDP with a limited set of audio codecs. 82 static const char kAudioSdpPlanB[] = 83 "v=0\r\n" 84 "o=- 7859371131 2 IN IP4 192.168.30.208\r\n" 85 "s=-\r\n" 86 "c=IN IP4 192.168.30.208\r\n" 87 "t=0 0\r\n" 88 "m=audio 16000 RTP/SAVPF 0 8 126\r\n" 89 "a=rtpmap:0 PCMU/8000\r\n" 90 "a=rtpmap:8 PCMA/8000\r\n" 91 "a=rtpmap:126 telephone-event/8000\r\n" 92 "a=sendrecv\r\n" 93 "a=rtcp:16000 IN IP4 192.168.30.208\r\n" 94 "a=rtcp-mux\r\n" 95 "a=crypto:0 AES_CM_128_HMAC_SHA1_80 " 96 "inline:tvKIFjbMQ7W0/C2RzhwN0oQglj/7GJg+frdsNRxt\r\n" 97 "a=ice-ufrag:AI2sRT3r\r\n" 98 "a=ice-pwd:lByS9z2RSQlSE9XurlvjYmEm\r\n" 99 "a=ssrc:4227871655 cname:GeAAgb6XCPNLVMX5\r\n" 100 "a=ssrc:4227871655 msid:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4 a0\r\n" 101 "a=ssrc:4227871655 mslabel:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4\r\n" 102 "a=ssrc:4227871655 label:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4a0\r\n" 103 "a=mid:audio\r\n"; 104 // Same string as above but with the MID changed to the Unified Plan default. 105 // This is needed so that this SDP can be used as an answer for a Unified Plan 106 // offer. 107 static const char kAudioSdpUnifiedPlan[] = 108 "v=0\r\n" 109 "o=- 7859371131 2 IN IP4 192.168.30.208\r\n" 110 "s=-\r\n" 111 "c=IN IP4 192.168.30.208\r\n" 112 "t=0 0\r\n" 113 "m=audio 16000 RTP/SAVPF 0 8 126\r\n" 114 "a=rtpmap:0 PCMU/8000\r\n" 115 "a=rtpmap:8 PCMA/8000\r\n" 116 "a=rtpmap:126 telephone-event/8000\r\n" 117 "a=sendrecv\r\n" 118 "a=rtcp:16000 IN IP4 192.168.30.208\r\n" 119 "a=rtcp-mux\r\n" 120 "a=crypto:0 AES_CM_128_HMAC_SHA1_80 " 121 "inline:tvKIFjbMQ7W0/C2RzhwN0oQglj/7GJg+frdsNRxt\r\n" 122 "a=ice-ufrag:AI2sRT3r\r\n" 123 "a=ice-pwd:lByS9z2RSQlSE9XurlvjYmEm\r\n" 124 "a=ssrc:4227871655 cname:GeAAgb6XCPNLVMX5\r\n" 125 "a=ssrc:4227871655 msid:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4 a0\r\n" 126 "a=ssrc:4227871655 mslabel:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4\r\n" 127 "a=ssrc:4227871655 label:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4a0\r\n" 128 "a=mid:0\r\n"; 129 130 static const char kAudioSdpWithUnsupportedCodecsPlanB[] = 131 "v=0\r\n" 132 "o=- 6858750541 2 IN IP4 192.168.30.208\r\n" 133 "s=-\r\n" 134 "c=IN IP4 192.168.30.208\r\n" 135 "t=0 0\r\n" 136 "m=audio 16000 RTP/SAVPF 0 8 109 110 126\r\n" 137 "a=rtpmap:0 PCMU/8000\r\n" 138 "a=rtpmap:8 PCMA/8000\r\n" 139 "a=rtpmap:109 WeirdCodec1/8000\r\n" 140 "a=rtpmap:110 WeirdCodec2/8000\r\n" 141 "a=rtpmap:126 telephone-event/8000\r\n" 142 "a=sendonly\r\n" 143 "a=rtcp:16000 IN IP4 192.168.30.208\r\n" 144 "a=rtcp-mux\r\n" 145 "a=crypto:0 AES_CM_128_HMAC_SHA1_80 " 146 "inline:tvKIFjbMQ7W0/C2RzhwN0oQglj/7GJg+frdsNRxt\r\n" 147 "a=ice-ufrag:AI2sRT3r\r\n" 148 "a=ice-pwd:lByS9z2RSQlSE9XurlvjYmEm\r\n" 149 "a=ssrc:4227871655 cname:TsmD02HRfhkJBm4m\r\n" 150 "a=ssrc:4227871655 msid:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3 a0\r\n" 151 "a=ssrc:4227871655 mslabel:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3\r\n" 152 "a=ssrc:4227871655 label:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3a0\r\n" 153 "a=mid:audio\r\n"; 154 // Same string as above but with the MID changed to the Unified Plan default. 155 // This is needed so that this SDP can be used as an answer for a Unified Plan 156 // offer. 157 static const char kAudioSdpWithUnsupportedCodecsUnifiedPlan[] = 158 "v=0\r\n" 159 "o=- 6858750541 2 IN IP4 192.168.30.208\r\n" 160 "s=-\r\n" 161 "c=IN IP4 192.168.30.208\r\n" 162 "t=0 0\r\n" 163 "m=audio 16000 RTP/SAVPF 0 8 109 110 126\r\n" 164 "a=rtpmap:0 PCMU/8000\r\n" 165 "a=rtpmap:8 PCMA/8000\r\n" 166 "a=rtpmap:109 WeirdCodec1/8000\r\n" 167 "a=rtpmap:110 WeirdCodec2/8000\r\n" 168 "a=rtpmap:126 telephone-event/8000\r\n" 169 "a=sendonly\r\n" 170 "a=rtcp:16000 IN IP4 192.168.30.208\r\n" 171 "a=rtcp-mux\r\n" 172 "a=crypto:0 AES_CM_128_HMAC_SHA1_80 " 173 "inline:tvKIFjbMQ7W0/C2RzhwN0oQglj/7GJg+frdsNRxt\r\n" 174 "a=ice-ufrag:AI2sRT3r\r\n" 175 "a=ice-pwd:lByS9z2RSQlSE9XurlvjYmEm\r\n" 176 "a=ssrc:4227871655 cname:TsmD02HRfhkJBm4m\r\n" 177 "a=ssrc:4227871655 msid:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3 a0\r\n" 178 "a=ssrc:4227871655 mslabel:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3\r\n" 179 "a=ssrc:4227871655 label:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3a0\r\n" 180 "a=mid:0\r\n"; 181 182 } // namespace webrtc 183 184 #endif // PC_TEST_TEST_SDP_STRINGS_H_ 185