Files
osmo-mgw/tests/mgcp_client/mgcp_client_test.ok
Philipp Maier 9d25d7a2e6 client: add missing mandatory SDP fields
The mcgp message generator function mgcp_msg_gen() lacks support
for the mandatory SDP fields (v)ersion, (o)rigin, (s)ession and
(t)ime.

- Automatically generate the missing fields when SDP is
  generated.

Change-Id: I5fbc31a17e8ac10c7cc5dbc31357b61e8920aaa5
Related: OS#2837
2018-01-26 00:27:34 +00:00

86 lines
1.0 KiB
Plaintext

===== 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 98
a=rtpmap:98 AMR/8000
a=ptime:20
-----
response cb received:
head.response_code = 200
head.trans_id = 1
head.comment = OK
audio_port = 16002
audio_ip = 10.9.1.120
Generated CRCX message:
CRCX 1 23@mgw MGCP 1.0
C: 2f
I: 11
L: p:20, a:AMR, nt:IN
M: sendrecv
Generated MDCX message:
MDCX 2 23@mgw MGCP 1.0
C: 2f
I: 11
M: sendrecv
v=0
s=-
o=- 2f 23 IN IP4 127.0.0.1
c=IN IP4 192.168.100.23
m=audio 1234 RTP/AVP 255
t=0 0
Generated DLCX message:
DLCX 3 23@mgw MGCP 1.0
C: 2f
I: 11
Generated AUEP message:
AUEP 4 23@mgw MGCP 1.0
Generated RSIP message:
RSIP 5 23@mgw MGCP 1.0
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
-----
Done