Harald Welte
10889c1d13
mgw: generalize f_dlcx versions, avoiding copy+paste
2017-11-18 19:40:31 +01:00
Harald Welte
79181ffc8b
mgw: Test DLCX in three diffeent (valid) configurations
...
DLCX can be with EP-only, with EP+CallId or with EP+CallId+ConnId,
let's test all three valid cases.
2017-11-18 19:26:25 +01:00
Harald Welte
9988d28228
mgw: Avoid copy+paste of CRCX_ACK template
2017-11-18 19:22:00 +01:00
Harald Welte
edc45c19fd
mgw: Delete all connections of EP before starting a test case
...
as part of f_init() we now issue an endpoint-wide DLCX without
call-id or connection-id. This means that the endpoint should be
in a pristine state after f_init() returns.
2017-11-18 19:15:05 +01:00
Harald Welte
c40e0c3cbd
mgw: make f_dlcx_{ok,ignore}() support EP, EP+call_id or EP+call_id+conn_id
...
A MGCP DLCX can contain either only the EP, or EP+call_id or
EP+call_id+conn_id in order to specify what shall be deleted. Let's
structure ts_DLCX() and the f_dlcx_{ok,ignore}() function in a way to
support this in an intuitive way.
2017-11-18 19:08:22 +01:00
Harald Welte
a01e38d371
mgw: Handle MgcpParameterList more elegantly, less repetition
2017-11-18 18:40:01 +01:00
Harald Welte
ba62c8c95b
mgw: properly clean up endpoint by use of DLCX at end of each testcase
2017-11-18 18:27:01 +01:00
Harald Welte
f07c286a55
mgw: Add sockets for RTP packets + code for bind/connect/send RTP
2017-11-18 17:19:21 +01:00
Harald Welte
5501536e81
mgw: Prepare for RTP support: Prefix ambiguous functions/variable names
2017-11-18 16:02:42 +01:00
Harald Welte
a7261d7312
mgw: Add RTP_CodecPort throguh which we can send/receive RTP+RTCP
2017-11-18 13:28:07 +01:00
Harald Welte
45295c517f
MGCP_CodecPort: Update to IPL4asp R.29.A of 2017-Oct-17
...
This introduces a new ASP_ConnId_ReadyToRelease which we must
handle in the translation port
2017-11-18 13:00:57 +01:00
Harald Welte
cbae9d109f
Fix TC_crcx_and_dlcx(): Don't assume DLCX returnsConncetionID
2017-11-17 23:25:26 +01:00
Harald Welte
6f960b1bd6
mgw: Ensure that CRCX succeeds only if ConnectionId is present in response
2017-11-17 23:24:46 +01:00
Harald Welte
21ba5574f9
MGCP_Test: Add comments throughout the code to help readability
2017-09-19 17:55:05 +08:00
Harald Welte
5b4c44ec5a
MGCP: Test for CRCX followed by DLCX
2017-09-17 16:35:27 +08:00
Harald Welte
e636afd5d1
MGCP: Extend tests significantly
...
We're now testing a variety of different permitted and illegal
transactions of the MGW. Still lots of bits pending, particularly
also actual RTP flows.
2017-09-17 16:24:09 +08:00
Harald Welte
e1e18c5e33
MGCP: introduce global variable + accessor function for transaction ID
2017-09-17 16:23:07 +08:00
Harald Welte
9ccb480a87
MGCP: don't use dec_MGCP_Message to avoid (possible) TITAN bug
...
See https://www.eclipse.org/forums/index.php/t/1088893/ for details
2017-09-17 16:22:34 +08:00
Harald Welte
3c6ebb9c93
MGCP_Test: Some templates to encode MGCP messages
2017-09-16 09:37:28 +08:00
Harald Welte
2c6dba145a
Introduce MGCP_CodecPort on top of UDP port
2017-09-16 00:50:08 +08:00
Harald Welte
12000e2a7a
mgw: Use official Titan SDP library for encode/decode of SDP in MGCP
2017-09-14 22:43:08 +08:00
Harald Welte
2871d0b000
mgw: Add missing mandatory "s=" to SDP of c_mdcx4
2017-09-14 22:42:12 +08:00
Harald Welte
00a067f54d
Add minimal MGCP parser/encoder based on TEXT codec
2017-09-13 23:27:17 +02:00