| |
| ===== test_crcx ===== |
| composed: |
| ----- |
| CRCX 1 17@mgw MGCP 1.0
|
| C: 2a
|
| L: p:20, a:AMR, nt:IN
|
| M: loopback
|
| |
| ----- |
| composed response: |
| ----- |
| 200 1 OK
|
| I: 1
|
|
|
| v=0
|
| o=- 1 23 IN IP4 10.9.1.120
|
| s=-
|
| c=IN IP4 10.9.1.120
|
| t=0 0
|
| m=audio 16002 RTP/AVP 110 96
|
| a=rtpmap:110 AMR/8000
|
| a=rtpmap:96 GSM-EFR/8000
|
| a=ptime:20
|
| |
| ----- |
| response cb received: |
| head.response_code = 200 |
| head.trans_id = 1 |
| head.conn_id = 1 |
| head.comment = OK |
| audio_port = 16002 |
| audio_ip = 10.9.1.120 |
| ptime = 20 |
| codecs_len = 2 |
| codecs[0] = 112 |
| codecs[1] = 110 |
| ptmap_len = 2 |
| ptmap[0].codec = 112 |
| ptmap[0].pt = 110 |
| ptmap[1].codec = 110 |
| ptmap[1].pt = 96 |
| |
| Generated CRCX message: |
| CRCX 1 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| L: p:20, a:GSM, nt:IN
|
| M: sendrecv
|
| |
| Generated CRCX message (two codecs): |
| CRCX 2 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| L: p:20, a:GSM;AMR, nt:IN
|
| M: sendrecv
|
| |
| Generated CRCX message (three codecs, one with custom pt): |
| CRCX 3 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
|
| M: sendrecv
|
| |
| Generated MDCX message: |
| MDCX 4 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| M: sendrecv
|
|
|
| v=0
|
| o=- 2f 23 IN IP4 127.0.0.1
|
| s=-
|
| c=IN IP4 192.168.100.23
|
| t=0 0
|
| m=audio 1234 RTP/AVP 3
|
| a=ptime:20
|
| |
| Generated MDCX message (two codecs): |
| MDCX 5 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| M: sendrecv
|
|
|
| v=0
|
| o=- 2f 23 IN IP4 127.0.0.1
|
| s=-
|
| c=IN IP4 192.168.100.23
|
| t=0 0
|
| m=audio 1234 RTP/AVP 3 112
|
| a=rtpmap:112 AMR/8000/1
|
| a=ptime:20
|
| |
| Generated MDCX message (three codecs, one with custom pt): |
| MDCX 6 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| M: sendrecv
|
|
|
| v=0
|
| o=- 2f 23 IN IP4 127.0.0.1
|
| s=-
|
| c=IN IP4 192.168.100.23
|
| t=0 0
|
| m=audio 1234 RTP/AVP 3 112 96
|
| a=rtpmap:112 AMR/8000/1
|
| a=rtpmap:96 GSM-EFR/8000/1
|
| a=ptime:20
|
| |
| Generated DLCX message: |
| DLCX 7 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| |
| Generated AUEP message: |
| AUEP 8 23@mgw MGCP 1.0
|
| |
| Generated RSIP message: |
| RSIP 9 23@mgw MGCP 1.0
|
| |
| Generate X-Osmo-IGN message: |
| CRCX 11 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| L: p:20, a:GSM, nt:IN
|
| M: sendrecv
|
| X-Osmo-IGN: C
|
| |
| Overfolow test: |
| |
| |
| test_mgcp_client_cancel(): |
| composed: |
| ----- |
| CRCX 1 23@mgw MGCP 1.0
|
| C: 2f
|
| I: 11
|
| L: p:20, a:AMR, nt:IN
|
| M: sendrecv
|
| |
| ----- |
| composed response: |
| ----- |
| 200 1 OK
|
| I: 1
|
|
|
| v=0
|
| |
| ----- |
| |
| test_sdp_section_start() test [0]: |
| |
| test_sdp_section_start() test [1]: |
| |
| test_sdp_section_start() test [2]: |
| |
| test_sdp_section_start() test [3]: |
| |
| test_sdp_section_start() test [4]: |
| |
| test_sdp_section_start() test [5]: |
| |
| test_sdp_section_start() test [6]: |
| |
| test_sdp_section_start() test [7]: |
| |
| test_sdp_section_start() test [8]: |
| |
| test_sdp_section_start() test [9]: |
| 110 => 96 |
| 111 => 97 |
| 112 => 98 |
| 113 => 99 |
| 96 <= 110 |
| 97 <= 111 |
| 98 <= 112 |
| 99 <= 113 |
| |
| 0 => 0 |
| 3 => 3 |
| 8 => 8 |
| 18 => 18 |
| 0 <= 0 |
| 3 <= 3 |
| 8 <= 8 |
| 18 <= 18 |
| |
| 110 => 96 |
| 111 => 97 |
| 112 => 98 |
| 113 => 113 |
| 0 => 0 |
| 96 <= 110 |
| 97 <= 111 |
| 98 <= 112 |
| 2 <= 2 |
| 100 <= 100 |
| |
| |
| ===== test_crcx_long_conn_id ===== |
| composed: |
| ----- |
| CRCX 1 17@mgw MGCP 1.0
|
| C: 2a
|
| L: p:20, a:AMR, nt:IN
|
| M: loopback
|
| |
| ----- |
| composed response: |
| ----- |
| 200 1 OK
|
| I: 123456789abcdef0123456789ABCDEF0
|
|
|
| v=0
|
| o=- 1 23 IN IP4 10.9.1.120
|
| s=-
|
| c=IN IP4 10.9.1.120
|
| t=0 0
|
| m=audio 16002 RTP/AVP 110 96
|
| a=rtpmap:110 AMR/8000
|
| a=rtpmap:96 GSM-EFR/8000
|
| a=ptime:20
|
| |
| ----- |
| response cb received: |
| head.response_code = 200 |
| head.trans_id = 1 |
| head.conn_id = 123456789abcdef0123456789ABCDEF0 |
| head.comment = OK |
| audio_port = 16002 |
| audio_ip = 10.9.1.120 |
| ptime = 20 |
| codecs_len = 2 |
| codecs[0] = 112 |
| codecs[1] = 110 |
| ptmap_len = 2 |
| ptmap[0].codec = 112 |
| ptmap[0].pt = 110 |
| ptmap[1].codec = 110 |
| ptmap[1].pt = 96 |
| |
| ===== test_crcx_too_long_conn_id ===== |
| composed: |
| ----- |
| CRCX 1 17@mgw MGCP 1.0
|
| C: 2a
|
| L: p:20, a:AMR, nt:IN
|
| M: loopback
|
| |
| ----- |
| composed response: |
| ----- |
| 200 1 OK
|
| I: 123456789abcdef0123456789ABCDEF01001029
|
|
|
| v=0
|
| o=- 1 23 IN IP4 10.9.1.120
|
| s=-
|
| c=IN IP4 10.9.1.120
|
| t=0 0
|
| m=audio 16002 RTP/AVP 110 96
|
| a=rtpmap:110 AMR/8000
|
| a=rtpmap:96 GSM-EFR/8000
|
| a=ptime:20
|
| |
| ----- |
| Done |