blob: 5e14219e91d5d68f023eab14d97aa13025ed61d9 [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
Neels Hofmeyr40f50332018-09-03 21:12:48 +020030 head.conn_id = 1
Neels Hofmeyra1756f32016-05-20 21:59:55 +020031 head.comment = OK
32 audio_port = 16002
Philipp Maier06da85e2017-10-05 18:49:24 +020033 audio_ip = 10.9.1.120
Philipp Maier704c4f02018-06-07 18:51:31 +020034 ptime = 20
35 codecs_len = 2
36 codecs[0] = 112
37 codecs[1] = 110
38 ptmap_len = 2
39 ptmap[0].codec = 112
40 ptmap[0].pt = 110
41 ptmap[1].codec = 110
42 ptmap[1].pt = 96
Philipp Maier1dc6be62017-10-05 18:25:37 +020043
44Generated CRCX message:
45CRCX 1 23@mgw MGCP 1.0
46C: 2f
47I: 11
Philipp Maier704c4f02018-06-07 18:51:31 +020048L: p:20, a:GSM, nt:IN
49M: sendrecv
50
51Generated CRCX message (two codecs):
52CRCX 2 23@mgw MGCP 1.0
53C: 2f
54I: 11
55L: p:20, a:GSM;AMR, nt:IN
56M: sendrecv
57
58Generated CRCX message (three codecs, one with custom pt):
59CRCX 3 23@mgw MGCP 1.0
60C: 2f
61I: 11
62L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
Philipp Maier1dc6be62017-10-05 18:25:37 +020063M: sendrecv
64
65Generated MDCX message:
Philipp Maier704c4f02018-06-07 18:51:31 +020066MDCX 4 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +020067C: 2f
68I: 11
69M: sendrecv
70
Philipp Maier9d25d7a2018-01-22 17:31:10 +010071v=0
Philipp Maier9d25d7a2018-01-22 17:31:10 +010072o=- 2f 23 IN IP4 127.0.0.1
Philipp Maierb7594732018-01-31 16:44:00 +010073s=-
Philipp Maier1dc6be62017-10-05 18:25:37 +020074c=IN IP4 192.168.100.23
Philipp Maier9d25d7a2018-01-22 17:31:10 +010075t=0 0
Philipp Maier704c4f02018-06-07 18:51:31 +020076m=audio 1234 RTP/AVP 3
77a=ptime:20
78
79Generated MDCX message (two codecs):
80MDCX 5 23@mgw MGCP 1.0
81C: 2f
82I: 11
83M: sendrecv
84
85v=0
86o=- 2f 23 IN IP4 127.0.0.1
87s=-
88c=IN IP4 192.168.100.23
89t=0 0
90m=audio 1234 RTP/AVP 3 112
91a=rtpmap:112 AMR/8000/1
92a=ptime:20
93
94Generated MDCX message (three codecs, one with custom pt):
95MDCX 6 23@mgw MGCP 1.0
96C: 2f
97I: 11
98M: sendrecv
99
100v=0
101o=- 2f 23 IN IP4 127.0.0.1
102s=-
103c=IN IP4 192.168.100.23
104t=0 0
105m=audio 1234 RTP/AVP 3 112 96
106a=rtpmap:112 AMR/8000/1
107a=rtpmap:96 GSM-EFR/8000/1
108a=ptime:20
Philipp Maier1dc6be62017-10-05 18:25:37 +0200109
110Generated DLCX message:
Philipp Maier704c4f02018-06-07 18:51:31 +0200111DLCX 7 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +0200112C: 2f
113I: 11
114
115Generated AUEP message:
Philipp Maier704c4f02018-06-07 18:51:31 +0200116AUEP 8 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +0200117
118Generated RSIP message:
Philipp Maier704c4f02018-06-07 18:51:31 +0200119RSIP 9 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +0200120
Neels Hofmeyre6d8e912018-08-23 16:36:48 +0200121Generate X-Osmo-IGN message:
122CRCX 11 23@mgw MGCP 1.0
123C: 2f
124I: 11
125L: p:20, a:GSM, nt:IN
126M: sendrecv
127X-Osmo-IGN: C
128
Philipp Maier1dc6be62017-10-05 18:25:37 +0200129Overfolow test:
130
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100131
132test_mgcp_client_cancel():
133composed:
134-----
135CRCX 1 23@mgw MGCP 1.0
136C: 2f
137I: 11
138L: p:20, a:AMR, nt:IN
139M: sendrecv
140
141-----
142composed response:
143-----
144200 1 OK
Neels Hofmeyrb1bb1fa2018-09-03 21:07:26 +0200145I: 1
146
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100147v=0
148
149-----
Neels Hofmeyra8c6a9c2018-02-21 15:36:45 +0100150
151test_sdp_section_start() test [0]:
152
153test_sdp_section_start() test [1]:
154
155test_sdp_section_start() test [2]:
156
157test_sdp_section_start() test [3]:
158
159test_sdp_section_start() test [4]:
160
161test_sdp_section_start() test [5]:
162
163test_sdp_section_start() test [6]:
164
165test_sdp_section_start() test [7]:
166
167test_sdp_section_start() test [8]:
168
169test_sdp_section_start() test [9]:
Philipp Maier704c4f02018-06-07 18:51:31 +0200170 110 => 96
171 111 => 97
172 112 => 98
173 113 => 99
174 96 <= 110
175 97 <= 111
176 98 <= 112
177 99 <= 113
178
179 0 => 0
180 3 => 3
181 8 => 8
182 18 => 18
183 0 <= 0
184 3 <= 3
185 8 <= 8
186 18 <= 18
187
188 110 => 96
189 111 => 97
190 112 => 98
191 113 => 113
192 0 => 0
193 96 <= 110
194 97 <= 111
195 98 <= 112
196 2 <= 2
197 100 <= 100
198
Neels Hofmeyra1756f32016-05-20 21:59:55 +0200199Done