Commit Graph

2556 Commits

Author SHA1 Message Date
Harald Welte 2bcfd3a00b mgw: Include mandatory connection-id in MDCX 2017-11-18 22:14:35 +01:00
Harald Welte 5e5cce533a mgw: Add missing audio codec specification "a:PCMU"
Let's make sure we request a reasonable audio codec in the
LocalConnectionOptions
2017-11-18 22:14:08 +01:00
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 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 bb5a19e53c ggsn_tests: Remove incomplete user plane testing code
In commit 0b7545dff1 I accidentially
committed incomplete support for user plane (GTP-U) testing to
the GGSN test.

This code has caused the jenkins tests since August 26th to fail,
let's revert it until this is fully implemented + tested.
2017-09-21 22:50:41 +08: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
Harald Welte ab4ca94c8c ggsn: Extend IPCP PDP IPv4 test with another PCO protocol beyond IPCP
This is to test for a bug that osmo-ggsn fixed in Icc2e6716c33d78d3c3e000f529806228d8aa155e
2017-09-07 18:41:52 +02:00
Harald Welte 244cd8acf7 sysinfo: Fix the TC_telnet test case VTY command order 2017-08-26 09:25:20 +02:00
Harald Welte 3ab91d6ae4 GGSN_Tests: Fix IPv4 PCODNS matching 2017-08-25 14:46:39 +02:00
Harald Welte b26cfffeda LAPDm_RAW_PT: Use default L1CTL socket
The L1CTL socket path can be configured as module parameter of
the L1CTL_PortType module, so there's no need in repeating that
configuration inside LAPDm_RAW_PT
2017-08-25 09:56:47 +02:00
Harald Welte 5fe11cd6b0 sysinfo: Use ttcn3-parallel (to unify with other test suiets) 2017-08-20 23:08:57 +02:00
Harald Welte 0b7545dff1 sysinfo: build dynamic to enable use of junit-xml logfile plugin
also remove libnetfilter-conntrack linkage, whcih was a copy+paste
error.
2017-08-20 22:59:13 +02:00
Harald Welte f68765d2e5 L1CTL_PortType: Make osmocom_l2 socket configurable as module parameter 2017-08-20 22:54:57 +02:00
Harald Welte f97649269a sysinfo: Fix compilation 2017-08-20 22:47:44 +02:00
Harald Welte 4d7722900a generalize 'start.sh' script for executing synamically linked testsuite 2017-08-19 15:27:10 +02:00
Harald Welte 8b4123f67f GGSN_Tests: Enable junit-xml generation 2017-08-19 15:18:13 +02:00
Harald Welte 303c19ad63 Add Native_Functions module for inet_addr / inet_ntoa 2017-08-19 13:52:36 +02:00
Harald Welte ddeecbb4ed GGSN_Tests: Make SGSN and GGSN addresses configurable via modulepar 2017-08-19 11:50:08 +02:00
Harald Welte 99ef9a446c GGSN_Tests: Verify EUA and PCO in PDP context creation
The EUA and PCO of the created PDP context mustmatc wat we sent in the
request.
2017-08-14 21:42:03 +02:00
Harald Welte 0ef285bbe9 GGSN_Tests: Comment on each test case 2017-08-13 20:06:01 +02:00
Harald Welte dca8005080 GGSN_Tests: Actually request the right IPv4 PCO according to the test case
Missing: Verification of returned PCO
2017-08-13 20:01:38 +02:00
Harald Welte 11dbc7b6cc GGSN_Test: Use randomized sequence numbers in every test 2017-08-13 18:57:56 +02:00
Harald Welte 41575e9bc2 GGSN_Tests: remove unneeded ctx argument from f_send_gtpc() 2017-08-13 13:49:57 +02:00
Harald Welte f48a907868 GGSN_Tests: Add config file 2017-08-13 13:29:52 +02:00
Harald Welte ed09743af5 GGSN_Tests: Randomize IMSIs and use different APN for v4 + v6 2017-08-13 13:28:49 +02:00