Ignore:
Timestamp:
Nov 8, 2019 10:17:16 AM (4 years ago)
Author:
nanang
Message:

Close #2088: Generate and negotiate telephone-event with multiple clock-rates in SDP offer/answer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/sdp_neg_test.c

    r5619 r6103  
    12461246    }, 
    12471247 
     1248    /* test 17: */ 
     1249    { 
     1250        /********************************************************************* 
     1251         * Ticket #2088: : Handle multiple telephone-event formats. 
     1252         */ 
     1253 
     1254        "Ticket #2088: Handle multiple telephone-event formats", 
     1255        2, 
     1256        { 
     1257          { 
     1258            REMOTE_OFFER, 
     1259            /* Bob sends offer: */ 
     1260            "v=0\r\n" 
     1261            "o=bob 2808844564 2808844563 IN IP4 host.biloxi.example.com\r\n" 
     1262            "s=bob\r\n" 
     1263            "c=IN IP4 host.biloxi.example.com\r\n" 
     1264            "t=0 0\r\n" 
     1265            "m=audio 3000 RTP/AVP 97 0 98 99\r\n" 
     1266            "a=rtpmap:97 Speex/16000\r\n" 
     1267            "a=rtpmap:0 PCMU/8000\r\n" 
     1268            "a=rtpmap:98 telephone-event/8000\r\n" 
     1269            "a=rtpmap:99 telephone-event/16000\r\n" 
     1270            "", 
     1271            /* Alice initial capability: */ 
     1272            "v=0\r\n" 
     1273            "o=alice 2890844526 2890844526 IN IP4 host.atlanta.example.com\r\n" 
     1274            "s=alice\r\n" 
     1275            "c=IN IP4 host.atlanta.example.com\r\n" 
     1276            "t=0 0\r\n" 
     1277            "m=audio 4000 RTP/AVP 0 100 96 98\r\n" 
     1278            "a=rtpmap:0 PCMU/8000\r\n" 
     1279            "a=rtpmap:100 Speex/16000\r\n" 
     1280            "a=rtpmap:96 telephone-event/8000\r\n" 
     1281            "a=rtpmap:98 telephone-event/16000\r\n" 
     1282            "", 
     1283            /* Alice's local SDP should be: */ 
     1284            "v=0\r\n" 
     1285            "o=alice 2890844526 2890844527 IN IP4 host.atlanta.example.com\r\n" 
     1286            "s=alice\r\n" 
     1287            "c=IN IP4 host.atlanta.example.com\r\n" 
     1288            "t=0 0\r\n" 
     1289            "m=audio 4000 RTP/AVP 97 99\r\n" 
     1290            "a=rtpmap:97 Speex/16000\r\n" 
     1291            "a=rtpmap:99 telephone-event/16000\r\n" 
     1292            "", 
     1293          }, 
     1294          { 
     1295            LOCAL_OFFER, 
     1296            /* Alice updates offer */ 
     1297            "v=0\r\n" 
     1298            "o=alice 2890844526 2890844528 IN IP4 host.atlanta.example.com\r\n" 
     1299            "s=alice\r\n" 
     1300            "c=IN IP4 host.atlanta.example.com\r\n" 
     1301            "t=0 0\r\n" 
     1302            "m=audio 4000 RTP/AVP 0 97 98 99\r\n" 
     1303            "a=rtpmap:0 PCMU/8000\r\n" 
     1304            "a=rtpmap:97 Speex/16000\r\n" 
     1305            "a=rtpmap:98 telephone-event/8000\r\n" 
     1306            "a=rtpmap:99 telephone-event/16000\r\n" 
     1307            "", 
     1308            /* Receive Bob's answer: */ 
     1309            "v=0\r\n" 
     1310            "o=bob 2808844564 2808844563 IN IP4 host.biloxi.example.com\r\n" 
     1311            "s=bob\r\n" 
     1312            "c=IN IP4 host.biloxi.example.com\r\n" 
     1313            "t=0 0\r\n" 
     1314            "m=audio 3000 RTP/AVP 99 100\r\n" 
     1315            "a=rtpmap:99 Speex/16000\r\n" 
     1316            "a=rtpmap:100 telephone-event/16000\r\n" 
     1317            "", 
     1318            /* Alice's local SDP should be: */ 
     1319            "v=0\r\n" 
     1320            "o=alice 2890844526 2890844528 IN IP4 host.atlanta.example.com\r\n" 
     1321            "s=alice\r\n" 
     1322            "c=IN IP4 host.atlanta.example.com\r\n" 
     1323            "t=0 0\r\n" 
     1324            "m=audio 4000 RTP/AVP 97 99\r\n" 
     1325            "a=rtpmap:97 Speex/16000\r\n" 
     1326            "a=rtpmap:99 telephone-event/16000\r\n" 
     1327            "", 
     1328          } 
     1329        } 
     1330    }, 
     1331 
    12481332}; 
    12491333 
Note: See TracChangeset for help on using the changeset viewer.