aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-01-17HACK: Workaround buggy mgw newline parserdaniel/mgcp-emulationDaniel Willmann1-2/+2
Change-Id: Ic16dfe6c2452b2dc3e9560b0fa6bdd67fb59b2fe
2018-01-17bsc: Expect CRCX and send an ACK backDaniel Willmann1-3/+7
Change-Id: Ic4fabc2a2cf034a831e446697b3a22f4d1d0c6d6
2018-01-17bsc: CRCX is answered with (malformed) ACKDaniel Willmann1-2/+41
Change-Id: I09c1ed467e95be236e0758d6a9c8bbef405c02eb
2018-01-17bsc: Reply to CRCX with ACKDaniel Willmann2-0/+6
Change-Id: Ieaea431a99241d8844b915e1b46b77c79fff24df
2018-01-17bsc: Register expect criteria for MGCP CRCXDaniel Willmann3-14/+34
Change-Id: I466df816eef9863bf1664e785b996c0697dc04e3
2018-01-17MGCP_CodecPort: Receive MGCP command or responseDaniel Willmann1-1/+1
If we act as MGW we need to accept MGCP commands sent to us as well Change-Id: I895cfb688a2923b278828f5ae918c73fda18636d
2018-01-17Fix portsDaniel Willmann1-2/+2
Change-Id: I854ee9af243dad112949bd7cdbb98a35bb2d6e86
2018-01-17HACK: Work around IPA CCM bug in OsmoBSCHarald Welte1-1/+4
OsmoBSC has some misunderstanding about how IPA CCM works and hence we need to work around this until that bug is fixed in OsmoBSC. See https://osmocom.org/issues/2718 Change-Id: I304535d28a165f76a0a140dc0a15dd81a9db28c8 Related: OS#2718
2018-01-17Add moduleparm missingDaniel Willmann1-0/+2
Change-Id: I5d7d665225ebec9e9ecca56aaddbc557cec2351c
2018-01-17bsc: Start MGCP_Emulation and extend MSC_ConnectionHandler for MGCPDaniel Willmann2-3/+41
Change-Id: I1f316a9ed5859670348ea7aa352604020d6b09f5
2018-01-17BSC_Tests: Add MGCP_Emulation to gen_linksDaniel Willmann1-1/+1
Change-Id: Iac24d8d3baf7e4ca6bdab6b0be7b55096e490d01
2018-01-17Add MGCP_EmulationDaniel Willmann1-0/+149
Change-Id: I5245be2b44e98e1c74b9519c610564667b980a67
2018-01-17BSSMAP_Emulation: Initialize ExpectTable before useDaniel Willmann1-0/+7
The assignment_fr_* tests now go through to the point where the BSC sends a CRCX to the mgw. Change-Id: Ic5a128861ae7b1a4cf8158e43c59c52ebd2a20ba
2018-01-17RSL_Emulation: Initialize the ConnectionTableDaniel Willmann1-0/+11
By default all the elements in the conn table seem to be considered <unbound>. f_cid_create() manages to set ra, ra_fn and comp_ref in the ConnectionData element, but checking for ispresent(ConnectionTable[i].ra) still returns false while log(ConnectionTable[i].ra) returns 23. Setting every optional element to omit as f_cid_clear() does before using the connection table seems to solve this issue. The assignment_fr_* tests now continue after receiving the Immediate Assignment, but still fail after receiving the CM Service Request. Change-Id: I24205425c5b6ae5b8a0f6288ba89ea5a1dc4669d
2018-01-17Add "SourceInfoFormat := Single;" to all test configsHarald Welte7-0/+7
This will make sure that all log files will contain information about the .ttcn source file name and line number that has caused the log, which is extremely useful during debugging. Change-Id: Id6785757f20279ba84b34747f878baf67d065b20
2018-01-12Test control connection status query for MSC 0.Stefan Sperling1-0/+11
This new test exercises the new 'msc.0.connection_status' control command which is added in https://gerrit.osmocom.org/#/c/5630/ Change-Id: I55faa1ec413629234e24831dbc05d8b0afec8099 Related: OS#2729
2018-01-11Fix f_enc_mcc_mnc() to return a properly encoded MCC/MNC triple octet.Stefan Sperling1-1/+1
With help from Daniel Willmann. Change-Id: I99a5317e425d15acd463aa94c683676cacd54e0b Related: OS#2754
2018-01-09Fix BTS location area code assignment in test configuration.Stefan Sperling1-2/+2
The paging tests expect BTS 0 and 1 in LAC 1, and BTS 2 in LAC 2. BUt the osmo-bsc configuration file had BTS 1 in LAC 2, and BTS 2 in LAC 1. Change-Id: I1d6b02fe06116dee59977422bc93bcafcd3aba76
2018-01-03Add a MNCC Socket implementation for TTCN-3Harald Welte6-5/+1054
Change-Id: I8c334d4c2e630b2b779e73404c44a8df3278c614
2018-01-03Add comments with short module description on top of each fileHarald Welte18-6/+233
Change-Id: Id934d7a763b619d52cbec7de439b3708225b81f3
2017-12-28GSUP Support and first test against OsmoHLRHarald Welte9-3/+518
Change-Id: Idd7a6aca1ab193da39294f49a3adc4c1cd7cecff
2017-12-28bsc-test: Fix compilation after IuUP support was introducedHarald Welte1-1/+1
Ever since I46de7fb9c324654275a27aa5f8c1be70340e3229 we had problems linking the object files together due to a missing object Change-Id: I5d8c37f924b3a2c8b28cace4da2add1fadd0151a
2017-12-28MGCP_Test: be more liberal in some of the error codes we expectHarald Welte1-5/+4
Sometimes it's not entirely clear which error code should be returned, so let's accept multiple options, depending on the situation Change-Id: I6d6eaec4d025b9da170f59c759884afe2e768521
2017-12-28MGCP: Add 30 endpoint number test to control sectionHarald Welte1-0/+2
Change-Id: Ifa03697531680c72e4179a4195aeac371660b722
2017-12-28MGCP_Test: Test use of 30 endpoint numbersHarald Welte1-0/+26
We used to have a big (OS#2784) where only endpoint numbers below 10 (0x0A) were working due to failed interpretation in hex/dec. Let's use up to 30 endpoints to ensure hex as well as two-digit digit numbers. Change-Id: Ifb3e01b5d31decefbf0c87ea39ec5021c8795579
2017-12-25RTP_Emulation: Integrate IuUP supportHarald Welte2-5/+28
Change-Id: I46de7fb9c324654275a27aa5f8c1be70340e3229
2017-12-25RTP_Emulation: Add RtpemConfig / RTPEM_configure() callHarald Welte1-9/+27
Change-Id: Ie60b750fc009a3d8aa044e4fd450873aa19086bb
2017-12-25RTP_Emulation: Fix calculation of timer + timestamp incrementHarald Welte1-2/+2
Change-Id: I3ba0d31ad571f42721f208a40f7dcbd8fb2c6e88
2017-12-25RTP_Emulation: Fix encoding of timestamp; int2bit counts in bits!Harald Welte1-1/+1
Change-Id: I8e8b8faff362536c46b188eb9bbb77bf0ceb866d
2017-12-25Add 3GPP TS 25.415 IuUP encoder/decoderHarald Welte3-0/+725
Change-Id: Ie04438d8ec2b796e9e56b1937fa024a5299457dd
2017-12-25BSC_Tests: Fix TC_assignment_fr_a5_4Harald Welte2-6/+15
Don't expect the ASSIGNMENT to fail in case of unsupported A5/4, but expect a CIPHERING MODE REJECT. Change-Id: I15024f61e67795b7e5ce72e1b641db6ca92ff76d
2017-12-23MSC_ConnectionHandler: fix f_rsl_reply() for RSL_MT_ENCR_CMDHarald Welte1-1/+1
For some weird reason the link_id is *not* the second IE in RSL_MT_ENCR_CMD, while it is in all other RSL RLL or DCHAN messages. Change-Id: Iea93aa8dba74d25c74a257d011ba43308ee375e4
2017-12-23convert TC_assignment_sign to 'new style' testsHarald Welte1-9/+19
the use of the MSC_ConnHdlr automatically handles the MODIFY on both RR and RSL level. Change-Id: Iad7122ff5220ffc1640d802db47b1aa97986ed5b
2017-12-22BSSAP_Adapter: Fix missing 'repeat' in as_reset_ack()Harald Welte1-0/+1
The as_reset_ack() exists to acknowledge any incoming RESET without every test case having to deal with it explicitly. However, of course, the processing of an inbound RESET should not abort but the alt clause shall continue. Change-Id: I94dc72b5788ccc8dff2c4b80599c9fbf7e90e730
2017-12-18BSC_Tests: remove bogus line sfrom osmo-bsc.cfgHarald Welte1-5/+0
Those lines serve no purpose (and are being removed from osmo-bsc master) Change-Id: Icf037e8cd9a51e676eac472b29c0d616a5632c5d
2017-12-17BSC_Tests: Delete unused/dead codeHarald Welte3-86/+0
Change-Id: Ife089a2c292f4eae7a7c76dd2f112e7821f02cda
2017-12-17BSC_Tests: Update readme + source code commentsHarald Welte2-5/+75
Change-Id: I7b7d0e504e3e94077d674b464f39bd8851941922
2017-12-17MSC_ConnHdlr: Fix f_rsl_reply() for RSL_MT_ENCR_CMDHarald Welte1-0/+5
In all RSL messages the link identifier is usually the second IE. However, as the only known exception, the RSL Encryption Command has it as third IE. Fixes the following error message: Dynamic test case error: Using non-selected field link_id in a value of union type @RSL_Types.RSL_IE_Body Change-Id: I2bbb83b5394d0b693a47d286beed5c699ab6e8ae
2017-12-17BSC_Tests: reduce amount of sleeping to speed up test suiteHarald Welte1-2/+1
Change-Id: Ifd956556969467d4f059d2c8e58a924eb7ec0418
2017-12-17fix TC_ctrl expectation: We expect 3 BTSsHarald Welte1-1/+1
Change-Id: I4ba5d357474d43c3065858bfa18bf73f1c4eba5d
2017-12-17BSC_Tests: Only start the number of BTSs required for a givenHarald Welte1-29/+29
Change-Id: Ife3ec4900a73a29c2ef258a5a9d38b95ced8dc86
2017-12-17BSC_Tests: Implement ecnryption related proceduresHarald Welte5-11/+138
Let's verify the operation of the CIPHERING MODE COMMAND as issued by MSC, performed by BSC and implemented by simulated BTS/MS. Change-Id: Ibc06bd2177c63837a794a0ca1f54ebef17499e78
2017-12-17MSC_ConnHdlr: Tighten permitted messagesHarald Welte1-4/+8
Accept CRCX only once; Accept MDCX only after CRCX; Accept RSL MODIFY only after RR MODIFY. Change-Id: I44abdc3d000c76243f9885f0e30e15c2dc9aadaa
2017-12-17BSC_Tests: Migrate various ASSIGNMENT tests over to MSC_ConnHdlrHarald Welte1-76/+108
This way we benefit from the ability to handle the RR MODE MODIFY, RSL MODE MODIFY, IPA CRCX and IPA MDCX capabilities of the MSC_ConnHdlr component. While each test case now needs a separate function in addition to the actual testcase, this allows for more flexibility and a more complete emulation of BTS behaviour. Change-Id: Iba50663cb5104bf34bd6fc8aac2aa3b47155fe99
2017-12-17BSC_Tests: Re-wire MSC_ConnectionHandler to handle BSSAP and RSLHarald Welte2-103/+158
Using the MSC_ConnHdlr component, we can now handle the BSSAP (MSC) and RSL (BTS) side of a single radio channel. Change-Id: I00dcf1e4eaa7f133788cc01fbbcd4148a0258ef4
2017-12-17L3_Templates: Add ts_RRM_ModeModifyAck templateHarald Welte1-0/+18
Change-Id: Iec607577aff1c65cb208c20a4c4169b5b4569892
2017-12-17RSL_Types: Fix message type of ts_RSL_IPA_MDCX_ACK()Harald Welte1-1/+1
Change-Id: I8ce0c96d66c3027d68542b3f58d9a732fb42517d
2017-12-17RSL_Types: Handle IPA specific messages in tr_RSL_MsgTypeDR()Harald Welte1-1/+28
They all are related to a dedicated channel and carry a channel number as first information element. Change-Id: Ic3fdc029a96c34a9d2d9ec669b789526c8325637
2017-12-17RSL_Types: Fix RSL Message Type enumerated definitionHarald Welte1-20/+20
Change-Id: I9096f8a579ee245fb193e0fd53144056bc4a23a8
2017-12-17BSC_Tests: Prepare for tests based on {RSL,BSSMAP}_EmulationHarald Welte6-12/+122
The existing tests were implemented directly on top of the BSSMAP and RSL CodecPorts. If we loop in the RSL_Emulation and BSSMAP_Emulation components, we can properly multiplex/demultiplex multiple MS (radio channels) on both the RSL and the MSC (SCCP connection) side. In order to have a single component that handles both the RSL and the BSSAP side of a given channel/subscriber/call, we introduce the concept of BSSMAP "Expects", where the test csse can register the L3 INFO that it sends in the RLL ESTablish INDication on the RSL side, so the BSSMAP handler cna route the BSC-originated SCCP connection with that L3 INFO back to the same component. This is a bit inspired "in spirit" of the "expect" mechanism of netfilter connection tracking. Change-Id: I71f777cd4f290422fa68897952b6505875e35f0e