Neels Hofmeyr | a1756f3 | 2016-05-20 21:59:55 +0200 | [diff] [blame] | 1 | |
| 2 | ===== test_crcx ===== |
| 3 | composed: |
| 4 | ----- |
| 5 | CRCX 1 17@mgw MGCP 1.0
|
| 6 | C: 2a
|
| 7 | L: p:20, a:AMR, nt:IN
|
| 8 | M: loopback
|
| 9 | |
| 10 | ----- |
| 11 | composed response: |
| 12 | ----- |
| 13 | 200 1 OK
|
Neels Hofmeyr | b1bb1fa | 2018-09-03 21:07:26 +0200 | [diff] [blame] | 14 | I: 1
|
| 15 |
|
Neels Hofmeyr | a1756f3 | 2016-05-20 21:59:55 +0200 | [diff] [blame] | 16 | v=0
|
| 17 | o=- 1 23 IN IP4 10.9.1.120
|
| 18 | s=-
|
| 19 | c=IN IP4 10.9.1.120
|
| 20 | t=0 0
|
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 21 | m=audio 16002 RTP/AVP 110 96
|
| 22 | a=rtpmap:110 AMR/8000
|
| 23 | a=rtpmap:96 GSM-EFR/8000
|
Neels Hofmeyr | a1756f3 | 2016-05-20 21:59:55 +0200 | [diff] [blame] | 24 | a=ptime:20
|
| 25 | |
| 26 | ----- |
| 27 | response cb received: |
| 28 | head.response_code = 200 |
| 29 | head.trans_id = 1 |
Neels Hofmeyr | 40f5033 | 2018-09-03 21:12:48 +0200 | [diff] [blame] | 30 | head.conn_id = 1 |
Neels Hofmeyr | a1756f3 | 2016-05-20 21:59:55 +0200 | [diff] [blame] | 31 | head.comment = OK |
| 32 | audio_port = 16002 |
Philipp Maier | 06da85e | 2017-10-05 18:49:24 +0200 | [diff] [blame] | 33 | audio_ip = 10.9.1.120 |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 34 | 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 Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 43 | |
| 44 | Generated CRCX message: |
| 45 | CRCX 1 23@mgw MGCP 1.0
|
| 46 | C: 2f
|
| 47 | I: 11
|
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 48 | L: p:20, a:GSM, nt:IN
|
| 49 | M: sendrecv
|
| 50 | |
| 51 | Generated CRCX message (two codecs): |
| 52 | CRCX 2 23@mgw MGCP 1.0
|
| 53 | C: 2f
|
| 54 | I: 11
|
| 55 | L: p:20, a:GSM;AMR, nt:IN
|
| 56 | M: sendrecv
|
| 57 | |
| 58 | Generated CRCX message (three codecs, one with custom pt): |
| 59 | CRCX 3 23@mgw MGCP 1.0
|
| 60 | C: 2f
|
| 61 | I: 11
|
| 62 | L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 63 | M: sendrecv
|
| 64 | |
| 65 | Generated MDCX message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 66 | MDCX 4 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 67 | C: 2f
|
| 68 | I: 11
|
| 69 | M: sendrecv
|
| 70 |
|
Philipp Maier | 9d25d7a | 2018-01-22 17:31:10 +0100 | [diff] [blame] | 71 | v=0
|
Philipp Maier | 9d25d7a | 2018-01-22 17:31:10 +0100 | [diff] [blame] | 72 | o=- 2f 23 IN IP4 127.0.0.1
|
Philipp Maier | b759473 | 2018-01-31 16:44:00 +0100 | [diff] [blame] | 73 | s=-
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 74 | c=IN IP4 192.168.100.23
|
Philipp Maier | 9d25d7a | 2018-01-22 17:31:10 +0100 | [diff] [blame] | 75 | t=0 0
|
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 76 | m=audio 1234 RTP/AVP 3
|
| 77 | a=ptime:20
|
| 78 | |
| 79 | Generated MDCX message (two codecs): |
| 80 | MDCX 5 23@mgw MGCP 1.0
|
| 81 | C: 2f
|
| 82 | I: 11
|
| 83 | M: sendrecv
|
| 84 |
|
| 85 | v=0
|
| 86 | o=- 2f 23 IN IP4 127.0.0.1
|
| 87 | s=-
|
| 88 | c=IN IP4 192.168.100.23
|
| 89 | t=0 0
|
| 90 | m=audio 1234 RTP/AVP 3 112
|
| 91 | a=rtpmap:112 AMR/8000/1
|
| 92 | a=ptime:20
|
| 93 | |
| 94 | Generated MDCX message (three codecs, one with custom pt): |
| 95 | MDCX 6 23@mgw MGCP 1.0
|
| 96 | C: 2f
|
| 97 | I: 11
|
| 98 | M: sendrecv
|
| 99 |
|
| 100 | v=0
|
| 101 | o=- 2f 23 IN IP4 127.0.0.1
|
| 102 | s=-
|
| 103 | c=IN IP4 192.168.100.23
|
| 104 | t=0 0
|
| 105 | m=audio 1234 RTP/AVP 3 112 96
|
| 106 | a=rtpmap:112 AMR/8000/1
|
| 107 | a=rtpmap:96 GSM-EFR/8000/1
|
| 108 | a=ptime:20
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 109 | |
| 110 | Generated DLCX message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 111 | DLCX 7 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 112 | C: 2f
|
| 113 | I: 11
|
| 114 | |
| 115 | Generated AUEP message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 116 | AUEP 8 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 117 | |
| 118 | Generated RSIP message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 119 | RSIP 9 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 120 | |
Neels Hofmeyr | e6d8e91 | 2018-08-23 16:36:48 +0200 | [diff] [blame] | 121 | Generate X-Osmo-IGN message: |
| 122 | CRCX 11 23@mgw MGCP 1.0
|
| 123 | C: 2f
|
| 124 | I: 11
|
| 125 | L: p:20, a:GSM, nt:IN
|
| 126 | M: sendrecv
|
| 127 | X-Osmo-IGN: C
|
| 128 | |
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 129 | Overfolow test: |
| 130 | |
Neels Hofmeyr | c8f37cb | 2017-11-30 13:43:11 +0100 | [diff] [blame] | 131 | |
| 132 | test_mgcp_client_cancel(): |
| 133 | composed: |
| 134 | ----- |
| 135 | CRCX 1 23@mgw MGCP 1.0
|
| 136 | C: 2f
|
| 137 | I: 11
|
| 138 | L: p:20, a:AMR, nt:IN
|
| 139 | M: sendrecv
|
| 140 | |
| 141 | ----- |
| 142 | composed response: |
| 143 | ----- |
| 144 | 200 1 OK
|
Neels Hofmeyr | b1bb1fa | 2018-09-03 21:07:26 +0200 | [diff] [blame] | 145 | I: 1
|
| 146 |
|
Neels Hofmeyr | c8f37cb | 2017-11-30 13:43:11 +0100 | [diff] [blame] | 147 | v=0
|
| 148 | |
| 149 | ----- |
Neels Hofmeyr | a8c6a9c | 2018-02-21 15:36:45 +0100 | [diff] [blame] | 150 | |
| 151 | test_sdp_section_start() test [0]: |
| 152 | |
| 153 | test_sdp_section_start() test [1]: |
| 154 | |
| 155 | test_sdp_section_start() test [2]: |
| 156 | |
| 157 | test_sdp_section_start() test [3]: |
| 158 | |
| 159 | test_sdp_section_start() test [4]: |
| 160 | |
| 161 | test_sdp_section_start() test [5]: |
| 162 | |
| 163 | test_sdp_section_start() test [6]: |
| 164 | |
| 165 | test_sdp_section_start() test [7]: |
| 166 | |
| 167 | test_sdp_section_start() test [8]: |
| 168 | |
| 169 | test_sdp_section_start() test [9]: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 170 | 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 Hofmeyr | 10d487e | 2018-09-03 21:13:01 +0200 | [diff] [blame] | 199 | |
| 200 | ===== test_crcx_long_conn_id ===== |
| 201 | composed: |
| 202 | ----- |
| 203 | CRCX 1 17@mgw MGCP 1.0
|
| 204 | C: 2a
|
| 205 | L: p:20, a:AMR, nt:IN
|
| 206 | M: loopback
|
| 207 | |
| 208 | ----- |
| 209 | composed response: |
| 210 | ----- |
| 211 | 200 1 OK
|
| 212 | I: 123456789abcdef0123456789ABCDEF0
|
| 213 |
|
| 214 | v=0
|
| 215 | o=- 1 23 IN IP4 10.9.1.120
|
| 216 | s=-
|
| 217 | c=IN IP4 10.9.1.120
|
| 218 | t=0 0
|
| 219 | m=audio 16002 RTP/AVP 110 96
|
| 220 | a=rtpmap:110 AMR/8000
|
| 221 | a=rtpmap:96 GSM-EFR/8000
|
| 222 | a=ptime:20
|
| 223 | |
| 224 | ----- |
| 225 | response cb received: |
| 226 | head.response_code = 200 |
| 227 | head.trans_id = 1 |
| 228 | head.conn_id = 123456789abcdef0123456789ABCDEF0 |
| 229 | head.comment = OK |
| 230 | audio_port = 16002 |
| 231 | audio_ip = 10.9.1.120 |
| 232 | ptime = 20 |
| 233 | codecs_len = 2 |
| 234 | codecs[0] = 112 |
| 235 | codecs[1] = 110 |
| 236 | ptmap_len = 2 |
| 237 | ptmap[0].codec = 112 |
| 238 | ptmap[0].pt = 110 |
| 239 | ptmap[1].codec = 110 |
| 240 | ptmap[1].pt = 96 |
| 241 | |
| 242 | ===== test_crcx_too_long_conn_id ===== |
| 243 | composed: |
| 244 | ----- |
| 245 | CRCX 1 17@mgw MGCP 1.0
|
| 246 | C: 2a
|
| 247 | L: p:20, a:AMR, nt:IN
|
| 248 | M: loopback
|
| 249 | |
| 250 | ----- |
| 251 | composed response: |
| 252 | ----- |
| 253 | 200 1 OK
|
| 254 | I: 123456789abcdef0123456789ABCDEF01001029
|
| 255 |
|
| 256 | v=0
|
| 257 | o=- 1 23 IN IP4 10.9.1.120
|
| 258 | s=-
|
| 259 | c=IN IP4 10.9.1.120
|
| 260 | t=0 0
|
| 261 | m=audio 16002 RTP/AVP 110 96
|
| 262 | a=rtpmap:110 AMR/8000
|
| 263 | a=rtpmap:96 GSM-EFR/8000
|
| 264 | a=ptime:20
|
| 265 | |
| 266 | ----- |
Neels Hofmeyr | a1756f3 | 2016-05-20 21:59:55 +0200 | [diff] [blame] | 267 | Done |