blob: 4b1e78cef3e8a8b8f451940a78ab4405087ac8e2 [file] [log] [blame]
Neels Hofmeyra1756f32016-05-20 21:59:55 +02001
2===== test_crcx =====
3composed:
4-----
5CRCX 1 17@mgw MGCP 1.0
6C: 2a
7L: p:20, a:AMR, nt:IN
8M: loopback
9
10-----
11composed response:
12-----
13200 1 OK
Neels Hofmeyrb1bb1fa2018-09-03 21:07:26 +020014I: 1
15
Neels Hofmeyra1756f32016-05-20 21:59:55 +020016v=0
17o=- 1 23 IN IP4 10.9.1.120
18s=-
19c=IN IP4 10.9.1.120
20t=0 0
Philipp Maier704c4f02018-06-07 18:51:31 +020021m=audio 16002 RTP/AVP 110 96
22a=rtpmap:110 AMR/8000
23a=rtpmap:96 GSM-EFR/8000
Neels Hofmeyra1756f32016-05-20 21:59:55 +020024a=ptime:20
25
26-----
27response cb received:
28 head.response_code = 200
29 head.trans_id = 1
30 head.comment = OK
31 audio_port = 16002
Philipp Maier06da85e2017-10-05 18:49:24 +020032 audio_ip = 10.9.1.120
Philipp Maier704c4f02018-06-07 18:51:31 +020033 ptime = 20
34 codecs_len = 2
35 codecs[0] = 112
36 codecs[1] = 110
37 ptmap_len = 2
38 ptmap[0].codec = 112
39 ptmap[0].pt = 110
40 ptmap[1].codec = 110
41 ptmap[1].pt = 96
Philipp Maier1dc6be62017-10-05 18:25:37 +020042
43Generated CRCX message:
44CRCX 1 23@mgw MGCP 1.0
45C: 2f
46I: 11
Philipp Maier704c4f02018-06-07 18:51:31 +020047L: p:20, a:GSM, nt:IN
48M: sendrecv
49
50Generated CRCX message (two codecs):
51CRCX 2 23@mgw MGCP 1.0
52C: 2f
53I: 11
54L: p:20, a:GSM;AMR, nt:IN
55M: sendrecv
56
57Generated CRCX message (three codecs, one with custom pt):
58CRCX 3 23@mgw MGCP 1.0
59C: 2f
60I: 11
61L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
Philipp Maier1dc6be62017-10-05 18:25:37 +020062M: sendrecv
63
64Generated MDCX message:
Philipp Maier704c4f02018-06-07 18:51:31 +020065MDCX 4 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +020066C: 2f
67I: 11
68M: sendrecv
69
Philipp Maier9d25d7a2018-01-22 17:31:10 +010070v=0
Philipp Maier9d25d7a2018-01-22 17:31:10 +010071o=- 2f 23 IN IP4 127.0.0.1
Philipp Maierb7594732018-01-31 16:44:00 +010072s=-
Philipp Maier1dc6be62017-10-05 18:25:37 +020073c=IN IP4 192.168.100.23
Philipp Maier9d25d7a2018-01-22 17:31:10 +010074t=0 0
Philipp Maier704c4f02018-06-07 18:51:31 +020075m=audio 1234 RTP/AVP 3
76a=ptime:20
77
78Generated MDCX message (two codecs):
79MDCX 5 23@mgw MGCP 1.0
80C: 2f
81I: 11
82M: sendrecv
83
84v=0
85o=- 2f 23 IN IP4 127.0.0.1
86s=-
87c=IN IP4 192.168.100.23
88t=0 0
89m=audio 1234 RTP/AVP 3 112
90a=rtpmap:112 AMR/8000/1
91a=ptime:20
92
93Generated MDCX message (three codecs, one with custom pt):
94MDCX 6 23@mgw MGCP 1.0
95C: 2f
96I: 11
97M: sendrecv
98
99v=0
100o=- 2f 23 IN IP4 127.0.0.1
101s=-
102c=IN IP4 192.168.100.23
103t=0 0
104m=audio 1234 RTP/AVP 3 112 96
105a=rtpmap:112 AMR/8000/1
106a=rtpmap:96 GSM-EFR/8000/1
107a=ptime:20
Philipp Maier1dc6be62017-10-05 18:25:37 +0200108
109Generated DLCX message:
Philipp Maier704c4f02018-06-07 18:51:31 +0200110DLCX 7 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +0200111C: 2f
112I: 11
113
114Generated AUEP message:
Philipp Maier704c4f02018-06-07 18:51:31 +0200115AUEP 8 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +0200116
117Generated RSIP message:
Philipp Maier704c4f02018-06-07 18:51:31 +0200118RSIP 9 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +0200119
Neels Hofmeyre6d8e912018-08-23 16:36:48 +0200120Generate X-Osmo-IGN message:
121CRCX 11 23@mgw MGCP 1.0
122C: 2f
123I: 11
124L: p:20, a:GSM, nt:IN
125M: sendrecv
126X-Osmo-IGN: C
127
Philipp Maier1dc6be62017-10-05 18:25:37 +0200128Overfolow test:
129
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100130
131test_mgcp_client_cancel():
132composed:
133-----
134CRCX 1 23@mgw MGCP 1.0
135C: 2f
136I: 11
137L: p:20, a:AMR, nt:IN
138M: sendrecv
139
140-----
141composed response:
142-----
143200 1 OK
Neels Hofmeyrb1bb1fa2018-09-03 21:07:26 +0200144I: 1
145
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100146v=0
147
148-----
Neels Hofmeyra8c6a9c2018-02-21 15:36:45 +0100149
150test_sdp_section_start() test [0]:
151
152test_sdp_section_start() test [1]:
153
154test_sdp_section_start() test [2]:
155
156test_sdp_section_start() test [3]:
157
158test_sdp_section_start() test [4]:
159
160test_sdp_section_start() test [5]:
161
162test_sdp_section_start() test [6]:
163
164test_sdp_section_start() test [7]:
165
166test_sdp_section_start() test [8]:
167
168test_sdp_section_start() test [9]:
Philipp Maier704c4f02018-06-07 18:51:31 +0200169 110 => 96
170 111 => 97
171 112 => 98
172 113 => 99
173 96 <= 110
174 97 <= 111
175 98 <= 112
176 99 <= 113
177
178 0 => 0
179 3 => 3
180 8 => 8
181 18 => 18
182 0 <= 0
183 3 <= 3
184 8 <= 8
185 18 <= 18
186
187 110 => 96
188 111 => 97
189 112 => 98
190 113 => 113
191 0 => 0
192 96 <= 110
193 97 <= 111
194 98 <= 112
195 2 <= 2
196 100 <= 100
197
Neels Hofmeyra1756f32016-05-20 21:59:55 +0200198Done