blob: 454ee3d085e4f6c65d385d715a14c99750012845 [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
14I: 1
15
16v=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
120Overfolow test:
121
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100122
123test_mgcp_client_cancel():
124composed:
125-----
126CRCX 1 23@mgw MGCP 1.0
127C: 2f
128I: 11
129L: p:20, a:AMR, nt:IN
130M: sendrecv
131
132-----
133composed response:
134-----
135200 1 OK
136I: 1
137
138v=0
139
140-----
Neels Hofmeyra8c6a9c2018-02-21 15:36:45 +0100141
142test_sdp_section_start() test [0]:
143
144test_sdp_section_start() test [1]:
145
146test_sdp_section_start() test [2]:
147
148test_sdp_section_start() test [3]:
149
150test_sdp_section_start() test [4]:
151
152test_sdp_section_start() test [5]:
153
154test_sdp_section_start() test [6]:
155
156test_sdp_section_start() test [7]:
157
158test_sdp_section_start() test [8]:
159
160test_sdp_section_start() test [9]:
Philipp Maier704c4f02018-06-07 18:51:31 +0200161 110 => 96
162 111 => 97
163 112 => 98
164 113 => 99
165 96 <= 110
166 97 <= 111
167 98 <= 112
168 99 <= 113
169
170 0 => 0
171 3 => 3
172 8 => 8
173 18 => 18
174 0 <= 0
175 3 <= 3
176 8 <= 8
177 18 <= 18
178
179 110 => 96
180 111 => 97
181 112 => 98
182 113 => 113
183 0 => 0
184 96 <= 110
185 97 <= 111
186 98 <= 112
187 2 <= 2
188 100 <= 100
189
Neels Hofmeyra1756f32016-05-20 21:59:55 +0200190Done