Просмотр исходного кода

test: add telephone-event fmtp line to test case

to test the mapping of fmtp lines which are not key=value pairs
master
Philipp Hancke 5 лет назад
Родитель
Сommit
ad7fcf5dfd
1 измененных файлов: 5 добавлений и 1 удалений
  1. 5
    1
      modules/xmpp/SDP.spec.js

+ 5
- 1
modules/xmpp/SDP.spec.js Просмотреть файл

@@ -22,6 +22,7 @@ describe('SDP', () => {
22 22
             'c=IN IP4 0.0.0.0\r\n',
23 23
             'a=rtpmap:111 opus/48000/2\r\n',
24 24
             'a=rtpmap:126 telephone-event/8000\r\n',
25
+            'a=fmtp:126 0-15\r\n',
25 26
             'a=fmtp:111 minptime=10;useinbandfec=1\r\n',
26 27
             'a=rtcp:9 IN IP4 0.0.0.0\r\n',
27 28
             'a=setup:active\r\n',
@@ -114,7 +115,9 @@ describe('SDP', () => {
114 115
             </payload-type>
115 116
             <payload-type clockrate='16000' name='ISAC' id='103'/>
116 117
             <payload-type clockrate='32000' name='ISAC' id='104'/>
117
-            <payload-type clockrate='8000' name='telephone-event' id='126'/>
118
+            <payload-type clockrate='8000' name='telephone-event' id='126'>
119
+                <parameter name="" value="0-15"/>
120
+            </payload-type>
118 121
             <rtp-hdrext uri='urn:ietf:params:rtp-hdrext:ssrc-audio-level' id='1' xmlns='urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'/>
119 122
             <rtp-hdrext uri='http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01' id='5' xmlns='urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'/>
120 123
             <rtcp-mux/>
@@ -189,6 +192,7 @@ a=rtcp-fb:111 transport-cc
189 192
 a=rtpmap:103 ISAC/16000
190 193
 a=rtpmap:104 ISAC/32000
191 194
 a=rtpmap:126 telephone-event/8000
195
+a=fmtp:126 0-15
192 196
 a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
193 197
 a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
194 198
 a=candidate:1 1 udp 2130706431 10.0.0.1 10000 typ host generation 0

Загрузка…
Отмена
Сохранить