Harald Welte
e0b331fa69
mgw: update comment to reflect implemented tests
2017-11-18 20:35:40 +01:00
Harald Welte
8d2fbb4d61
mgw: Move f_mgcp_par_append() to top of file
2017-11-18 20:34:21 +01:00
Harald Welte
0d19861719
mgw: Check for 535 in case of invalid packetization period
2017-11-18 19:58:31 +01:00
Harald Welte
f53f1647bc
mgw: Test for duplicate transmission of DLCX
2017-11-18 19:57:11 +01:00
Harald Welte
6d167f8472
mgw: Add test cases for invalid DLCX commands
2017-11-18 19:41:35 +01:00
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
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
3c6ebb9c93
MGCP_Test: Some templates to encode MGCP messages
2017-09-16 09:37:28 +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