mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
The current implementation does not support any way to influence the codec that is negotiated via SDP or LCO. The client statically negotitates AMR on an invalid payload type number. Also we ignore any codec information in the responses. - Add struct members to allow setting of user defined codec information. - Add struct members to retrieve parsed codec info from responses. - Add code to generate codec information in SDP - Add code to parse SDP codec info in MGCP responses Change-Id: I78e72d41b73acfcb40599a0ff4823f17c3642059 Related: OS#2728 Related: OS#3334
70 lines
1.9 KiB
Plaintext
70 lines
1.9 KiB
Plaintext
DLMGCP message buffer to small, can not generate MGCP message
|
|
|
|
test_mgcp_client_cancel():
|
|
- composed msg with trans_id=1
|
|
- not in queue yet, cannot cancel yet
|
|
DLMGCP Cannot cancel, no such transaction: 1
|
|
- enqueue
|
|
- cancel succeeds
|
|
DLMGCP Canceled transaction 1
|
|
- late response gets discarded
|
|
DLMGCP Cannot find matching MGCP transaction for trans_id 1
|
|
- canceling again does nothing
|
|
DLMGCP Cannot cancel, no such transaction: 1
|
|
test_mgcp_client_cancel() done
|
|
|
|
test_sdp_section_start() test [0]:
|
|
body: ""
|
|
DLMGCP MGCP response: cannot find start of SDP parameters
|
|
got rc=-22
|
|
|
|
test_sdp_section_start() test [1]:
|
|
body: "\n\n"
|
|
got rc=0
|
|
got audio_port=0
|
|
|
|
test_sdp_section_start() test [2]:
|
|
body: "\r\n\r\n"
|
|
got rc=0
|
|
got audio_port=0
|
|
|
|
test_sdp_section_start() test [3]:
|
|
body: "\n\r\n\r"
|
|
got rc=0
|
|
got audio_port=0
|
|
|
|
test_sdp_section_start() test [4]:
|
|
body: "some mgcp header data\r\nand header params\n\nm=audio 23\r\n"
|
|
got rc=0
|
|
got audio_port=23
|
|
|
|
test_sdp_section_start() test [5]:
|
|
body: "some mgcp header data\r\nand header params\r\n\r\nm=audio 23\r\n"
|
|
got rc=0
|
|
got audio_port=23
|
|
|
|
test_sdp_section_start() test [6]:
|
|
body: "some mgcp header data\r\nand header params\n\r\n\rm=audio 23\r\n"
|
|
got rc=0
|
|
got audio_port=23
|
|
|
|
test_sdp_section_start() test [7]:
|
|
body: "some mgcp header data\r\nand header params\n\r\nm=audio 23\r\n"
|
|
DLMGCP MGCP response: cannot find start of SDP parameters
|
|
got rc=-22
|
|
|
|
test_sdp_section_start() test [8]:
|
|
body: "some mgcp header data\r\nand header params\r\n\rm=audio 23\r\n"
|
|
DLMGCP MGCP response: cannot find start of SDP parameters
|
|
got rc=-22
|
|
|
|
test_sdp_section_start() test [9]:
|
|
body: "some mgcp header data\r\nand header params\n\r\rm=audio 23\r\n"
|
|
DLMGCP MGCP response: cannot find start of SDP parameters
|
|
got rc=-22
|
|
DLMGCP ptmap contains illegal mapping: codec=113 maps to pt=2
|
|
DLMGCP ptmap contains illegal mapping: codec=0 maps to pt=100
|
|
DLMGCP ptmap contains illegal mapping: codec=113 maps to pt=2
|
|
DLMGCP ptmap contains illegal mapping: codec=0 maps to pt=100
|
|
Done
|