blob: 8fbe3ae4f6d38977f86eaf4dfaaef55975153748 [file] [log] [blame]
Neels Hofmeyra1756f32016-05-20 21:59:55 +02001
Philipp Maier1dc6be62017-10-05 18:25:37 +02002Generated CRCX message:
3CRCX 1 23@mgw MGCP 1.0
4C: 2f
5I: 11
Philipp Maier704c4f02018-06-07 18:51:31 +02006L: p:20, a:GSM, nt:IN
7M: sendrecv
8
9Generated CRCX message (two codecs):
10CRCX 2 23@mgw MGCP 1.0
11C: 2f
12I: 11
13L: p:20, a:GSM;AMR, nt:IN
14M: sendrecv
15
16Generated CRCX message (three codecs, one with custom pt):
17CRCX 3 23@mgw MGCP 1.0
18C: 2f
19I: 11
20L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
Philipp Maier1dc6be62017-10-05 18:25:37 +020021M: sendrecv
22
23Generated MDCX message:
Philipp Maier704c4f02018-06-07 18:51:31 +020024MDCX 4 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +020025C: 2f
26I: 11
27M: sendrecv
28
Philipp Maier9d25d7a2018-01-22 17:31:10 +010029v=0
Philipp Maier9d25d7a2018-01-22 17:31:10 +010030o=- 2f 23 IN IP4 127.0.0.1
Philipp Maierb7594732018-01-31 16:44:00 +010031s=-
Philipp Maier1dc6be62017-10-05 18:25:37 +020032c=IN IP4 192.168.100.23
Philipp Maier9d25d7a2018-01-22 17:31:10 +010033t=0 0
Philipp Maier704c4f02018-06-07 18:51:31 +020034m=audio 1234 RTP/AVP 3
35a=ptime:20
36
37Generated MDCX message (two codecs):
38MDCX 5 23@mgw MGCP 1.0
39C: 2f
40I: 11
41M: sendrecv
42
43v=0
44o=- 2f 23 IN IP4 127.0.0.1
45s=-
46c=IN IP4 192.168.100.23
47t=0 0
48m=audio 1234 RTP/AVP 3 112
49a=rtpmap:112 AMR/8000/1
50a=ptime:20
51
52Generated MDCX message (three codecs, one with custom pt):
53MDCX 6 23@mgw MGCP 1.0
54C: 2f
55I: 11
56M: sendrecv
57
58v=0
59o=- 2f 23 IN IP4 127.0.0.1
60s=-
61c=IN IP4 192.168.100.23
62t=0 0
63m=audio 1234 RTP/AVP 3 112 96
64a=rtpmap:112 AMR/8000/1
65a=rtpmap:96 GSM-EFR/8000/1
66a=ptime:20
Philipp Maier1dc6be62017-10-05 18:25:37 +020067
68Generated DLCX message:
Philipp Maier704c4f02018-06-07 18:51:31 +020069DLCX 7 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +020070C: 2f
71I: 11
72
73Generated AUEP message:
Philipp Maier704c4f02018-06-07 18:51:31 +020074AUEP 8 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +020075
76Generated RSIP message:
Philipp Maier704c4f02018-06-07 18:51:31 +020077RSIP 9 23@mgw MGCP 1.0
Philipp Maier1dc6be62017-10-05 18:25:37 +020078
Neels Hofmeyre6d8e912018-08-23 16:36:48 +020079Generate X-Osmo-IGN message:
80CRCX 11 23@mgw MGCP 1.0
81C: 2f
82I: 11
83L: p:20, a:GSM, nt:IN
84M: sendrecv
85X-Osmo-IGN: C
86
Pau Espin Pedrol900cd652019-04-24 22:06:22 +020087Generate X-Osmo-Osmux message:
88CRCX 13 23@mgw MGCP 1.0
89C: 2f
90I: 11
91L: p:20, a:GSM, nt:IN
92M: sendrecv
93X-Osmux: *
94
95Generate X-Osmo-Osmux message (fixed CID 2):
96CRCX 15 23@mgw MGCP 1.0
97C: 2f
98I: 11
99L: p:20, a:GSM, nt:IN
100M: sendrecv
101X-Osmux: 2
102
Philipp Maier1dc6be62017-10-05 18:25:37 +0200103Overfolow test:
104
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100105
106test_mgcp_client_cancel():
107composed:
108-----
109CRCX 1 23@mgw MGCP 1.0
110C: 2f
111I: 11
112L: p:20, a:AMR, nt:IN
113M: sendrecv
114
115-----
116composed response:
117-----
118200 1 OK
Neels Hofmeyrb1bb1fa2018-09-03 21:07:26 +0200119I: 1
120
Neels Hofmeyrc8f37cb2017-11-30 13:43:11 +0100121v=0
122
123-----
Neels Hofmeyra8c6a9c2018-02-21 15:36:45 +0100124
125test_sdp_section_start() test [0]:
126
127test_sdp_section_start() test [1]:
128
129test_sdp_section_start() test [2]:
130
131test_sdp_section_start() test [3]:
132
133test_sdp_section_start() test [4]:
134
135test_sdp_section_start() test [5]:
136
137test_sdp_section_start() test [6]:
138
139test_sdp_section_start() test [7]:
140
141test_sdp_section_start() test [8]:
142
143test_sdp_section_start() test [9]:
Philipp Maier704c4f02018-06-07 18:51:31 +0200144 110 => 96
145 111 => 97
146 112 => 98
147 113 => 99
148 96 <= 110
149 97 <= 111
150 98 <= 112
151 99 <= 113
152
153 0 => 0
154 3 => 3
155 8 => 8
156 18 => 18
157 0 <= 0
158 3 <= 3
159 8 <= 8
160 18 <= 18
161
162 110 => 96
163 111 => 97
164 112 => 98
165 113 => 113
166 0 => 0
167 96 <= 110
168 97 <= 111
169 98 <= 112
170 2 <= 2
171 100 <= 100
172
Neels Hofmeyra1756f32016-05-20 21:59:55 +0200173Done