Home | History | Annotate | Download | only in test
      1 /*
      2  * libjingle
      3  * Copyright 2012 Google Inc.
      4  *
      5  * Redistribution and use in source and binary forms, with or without
      6  * modification, are permitted provided that the following conditions are met:
      7  *
      8  *  1. Redistributions of source code must retain the above copyright notice,
      9  *     this list of conditions and the following disclaimer.
     10  *  2. Redistributions in binary form must reproduce the above copyright notice,
     11  *     this list of conditions and the following disclaimer in the documentation
     12  *     and/or other materials provided with the distribution.
     13  *  3. The name of the author may not be used to endorse or promote products
     14  *     derived from this software without specific prior written permission.
     15  *
     16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
     17  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     18  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
     19  * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     21  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     22  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     23  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     24  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     25  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26  */
     27 
     28 // This file contain SDP strings used for testing.
     29 
     30 #ifndef TALK_APP_WEBRTC_TEST_TESTSDPSTRINGS_H_
     31 #define TALK_APP_WEBRTC_TEST_TESTSDPSTRINGS_H_
     32 
     33 namespace webrtc {
     34 
     35 // SDP offer string from a Nightly FireFox build.
     36 static const char kFireFoxSdpOffer[] =
     37     "v=0\r\n"
     38     "o=Mozilla-SIPUA 23551 0 IN IP4 0.0.0.0\r\n"
     39     "s=SIP Call\r\n"
     40     "t=0 0\r\n"
     41     "a=ice-ufrag:e5785931\r\n"
     42     "a=ice-pwd:36fb7878390db89481c1d46daa4278d8\r\n"
     43     "a=fingerprint:sha-256 A7:24:72:CA:6E:02:55:39:BA:66:DF:6E:CC:4C:D8:B0:1A:"
     44     "BF:1A:56:65:7D:F4:03:AD:7E:77:43:2A:29:EC:93\r\n"
     45     "m=audio 36993 RTP/SAVPF 109 0 8 101\r\n"
     46     "c=IN IP4 74.95.2.170\r\n"
     47     "a=rtpmap:109 opus/48000/2\r\n"
     48     "a=ptime:20\r\n"
     49     "a=rtpmap:0 PCMU/8000\r\n"
     50     "a=rtpmap:8 PCMA/8000\r\n"
     51     "a=rtpmap:101 telephone-event/8000\r\n"
     52     "a=fmtp:101 0-15\r\n"
     53     "a=sendrecv\r\n"
     54     "a=candidate:0 1 UDP 2112946431 172.16.191.1 61725 typ host\r\n"
     55     "a=candidate:2 1 UDP 2112487679 172.16.131.1 58798 typ host\r\n"
     56     "a=candidate:4 1 UDP 2113667327 10.0.254.2 58122 typ host\r\n"
     57     "a=candidate:5 1 UDP 1694302207 74.95.2.170 36993 typ srflx raddr "
     58     "10.0.254.2 rport 58122\r\n"
     59     "a=candidate:0 2 UDP 2112946430 172.16.191.1 55025 typ host\r\n"
     60     "a=candidate:2 2 UDP 2112487678 172.16.131.1 63576 typ host\r\n"
     61     "a=candidate:4 2 UDP 2113667326 10.0.254.2 50962 typ host\r\n"
     62     "a=candidate:5 2 UDP 1694302206 74.95.2.170 41028 typ srflx raddr"
     63     " 10.0.254.2 rport 50962\r\n"
     64     "m=video 38826 RTP/SAVPF 120\r\n"
     65     "c=IN IP4 74.95.2.170\r\n"
     66     "a=rtpmap:120 VP8/90000\r\n"
     67     "a=sendrecv\r\n"
     68     "a=candidate:0 1 UDP 2112946431 172.16.191.1 62017 typ host\r\n"
     69     "a=candidate:2 1 UDP 2112487679 172.16.131.1 59741 typ host\r\n"
     70     "a=candidate:4 1 UDP 2113667327 10.0.254.2 62652 typ host\r\n"
     71     "a=candidate:5 1 UDP 1694302207 74.95.2.170 38826 typ srflx raddr"
     72     " 10.0.254.2 rport 62652\r\n"
     73     "a=candidate:0 2 UDP 2112946430 172.16.191.1 63440 typ host\r\n"
     74     "a=candidate:2 2 UDP 2112487678 172.16.131.1 51847 typ host\r\n"
     75     "a=candidate:4 2 UDP 2113667326 10.0.254.2 58890 typ host\r\n"
     76     "a=candidate:5 2 UDP 1694302206 74.95.2.170 33611 typ srflx raddr"
     77     " 10.0.254.2 rport 58890\r\n"
     78 #ifdef HAVE_SCTP
     79     "m=application 45536 SCTP/DTLS 5000\r\n"
     80     "c=IN IP4 74.95.2.170\r\n"
     81     "a=fmtp:5000 protocol=webrtc-datachannel;streams=16\r\n"
     82     "a=sendrecv\r\n"
     83     "a=candidate:0 1 UDP 2112946431 172.16.191.1 60248 typ host\r\n"
     84     "a=candidate:2 1 UDP 2112487679 172.16.131.1 55925 typ host\r\n"
     85     "a=candidate:4 1 UDP 2113667327 10.0.254.2 65268 typ host\r\n"
     86     "a=candidate:5 1 UDP 1694302207 74.95.2.170 45536 typ srflx raddr"
     87     " 10.0.254.2 rport 65268\r\n"
     88     "a=candidate:0 2 UDP 2112946430 172.16.191.1 49162 typ host\r\n"
     89     "a=candidate:2 2 UDP 2112487678 172.16.131.1 59635 typ host\r\n"
     90     "a=candidate:4 2 UDP 2113667326 10.0.254.2 61232 typ host\r\n"
     91     "a=candidate:5 2 UDP 1694302206 74.95.2.170 45468 typ srflx raddr"
     92     " 10.0.254.2 rport 61232\r\n"
     93 #endif
     94     ;
     95 
     96 // Audio SDP with a limited set of audio codecs.
     97 static const char kAudioSdp[] =
     98     "v=0\r\n"
     99     "o=- 7859371131 2 IN IP4 192.168.30.208\r\n"
    100     "s=-\r\n"
    101     "c=IN IP4 192.168.30.208\r\n"
    102     "t=0 0\r\n"
    103     "m=audio 16000 RTP/SAVPF 0 8 126\r\n"
    104     "a=rtpmap:0 PCMU/8000\r\n"
    105     "a=rtpmap:8 PCMA/8000\r\n"
    106     "a=rtpmap:126 telephone-event/8000\r\n"
    107     "a=sendrecv\r\n"
    108     "a=rtcp:16000 IN IP4 192.168.30.208\r\n"
    109     "a=rtcp-mux\r\n"
    110     "a=crypto:1 AES_CM_128_HMAC_SHA1_80 "
    111     "inline:tvKIFjbMQ7W0/C2RzhwN0oQglj/7GJg+frdsNRxt\r\n"
    112     "a=ice-ufrag:AI2sRT3r\r\n"
    113     "a=ice-pwd:lByS9z2RSQlSE9XurlvjYmEm\r\n"
    114     "a=ssrc:4227871655 cname:GeAAgb6XCPNLVMX5\r\n"
    115     "a=ssrc:4227871655 msid:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4 a0\r\n"
    116     "a=ssrc:4227871655 mslabel:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4\r\n"
    117     "a=ssrc:4227871655 label:1NFAV3iD08ioO2339rQS9pfOI9mDf6GeG9F4a0\r\n"
    118     "a=mid:audio\r\n";
    119 
    120 static const char kAudioSdpWithUnsupportedCodecs[] =
    121     "v=0\r\n"
    122     "o=- 6858750541 2 IN IP4 192.168.30.208\r\n"
    123     "s=-\r\n"
    124     "c=IN IP4 192.168.30.208\r\n"
    125     "t=0 0\r\n"
    126     "m=audio 16000 RTP/SAVPF 0 8 18 110 126\r\n"
    127     "a=rtpmap:0 PCMU/8000\r\n"
    128     "a=rtpmap:8 PCMA/8000\r\n"
    129     "a=rtpmap:18 WeirdCodec1/8000\r\n"
    130     "a=rtpmap:110 WeirdCodec2/8000\r\n"
    131     "a=rtpmap:126 telephone-event/8000\r\n"
    132     "a=sendonly\r\n"
    133     "a=rtcp:16000 IN IP4 192.168.30.208\r\n"
    134     "a=rtcp-mux\r\n"
    135     "a=crypto:1 AES_CM_128_HMAC_SHA1_80 "
    136     "inline:tvKIFjbMQ7W0/C2RzhwN0oQglj/7GJg+frdsNRxt\r\n"
    137     "a=ice-ufrag:AI2sRT3r\r\n"
    138     "a=ice-pwd:lByS9z2RSQlSE9XurlvjYmEm\r\n"
    139     "a=ssrc:4227871655 cname:TsmD02HRfhkJBm4m\r\n"
    140     "a=ssrc:4227871655 msid:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3 a0\r\n"
    141     "a=ssrc:4227871655 mslabel:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3\r\n"
    142     "a=ssrc:4227871655 label:7nU0TApbB-n4dfPlCplWT9QTEsbBDS1IlpW3a0\r\n"
    143     "a=mid:audio\r\n";
    144 
    145 }  // namespace webrtc
    146 
    147 #endif  // TALK_APP_WEBRTC_TEST_TESTSDPSTRINGS_H_
    148