aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-02-12Add a test for OS#2714, "close RSL connections from unknown Unit ID"stsp/rsl_unknown_unit_idStefan Sperling1-0/+40
This is work in progress. The new test currently does not build: $ make bsc 2>&1 | grep error: BSC_Tests.ttcn:1258.41-52: error: Component type `@BSC_Tests.test_CT' does not have port with name `IPA_CODEC_PT' Change-Id: I6a947d7411a016e4d7650031396cae3575756453
2018-02-11msc: Mobile Terminated Voice Call testHarald Welte4-1/+301
Change-Id: I4fa353623991ac98726217559fea9f83f64715ea
2018-02-11BSSMAP: Fix L3 sequence number for ComplL3(Paging Response)Harald Welte2-1/+42
The existing code generating L3 sequence numbers in MO direction made the assumption that the L3 message inside ComplL3 would always be MM/CM, and increment the sequence number. However, in case of a paging response, it is actually RR, which does *not* have L3 sequence counters. So we must make the sequence counter increment dependant on the L3 protocol discriminator. Change-Id: I25a5dd0c180c9acfa870984c6b122ac0c46383b3
2018-02-11MNCC: Fix encoding of non-signal MNCC PDUsHarald Welte1-5/+11
Change-Id: I0b673f16daeccfdd2c9b5a4ee119c71f87a9644b
2018-02-10BSC: do not flush RSL queue early in TC_chan_rel_a_reset()Philipp Maier1-1/+1
When f_expect_chan_rel() is called after receiving the BSSMAP RESET and DISC.ind f_expect_chan_rel() is called. The flush parameter is not set, which means the default flush = true is valid. This leads into an early flush of the RSL Queue and tosses the RSL RELEASE REQUEST we expect, so the test can not pass, even when the BSC sends the RLEASE REQUEST. Looking further up in the code. IPA_RSL[0].clear is called, so the Queue is flushed to get rid of unwanted messages from the IMMEDIATE ASSIGN. There is no need to flush the queue a second time anyway. - Do not flush the RSL queue, set flush=false when calling f_expect_chan_rel() Change-Id: I2962f741e0b13dec08ac6c918d326828beb65a6a
2018-02-10msc: Add Emergency call to f_mo_call() and use it from TC_emerg_call_imsiHarald Welte2-40/+20
This fixes TC_emerg_call_imsi with current osmo-msc master. The old implementation was broken as it didn't deal with MGCP yet. Change-Id: Ic35797931387b078205269365421ad730db7af15
2018-02-10msc: Unify channel establishment for CM SERV REQ + PAGINGHarald Welte2-19/+20
Change-Id: I24e3dfa1ef88c48c39bf0248074e88e682bc8404
2018-02-08MGCP: remove hack to fake SDPPhilipp Maier1-3/+0
A problem with the parameter ordering inside the mgcp-client (osmo-mgw) prevented TTCN3 from accepting the SDP data that was generated by the IUT. The problem is now fixed and the hack can be removed. - remove hack Change-Id: Ic37f78c2676e7c98144f10e9f3b55bc9651a4f7c Related: OS#2818
2018-02-08msc: convert bssmap chipher to rsl chiper representationPhilipp Maier1-1/+47
The representation of the chiphering algorithm is different bssmap and RSL. BSSMAP uses a bitmask and RSL a numeric value. For A50 and A51 the values match up by coincidence, from A5/2 onwards they differ. - Add a function to convert the BSSMAP representation to the RSL representation and use the converted value to set up the temlate for the expected RSL message Change-Id: I274c1ff0b5636c48411f994f918e783b468cb3be
2018-02-07bsc: fix f_establish_fully() for expected assignment failuresPhilipp Maier1-0/+4
The altstep guard statements are to restrictive so they do not match on an expected assignment failure anymore. - Add a new altstep for expected assignment failures. Change-Id: I78b839f0bcb7e2da61bff0add3abc452bfea40a2
2018-02-06L3_Templates: Use tid parameter in ts_ML3_MO_CC templateDaniel Willmann1-1/+1
Change-Id: I6c28b206625cb081a98a722b8c793ce02af74441
2018-02-06MSC_Tests: Make imsi suffix for f_start_handler unique per testDaniel Willmann1-14/+14
Change-Id: I02d1f2ac717fee278e3903d325942697637a5d28
2018-02-06MNCC_Emulation: Initialize connection tableDaniel Willmann1-0/+9
Change-Id: I903f6bf14a15abc6cae1d527195414c5f081c2df
2018-02-06start-testsuite.sh: Pass a third parameter to ttcn3_startDaniel Willmann1-1/+5
The name of the parameters is a little misleading, since the second parameter could just be a testname. Change-Id: Ibe207a83c477c918a865a8a34cad7ca5d45c7eac
2018-02-06deps: Ensure that branches are updated on make update as wellDaniel Willmann1-1/+1
Don't just force-checkout the local master branch again, but reset to origin/master Change-Id: I7d5e0e3d7f92fc51fa438b92f00c79f63945e74f
2018-02-06BSSMAP_Emulation: Send proper L3 N(SD) seuence numbers in MOHarald Welte1-3/+56
We have to make sure all mobile originated L3 messages carry proper sequence numbers Change-Id: Id8638673ad1a133f46893b2140970ec072022b3a
2018-02-05Don't symlink non-existent fileMax9-9/+9
Change-Id: I10309f07fb207c027703f0b43a478c152a029b6d
2018-02-03MNCC: Represent 'keypad' as one-character charstring, not intHarald Welte2-5/+7
The MNCC Unix Domain Socket encoding uses an int here, which is a bit odd, given that it's an ASCII / IA5 char value on the actual GSM L3. Let's convert from/to something useful. Change-Id: Id17ac502ca33f4962214a3d5938d0dc29ca6ec1b
2018-02-02MGCP_Test: test illegal wildcarded DLCX and MDCXPhilipp Maier2-0/+56
- Add tests to check the behaviour on wildcarded DLCX and MDCX, both commands not supported by the MGW and should fail. Change-Id: I140c6d9e337cd16d6147bb582a9474cf76b5170b
2018-02-02MGCP_Test: Clean up after TC_crcx_sdpPhilipp Maier1-0/+4
The testcase TC_crcx_sdp does not clean up the connection it created. This can cause subsequent tests to fail. - Use f_dlcx_ok() to clean up the connection once the test is done. Change-Id: I4e0f5ce218fadc5debe0bbf548b69919584ab66c
2018-02-02MCGP_Test: Add tests for wildcarded CRCXPhilipp Maier2-0/+72
The wildcarded CRCX is not tested yet. - Add a test function that executes a single wildcarded CRCX request - Add a test function that exchausts all MGW resources using wildcarded CRCX requests Change-Id: I70cf486dc21aef19e4199289f5a5509f6927713e
2018-02-02mgw: add constants for mgw endpoint and domain namePhilipp Maier2-24/+38
The testcase for osmo-mgw hardcodes the mgw domain and also lacks an endpoint identifier, which was deprecated recently. - replace the hardcoded occurrences of the mgw domain name with a constant - add a constant for the rtpbridge endpoint identifier - add a testcase that still uses the old method without prefix on the endpoint identifier. Change-Id: If4455c4cb521270b2fe24881ade9b578a5132205
2018-01-31bsc: Add TC_err_84_unknown_msg to check if unknown RR message triggers RR STATUSHarald Welte1-0/+22
... as declared in TS 24.008 Section 8.4 Change-Id: I4f81b955567d2a33ead350ed312c4c4f6dd7ed8a
2018-01-31bsc: reduce code duplication; add new test case on too short messagesHarald Welte2-42/+75
Change-Id: I8232ee58c14a4358a01b5428ff2b4e559491b185
2018-01-31bsc: Add TC_unsol_ass_compl / unsolicited assignment completeHarald Welte1-0/+33
Change-Id: Ib025ee51df54804e9a4241d4fa6107ce49270a5f
2018-01-31bsc: Add TC_unsol_ho_fail test case for unsolicited handover failureHarald Welte2-0/+47
Change-Id: Ic3bd71d77d03cb7eebabdf98ba0bfbafd24ec0ea
2018-01-31bsc: Add TC_classmark to test RR CLASSMARK -> BSSMAP CLASSMARK conversionHarald Welte4-3/+154
Related: OS#2902 Change-Id: Idd86b5505e1a4fee666287680a20dc235970be93
2018-01-31bsc: Change expectation in paging testsHarald Welte1-3/+3
When we page an unknown/unsupported CellIdentifier format, OsmoBSC decides to page on all BTSs to be safe. This way we have a chance of making communication happen, rather than breaking it. Change-Id: Ibd0ba986d9e18758b519e852c36f4dbbb6b367ea
2018-01-31BSC_Tests: Implement remaining missing paging testsHarald Welte2-1/+48
We now test all of the cell identification types specified in BSSMAP, and also lists with a length != 1 entry. Change-Id: I261f948d6054d0c90078c1dd0b2785a967b0a49b
2018-01-31BSC_Tests: fix f_pageing_helper() in case no paging was expectedHarald Welte1-0/+1
We have to wait for sime time until some RSL paging command would have arrived, rather than continuing too quickly. Change-Id: I63827aa3c42f77648ecad401b3cc4bae927b3b94
2018-01-31ggsn_tests: Add test to validate if different pdp ctx can talk each otherPau Espin Pedrol2-0/+84
It seems due to the current network configuration, pdp v4 ctx can talk each other while pdp v6 ctx cannot. Change-Id: I67c04b056cc5c092d357abbb084b7665f59eaf3a
2018-01-31ggsn_tests: Add test case to validate packets forwarded vs droppedPau Espin Pedrol4-8/+262
New dependency is required: titan.ProtocolModules.ICMP It tests that ICMP echo packets can be sent successfully (reply is received or otherwise dest unreachable if routing is not set up correctly during the test). It also tests some cases in which osmo-ggsn is required to drop the packets (eg. unknown src ip unrelated to pdp ctx). It also checks that IPv6 packets are dropped in IPv4 pdp ctx and viceversa It also checks that IPv6 packets are dropped in IPv4 pdp ctx and vice versa. Change-Id: Ib9c6043a6cd3b6622782ec7e7fcd2815101755ba
2018-01-30bsc: Handle wildcard endpoint name in MGCP CRCXHarald Welte3-5/+49
MGCP permits for the CallAgent to send a wildcarded endpoint name, at which point the MGW itself must allocate an endpoint name and return it as SpecificEndpointId parameter in the CRCX response. Change-Id: I704bbe4e11b27e83a6ae6a71aa6a715dc8301f34
2018-01-30msc: Disable t310 test for now (seems to never terminate on TITAN 6.1.0)Harald Welte1-1/+1
Change-Id: I1e8d1101cfea6d861f02cca52f3dc2d1453c33f8
2018-01-29MGCP_Emulation: Remove bogus mgcp_conn_id variable from MGCP_ConnHdlrHarald Welte1-1/+0
A given MGCP_ConnHdlr is handling multiple connections on one Endpoint anyway, and the variable is not set or used anywhere. Change-Id: If9eea3f665289a52915f114f0a69234aad28f322
2018-01-29bsc: Unregister old RSL channel number after assignmentHarald Welte2-3/+20
Change-Id: I27d113391094f938ff92c4d6514172ee634f695c
2018-01-29bsc: f_establish_fully(): Wait for release of old channelHarald Welte1-5/+11
We shouldn't "pass" f_establish_fully() in the assignment case as long as the old RF channel hasn't been released via RSL. Change-Id: If7c7c8c4826feba47f8a0395c291157a0e48cd9d
2018-01-29bsc: Implement Assignment handlingHarald Welte3-55/+373
This adds code for the rather intricated and nested transactions happening on RSL, BSSAP, MGCP and RSL-IPA. We use explicit invocation of altsteps to simplify the main function f_establish_fully. Change-Id: I5f830b010ea1b466ae74fa810df86638a74a3b8b
2018-01-29L3_Templates: Add ts_RRM_AssignmentCompleteHarald Welte1-0/+16
Change-Id: I3ae33ea00496eaef5885a58cd5fbc491abe68c87
2018-01-29bsc: Permit MGCP messages from random ports on BSC sideHarald Welte1-1/+1
Change-Id: Ie8896edc3f4310a78b584fd4ad017b77bda22afb
2018-01-29RSL_Emulation: Permit registration of explicit Channel NumberHarald Welte2-3/+77
During assignment or hand-over, a given TTCN-3 component may be interested in registering more than one channel number. Add an explicit procedure port with associated registration procedure, similar to what we already do in GSUP, MNCC and others. Change-Id: Iba37bf9541c779b79e179f995cdfa677633fadeb
2018-01-29GSM_Types: Enable sub-slot templating in t_RslChanNr_LmHarald Welte1-1/+1
Change-Id: I22dca2338ad66c81add5d161bd2a3b3e8e15bdcf
2018-01-29RSL_Types: More templates, f_rsl_find_ie() for finding an IE in a messageHarald Welte1-0/+20
Change-Id: Id7fa7d672c1fde97882fa44959501e8bf7b8dc0b
2018-01-29RSL_Types: Make tr_RSL_MsgTypeDR match non-transparent RLLHarald Welte1-1/+1
There are quite a number of non-transparent RLL messages, such as RLL_RELEASE_REQ. Make sure we match those as intended. Change-Id: I30260a57fc01613450e6ac66e0af97c29041b4fa
2018-01-29MGCP_Templates: Some more convenience extraction functionsHarald Welte1-4/+17
Change-Id: I2fc121b1d90327c879a096773ecc5c04faad07d7
2018-01-29bsc: Fix TC_paging_imsi_nochanHarald Welte1-1/+26
The point of this test is to verify that *no* paging messages are sent if "No cell" is given as cell identifier list by the MSC. We can thus not use the existing pageing_helper function, but have to handle this a bit differently. This makes TC_paging_imsi_nochan runs pass. Change-Id: Iec1086bd42f42de1986bb00b91af718977f73b30
2018-01-29bsc: Cosmetic: Update commented-out config file optionsHarald Welte1-11/+9
There's no point in listing non-existing module parameters. Instead, list those that the BSC testsuite actually has Change-Id: I3cb756750cafba4ca481a0a98d19e27cb58395df
2018-01-29bsc: Fix TC_chan_act_ack_est_ind_refused()Harald Welte1-2/+1
This test case was incomplete in that it didn't account for a RLL REL REQ/RESP before RF_CHAN_REL. Together with OsmoBSC Change-Id I64a46b5bcd4272e3fa2ff4ee824c2f3fdff6854b, this test now passes. Change-Id: Ia5af254d4fc572c1d324f70b5ec99d87bdaf9eb9
2018-01-29bsc: Fix TC_chan_act_ack_est_ind_noreply()Harald Welte1-1/+12
This test case was incomplete in that it * applied the wrong timeout T3101 instead of T3210 * didn't account for a RLL REL REQ/RESP before RF_CHAN_REL Let's fix it. Together with OsmoBSC Change-Id Ie11d7d06353ba1b1e2fab6763dd7b032ce8a5d2c this check now actually passes for the first time. Change-Id: I9ed41d246cf153735fd4e71cc6cc174ede32a76b
2018-01-29bsc: reduce code duplication by introducing f_expect_chan_rel()Harald Welte1-74/+37
The handling of channel release is copy+pasted, let's introduce a shared function. Change-Id: If74b0838187f60004b7daf6176db259af511bf87