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
|
| 14 | I: 1 |
| 15 | |
| 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 |
| 30 | head.comment = OK |
| 31 | audio_port = 16002 |
Philipp Maier | 06da85e | 2017-10-05 18:49:24 +0200 | [diff] [blame] | 32 | audio_ip = 10.9.1.120 |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 33 | 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 Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 42 | |
| 43 | Generated CRCX message: |
| 44 | CRCX 1 23@mgw MGCP 1.0
|
| 45 | C: 2f
|
| 46 | I: 11
|
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 47 | L: p:20, a:GSM, nt:IN
|
| 48 | M: sendrecv
|
| 49 | |
| 50 | Generated CRCX message (two codecs): |
| 51 | CRCX 2 23@mgw MGCP 1.0
|
| 52 | C: 2f
|
| 53 | I: 11
|
| 54 | L: p:20, a:GSM;AMR, nt:IN
|
| 55 | M: sendrecv
|
| 56 | |
| 57 | Generated CRCX message (three codecs, one with custom pt): |
| 58 | CRCX 3 23@mgw MGCP 1.0
|
| 59 | C: 2f
|
| 60 | I: 11
|
| 61 | L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 62 | M: sendrecv
|
| 63 | |
| 64 | Generated MDCX message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 65 | MDCX 4 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 66 | C: 2f
|
| 67 | I: 11
|
| 68 | M: sendrecv
|
| 69 |
|
Philipp Maier | 9d25d7a | 2018-01-22 17:31:10 +0100 | [diff] [blame] | 70 | v=0
|
Philipp Maier | 9d25d7a | 2018-01-22 17:31:10 +0100 | [diff] [blame] | 71 | o=- 2f 23 IN IP4 127.0.0.1
|
Philipp Maier | b759473 | 2018-01-31 16:44:00 +0100 | [diff] [blame] | 72 | s=-
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 73 | c=IN IP4 192.168.100.23
|
Philipp Maier | 9d25d7a | 2018-01-22 17:31:10 +0100 | [diff] [blame] | 74 | t=0 0
|
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 75 | m=audio 1234 RTP/AVP 3
|
| 76 | a=ptime:20
|
| 77 | |
| 78 | Generated MDCX message (two codecs): |
| 79 | MDCX 5 23@mgw MGCP 1.0
|
| 80 | C: 2f
|
| 81 | I: 11
|
| 82 | M: sendrecv
|
| 83 |
|
| 84 | v=0
|
| 85 | o=- 2f 23 IN IP4 127.0.0.1
|
| 86 | s=-
|
| 87 | c=IN IP4 192.168.100.23
|
| 88 | t=0 0
|
| 89 | m=audio 1234 RTP/AVP 3 112
|
| 90 | a=rtpmap:112 AMR/8000/1
|
| 91 | a=ptime:20
|
| 92 | |
| 93 | Generated MDCX message (three codecs, one with custom pt): |
| 94 | MDCX 6 23@mgw MGCP 1.0
|
| 95 | C: 2f
|
| 96 | I: 11
|
| 97 | M: sendrecv
|
| 98 |
|
| 99 | v=0
|
| 100 | o=- 2f 23 IN IP4 127.0.0.1
|
| 101 | s=-
|
| 102 | c=IN IP4 192.168.100.23
|
| 103 | t=0 0
|
| 104 | m=audio 1234 RTP/AVP 3 112 96
|
| 105 | a=rtpmap:112 AMR/8000/1
|
| 106 | a=rtpmap:96 GSM-EFR/8000/1
|
| 107 | a=ptime:20
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 108 | |
| 109 | Generated DLCX message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 110 | DLCX 7 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 111 | C: 2f
|
| 112 | I: 11
|
| 113 | |
| 114 | Generated AUEP message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 115 | AUEP 8 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 116 | |
| 117 | Generated RSIP message: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 118 | RSIP 9 23@mgw MGCP 1.0
|
Philipp Maier | 1dc6be6 | 2017-10-05 18:25:37 +0200 | [diff] [blame] | 119 | |
| 120 | Overfolow test: |
| 121 | |
Neels Hofmeyr | c8f37cb | 2017-11-30 13:43:11 +0100 | [diff] [blame] | 122 | |
| 123 | test_mgcp_client_cancel(): |
| 124 | composed: |
| 125 | ----- |
| 126 | CRCX 1 23@mgw MGCP 1.0
|
| 127 | C: 2f
|
| 128 | I: 11
|
| 129 | L: p:20, a:AMR, nt:IN
|
| 130 | M: sendrecv
|
| 131 | |
| 132 | ----- |
| 133 | composed response: |
| 134 | ----- |
| 135 | 200 1 OK
|
| 136 | I: 1 |
| 137 | |
| 138 | v=0
|
| 139 | |
| 140 | ----- |
Neels Hofmeyr | a8c6a9c | 2018-02-21 15:36:45 +0100 | [diff] [blame] | 141 | |
| 142 | test_sdp_section_start() test [0]: |
| 143 | |
| 144 | test_sdp_section_start() test [1]: |
| 145 | |
| 146 | test_sdp_section_start() test [2]: |
| 147 | |
| 148 | test_sdp_section_start() test [3]: |
| 149 | |
| 150 | test_sdp_section_start() test [4]: |
| 151 | |
| 152 | test_sdp_section_start() test [5]: |
| 153 | |
| 154 | test_sdp_section_start() test [6]: |
| 155 | |
| 156 | test_sdp_section_start() test [7]: |
| 157 | |
| 158 | test_sdp_section_start() test [8]: |
| 159 | |
| 160 | test_sdp_section_start() test [9]: |
Philipp Maier | 704c4f0 | 2018-06-07 18:51:31 +0200 | [diff] [blame] | 161 | 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 Hofmeyr | a1756f3 | 2016-05-20 21:59:55 +0200 | [diff] [blame] | 190 | Done |