Skip to content

Commit fe07cec

Browse files
committed
MT#55283 add tests to reject incompatible codecs
Change-Id: I55f1dad9480a991e512061f3ecaee00b865d9cad (cherry picked from commit 3e0bd2e) (cherry picked from commit 8125f29)
1 parent 9a55e04 commit fe07cec

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed

t/auto-daemon-tests.pl

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,130 @@ sub stun_succ {
8383

8484

8585

86+
new_call;
87+
88+
offer('mismatched G.729 annexb', { }, <<SDP);
89+
v=0
90+
o=- 13111259 1 IN IP4 1.2.3.4
91+
s=-
92+
c=IN IP4 1.2.3.4
93+
t=0 0
94+
m=audio 23874 RTP/AVP 9 8 0 18 100
95+
a=rtpmap:100 telephone-event/8000
96+
a=ptime:20
97+
----------------------------
98+
v=0
99+
o=- 13111259 1 IN IP4 1.2.3.4
100+
s=-
101+
t=0 0
102+
m=audio PORT RTP/AVP 9 8 0 18 100
103+
c=IN IP4 203.0.113.1
104+
a=rtpmap:9 G722/8000
105+
a=rtpmap:8 PCMA/8000
106+
a=rtpmap:0 PCMU/8000
107+
a=rtpmap:18 G729/8000
108+
a=rtpmap:100 telephone-event/8000
109+
a=sendrecv
110+
a=rtcp:PORT
111+
a=ptime:20
112+
SDP
113+
114+
answer('mismatched G.729 annexb', { }, <<SDP);
115+
v=0
116+
o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
117+
s=SIP call
118+
c=IN IP4 5.6.7.7
119+
t=0 0
120+
m=audio 49696 RTP/AVP 8 0 18 100
121+
a=rtpmap:8 PCMA/8000
122+
a=rtpmap:0 PCMU/8000
123+
a=rtpmap:18 G729/8000
124+
a=fmtp:18 annexb=no
125+
a=rtpmap:100 telephone-event/8000
126+
a=fmtp:100 0-11
127+
a=ptime:20
128+
a=maxptime:30
129+
a=sendrecv
130+
----------------------------
131+
v=0
132+
o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
133+
s=SIP call
134+
t=0 0
135+
m=audio PORT RTP/AVP 8 0 18 100
136+
c=IN IP4 203.0.113.1
137+
a=rtpmap:8 PCMA/8000
138+
a=rtpmap:0 PCMU/8000
139+
a=rtpmap:18 G729/8000
140+
a=fmtp:18 annexb=no
141+
a=rtpmap:100 telephone-event/8000
142+
a=fmtp:100 0-11
143+
a=sendrecv
144+
a=rtcp:PORT
145+
a=ptime:20
146+
a=maxptime:30
147+
SDP
148+
149+
new_call;
150+
151+
offer('actually mismatched G.729 annexb', { }, <<SDP);
152+
v=0
153+
o=- 13111259 1 IN IP4 1.2.3.4
154+
s=-
155+
c=IN IP4 1.2.3.4
156+
t=0 0
157+
m=audio 23874 RTP/AVP 9 8 0 18 100
158+
a=rtpmap:100 telephone-event/8000
159+
a=ptime:20
160+
----------------------------
161+
v=0
162+
o=- 13111259 1 IN IP4 1.2.3.4
163+
s=-
164+
t=0 0
165+
m=audio PORT RTP/AVP 9 8 0 18 100
166+
c=IN IP4 203.0.113.1
167+
a=rtpmap:9 G722/8000
168+
a=rtpmap:8 PCMA/8000
169+
a=rtpmap:0 PCMU/8000
170+
a=rtpmap:18 G729/8000
171+
a=rtpmap:100 telephone-event/8000
172+
a=sendrecv
173+
a=rtcp:PORT
174+
a=ptime:20
175+
SDP
176+
177+
answer('actually mismatched G.729 annexb', { }, <<SDP);
178+
v=0
179+
o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
180+
s=SIP call
181+
c=IN IP4 5.6.7.7
182+
t=0 0
183+
m=audio 49696 RTP/AVP 8 0 18 100
184+
a=rtpmap:8 PCMA/8000
185+
a=rtpmap:0 PCMU/8000
186+
a=rtpmap:18 G729/8000
187+
a=fmtp:18 annexb=yes
188+
a=rtpmap:100 telephone-event/8000
189+
a=fmtp:100 0-11
190+
a=ptime:20
191+
a=maxptime:30
192+
a=sendrecv
193+
----------------------------
194+
v=0
195+
o=- 1737116508926565 1737116508926565 IN IP4 5.6.7.7
196+
s=SIP call
197+
t=0 0
198+
m=audio PORT RTP/AVP 8 0 100
199+
c=IN IP4 203.0.113.1
200+
a=rtpmap:8 PCMA/8000
201+
a=rtpmap:0 PCMU/8000
202+
a=rtpmap:100 telephone-event/8000
203+
a=fmtp:100 0-11
204+
a=sendrecv
205+
a=rtcp:PORT
206+
a=ptime:20
207+
a=maxptime:30
208+
SDP
209+
86210
new_call;
87211

88212
offer('original sendrecv control', { }, <<SDP);

0 commit comments

Comments
 (0)