path: root/msc
AgeCommit message (Collapse)AuthorFilesLines
2021-02-26msc: Get rid of several uneeded module paramsPau Espin Pedrol2-16/+4
These params are not needed anymore since new releases used in -latest don't need to disable it. Change-Id: I16575ae4f615bf7c42d5921917003007ba4872a0 Related: OS#5042
2021-02-08msc: test reaction on Clear Request during a MO/MT CallVadim Yanitskiy1-0/+62
Change-Id: Id16969fe0de04445d1320a96d35cf1d48cc8cf09 Related: SYS#5340
2021-02-08msc: finish and enable test case for MT Call T310 timerVadim Yanitskiy1-14/+40
The test suite needs to handle MGCP messages, otherwise the related FSMs in the IUT would tear everything down before T310 is expired. Change-Id: I79d9ae3b086d05c3d7c0a1241720d6c3f1e90281 Related: SYS#5340
2021-01-07CTRL: Introduce support to run osmocom CTRL serverPau Espin Pedrol2-2/+2
Change-Id: I37db9962f51baf2c63bd58ec47ec89f773d7a255 Put libraries in LINUX_LIBS, not LDFLAGSHarald Welte1-1/+1
Additional libraries to be linked should be in LINUX_LIBS (appended at the end of the linker command), not part of LDFLAGS (prepended to the beginning of the linker command). On binutils 2.35.1 / Debian unstable, without this patch, I get /usr/bin/ld: undefined reference to `sctp_bindx' /usr/bin/ld: undefined reference to `sctp_connectx' which is resolved by this patch Change-Id: I8a339076f445e3c650e407ae982c7c2dc4a760b2
2020-10-01update expected resultsNeels Hofmeyr1-1/+14
Change-Id: Icb534a2b00fc48c3ead009a620e6061e595cb581
2020-09-16msc: Validate RTP addr+port passed from MNCC to MGCP MDCXPau Espin Pedrol1-7/+21
Change-Id: I0b53643ed3a8f8550b2ea6e8832068d603a676e1
2020-09-16mncc: Support IPv6 addresses (new version mncc 7)Pau Espin Pedrol2-6/+33
Apparently commit 06b859ca314f53a902329ed95848dbafef1d4f87 forgot to bump the MNCC_SOCK_VERSION field from 5 to 6. Change-Id: I5448ff931ec33f24f4837a51376f1703fe97683b
2020-09-15msc: Introduce module param to disable crashing test in latestPau Espin Pedrol1-4/+7
Otherwise all tests run after ruing MSC_Tests_Iu.control fail. Change-Id: I46f1066323e19dfe708402a8c9c68e257f62751c
2020-09-15msc: Drop parameter mp_enable_osmux_testPau Espin Pedrol1-14/+5
That was needed for osmo-msc <= 1.3.0, and we are at 1.6.1 now. Change-Id: I8bc0551ec91a5fd8ea2f291a1e16a06a739c7a75
2020-09-09msc: Introduce tests to verify BSSAP and MGCP handling with IPv6Pau Espin Pedrol2-11/+91
It tests IPv6 Transport Address are passed correctly through BSSAP, and forwards handles them correctly as an MGCP client too. Change-Id: Id616926dd4a9febc4268eea2ee1e377b2d22753a
2020-09-07msc: Fix wrong mgcp conn expected in several placesPau Espin Pedrol1-10/+10
Change-Id: I0bb15881e640fe49552108679894d5df15339fc8
2020-08-25msc: add TC_paging_response_[it]msi_unknownNeels Hofmeyr1-0/+46
These uncover crashes of current osmo-msc master, when a Paging Response contains an unknown mobile identity. Hence run them last. The crash is fixed by osmo-msc Ia2c8fa745cfab17ed7114d433f625ddc02ae7b11 Related: OS#4724 Related: Ia2c8fa745cfab17ed7114d433f625ddc02ae7b11 (osmo-msc) Change-Id: I40496bbccbbd9c496cfa57df49e26f124a2b1554
2020-08-25msc: add TC_cmserv_tmsi_unknown()Neels Hofmeyr1-0/+38
We already have TC_cmserv_imsi_unknown, but lack a test that shows CM Service Request behavior for an unknown TMSI. Looking at OS#4721 I vaguely expected an ID Request to also happen during CM Service Request, but instead we reject the unknown TMSI completely, and require the MS to perform a proper LU subsequently. Related: OS#4721 Change-Id: I54e5efcf4c31625205c99338379a2055633acde9
2020-08-25msc: add TC_attached_imsi_lu_unknown_tmsi()Neels Hofmeyr1-0/+89
The test currently fails with osmo-msc master. It uncovers the evil twin aspect of osmo-msc's VLR, for an attached IMSI re-attaching with an unknown TMSI. Related: OS#4721 Change-Id: Ia53733fc5bc414b0e3d3897f25b549f5183c862d
2020-08-20msc: Fix repeated execution of TC_sgsap_unsol_ud()Harald Welte1-7/+14
Change-Id: I6c2f1a5d5b5316ffe462335f8461c31564ce4274 Closes: OS#4722
2020-08-20msc: Make TC_lu_and_mo_call_sccp_tiar_timeout() more reliableHarald Welte1-1/+4
There is a race condition when shutting down, as a DLCX might arrive while we are half-shutdown. Expect both DLCX before terminating the ConnHdlr. Change-Id: Ia0342a9bb346929e0e538f4cb571abfc4acac6bf
2020-08-19msc: fix log typo in f_tc_cmserv_imsi_unknown()Neels Hofmeyr1-1/+1
Change-Id: If7aa20cd7fea81107f3748251070c32bb08f1f4e
2020-08-19msc: Expect CommonID from MSC by defaultHarald Welte2-2/+23
As of osmo-msc Change-Id I2552736477663adb250c55728093500e8ae83ebb, osmo-msc is always sending BSSMAP CommonID to the BSC. Let's adjust our test expectation, while allowing the user to start the tests with BSC_ConnectionHandler.mp_expect_common_id := false to get the existing behavior (expect no bSSMAP CommonId) can be restored, e.g. for testing 'latest'. Change-Id: I4976d9bb1f07c8ab4ffa02848414f8ddd1bdfd3f Related: OS#2969
2020-08-18msc: Use random chosen unused local TCP port number for SMPP clientHarald Welte1-1/+1
The existing code passed -1 as TCP port number to the SMPP client. This - very unintuitively - causes TITAN to always chose port number 9999, as that's the default value in IPL4asp. Let's use '0' instead. Change-Id: I4db38f4099c388bed23f9a3611619866ede9cbc5
2020-07-08msc: verify conn and VLR cell id in most testsNeels Hofmeyr2-26/+135
osmo-msc failed to record the Complete Layer 3 Information LAC and CI in the MSC-A as well as the VLR record. Since osmo-msc Iee1781985fb25b21ce27526c6a3768bf70d4dc9a and I194271af2acb37b4f8cc2d106ab2fd2b0d443589, osmo-msc properly records these for successful Complete Layer 3 procedures. Incorporate verification of the LAC and CI in all tests calling f_perform_lu() and f_expect_clear(). Implement by scraping the output of vty 'show subscriber imsi 1234 conn' Some tests model a failure to attach, or expire the VLR record: for those, add parameter verify_cell_id to g_pars, and pass it as false, to skip checking the LAC and CI. Disable CI checking for all Iu tests globally in f_verify_vty_lac_ci(), see OS#4634. For the latest build, which does not yet record LAC and CI properly, provide mp_enable_cell_id_test, which skips all cell id verification if set to false. Put to effect by docker-playground I052fea208021509e12826c50474b96474e7a58c2. Related: OS#4627 Depends: Iee1781985fb25b21ce27526c6a3768bf70d4dc9a (osmo-msc) Change-Id: Ie410714a96353f74a52a104c56fa0a08683e0004
2020-06-14move type RAN_Configurations to RAN_Adapter.ttcnppNeels Hofmeyr1-1/+0
So far used only in MSC_Tests.ttcn, but soon to be used also in BSC_Tests.ttcn. Change-Id: If8f7fd50a88302af645ab337a907d8f0ad79a306
2020-05-19update expected resultsNeels Hofmeyr1-49/+26
Change-Id: I37014274ee97f09985c31966e7cc9122fe11a856
2020-05-18library/IPA: split t_ASP_IPA_EVT_UD into send / receive templatesVadim Yanitskiy1-1/+1
Change-Id: Ib5494bff3f9aa0ac396b729c326e7b4a64c5a5dd
2020-05-11msc: add tests for SMS and voice call while PagingNeels Hofmeyr3-8/+139
Start a second - MT SMS - MT call while a Paging is already ongoing. The second trans being an SMS works. The second trans being a call fails with current osmo-msc master; a fix is in the related patch (s.b.). Related: Idd4537b5f4817d17e5c87d9a93775a32aee0e7be Change-Id: Ieeae6322d4e80893ea3408c6b74bf8e32bea8e46
2020-04-29Split templates in RLCMAC_{CSN1_}Types into their own _Templates filePau Espin Pedrol1-1/+1
RLCMAC blocks have a lot of fields and we will potentially require lots of different templates, as well as functions to handle related structs. Change-Id: I9c6597178168aa3848b21930f33be698dd2ce545
2020-04-28pcu: Introduce test TC_mo_ping_pong_with_ul_racapPau Espin Pedrol1-1/+1
Test sending MS RA capabilities through Packet Resource Request to update GPRS multislot class. EGPRS multislot will come in a later commit. Change-Id: I5026d8b78a3fb82093956b65989d18fa6f6d5424
2020-03-28library/GSM_RR_Types: do not duplicate Mobile Identity recordsVadim Yanitskiy1-2/+2
All the records related to Mobile Identity IE (see 3GPP TS 24.008, section are defined in [1], so there is no real need to dumplicate them. Moreover, most of the related templates in library/L3_Templates.ttcn are based on these records. [1] titan.ProtocolModules.MobileL3_v13.4.0/src/MobileL3_CommonIE_Types.ttcn Change-Id: I27c2743c59db770d6f7e9447dc8c1f539b228ced
2020-01-20MSC: add a test case to check T3212 expiration during pagingVadim Yanitskiy3-0/+50
Long story short: some time ago I noticed that OsmoMSC crashes if T3212 expires during the Paging procedure. This is not the case anymore (as the test case shows) and apparently the bug has been fixed, hovewer I believe it makes sense to add this test case. Change-Id: If9147ae8b07d5120d2853b9acda2313910ac48be
2020-01-15MSC/SMPP: fix RP-ACK expectations in TC_smpp_mo_smsVadim Yanitskiy1-2/+6
The MSC shall not send RP-ACK before the response from ESME. Change-Id: Ide1376cae8e75412039b7dc9f0b8bb390eab2280 Related: OS#4351
2020-01-15MSC/SMPP: introduce TC_smpp_mo_sms_rp_error for OS#4351Vadim Yanitskiy2-0/+46
This test case reproduces the problem described in OS#4351: 1. MS/UE submits a MO SMS which it getting touted to an ESME; 2. MSC prematurely responds with RP-ACK to the MS/UE; 3. ESME responds with DELIVER-SM error; 4. SMS transaction is already terminated (by RP-ACK). Expected behaviour: 1. MS/UE submits a MO SMS which it getting touted to an ESME; 2. ESME responds with DELIVER-SM error; 3. MSC terminates the SMS transaction with RP-ERROR. Change-Id: I33c6ea0ffdf8b8a45f587d690bdceb38fc42c898 Related: OS#4351
2020-01-15MSC/SMS-over-GSUP: cosmetic: use a single log() call to print received PDUVadim Yanitskiy1-4/+2
Change-Id: I862766ac87715d5ad141405f343f0563fd75150f
2020-01-15MSC: fix coding style in f_tc_lu_and_mt_sms_paging_and_nothing()Vadim Yanitskiy1-12/+11
Change-Id: Ide647f62150b2ca64e12044ae8dae5bb33e600c2
2020-01-13MSC/Iu: fixup: start 16 BSC_ConnHdlr components in parallelVadim Yanitskiy1-3/+3
Since Ibca0e9196c25ab00803041b81f7b490ba2f0a3ba we can have up to 16 components of type BSC_ConnHdlr running in parallel. Both TC_multi_lu_and_{mo,mt}_ussd test cases have been updated, but their Iu/UMTS siblings have not. Let's fix this. Change-Id: Iaa7347e973ee617cc1780b84e0c298f0a302227c
2020-01-12msc: Introduce test TC_(iu_)chan_rel_sccp_tiar_timeoutPau Espin Pedrol3-0/+64
Verify SCCP T(iar) timeout triggers release of established channel. Related: OS#4343 Change-Id: Id6488a262e656f5c8fabb4e81f4797b305eb09e2
2020-01-10MSC: add test cases for concurrent MO/MT SS/USSD transactionsVadim Yanitskiy3-0/+87
Both test cases make use of the existing functions: - TC_multi_lu_and_mo_ussd: f_tc_lu_and_mo_ussd_single_request(), - TC_multi_lu_and_mt_ussd: f_tc_lu_and_mt_ussd_notification(), starting several (*) BSC_ConnHdlr components in parallel. (*) The maximum amount is limited by 16 - this is as much as both GSUP and SCTP emulation components can handle. Change-Id: I2fb1c5d285163d5245d92fa24c197a5027ecbe6f Related: OS#2931
2020-01-10MSC: f_ran_register_imsi(): allow passing omit as TMSIVadim Yanitskiy1-60/+11
Change-Id: I6dd2f77283a79e83f028115f4cc42f05db885838
2020-01-10MSC/Iu: fix SS/USSD tests: pass g_pars.tmsi to f_ran_register_imsi()Vadim Yanitskiy1-4/+4
Makes both TC_iu_proc_ss_abort and TC_iu_proc_ss_paging_fail pass. Change-Id: If7d58cb50d2810975bd547e4e828783b0255d809
2020-01-07MSC/Iu: add missing SS/USSD test cases from MSC_Tests.ttcnVadim Yanitskiy2-0/+52
Change-Id: I99e888708ed1efeab12a4c88c734a78619a39888
2020-01-07MSC/GSUP: make session ID for MT SS/USSD configurableVadim Yanitskiy2-7/+9
This would allow to run multiple SS/USSD transactions in parallel. Change-Id: I326b5e47f4c1e9f9209efa64c143c3dc64132edb
2020-01-05MSC: fix SM-RP-OA (SMSC Address) expectations for MT SMSVadim Yanitskiy1-2/+3
Since [1] we started to match the SMSC Address in f_mt_sms_expect(). That change caused test case failures because OsmoMSC hard-codes a different SMSC Address. Let's fix this. [1] Ib467eeca6439bc6cce72293fbb5bb48f6d233db9 Change-Id: I3bdb6a74c8b02e4bf8dc88634e2380c924242b4b
2020-01-04MSC_Tests.ttcn: introduce TC_mm_id_resp_no_identityVadim Yanitskiy1-0/+38
While investigating OS#4340, it was discovered that a malformed MM Identity Request with MI Type '111'B crashes OsmoMSC. Unfortunately, I could not find a way to encode such an invalid message in TITAN (because value '111'B is reserved), so I figured out that '000'B also crashes OsmoMSC. MM Identity Request is triggered by initiating an Update Location Request with reserved TMSI value 'FFFFFFFF'O (unknown to the MSC). Change-Id: I62f23355eb91df2edf9dc837c928cb86b530b743 Related: OS#4340
2020-01-03MSC_Tests.ttcn: fix: verify the contents of SM-RP-DA/OA for MO/MT SMSVadim Yanitskiy2-9/+19
Change-Id: Ib467eeca6439bc6cce72293fbb5bb48f6d233db9 Related: OS#4324
2020-01-03library/GSUP_Types.ttcn: fix MSISDN / SMSC coding in SM-RP-OA/DAVadim Yanitskiy1-2/+4
Unlike IMSI, both MSISDN and SMSC address in SM-RP-OA/DA not only contain the BCD encoded digits, but also a little header with NPI (Numbering Plan Identification), ToN (Type of Number), and Extension fields. Change-Id: I3f55834489f3e613f541cf1e216027e8d48ccaf0 Related: OS#4324
2020-01-03MSC/BSC_ConnectionHandler: only keep SMSC address in SmsParametersRpVadim Yanitskiy2-6/+16
When sending MO or MT SMS, we never include both SM-RP-DA/OA IEs at the same time. In case of MO SMS, SM-RP-OA is omitted, and in case of MT SMS - SM-RP-DA is omitted. Change-Id: Ia60bdd2498034b6b849f874cf1eee272abef2b47
2020-01-01msc: Introduce test TC_lu_imsi_timeout_tmsi_reallocPau Espin Pedrol4-2/+78
Related: OS#4336, OS#4337 Change-Id: I603b2b2b1ae7edd6360ea38c6bbbfedc46e9fa5d
2019-12-17msc: Remove trailing whitespacePau Espin Pedrol2-3/+1
Change-Id: I934dd3504fa91e2006fbc9b1133836060eb0591e
2019-12-12msc: expect only one Paging on GERANNeels Hofmeyr1-2/+28
After discussion on this thread: Do not expect repeated Paging on GERAN. Pending clarification on 3G, still expect repeated Paging on Iu, though we are not 100% certain that this is indeed required. Fixes MSC_Tests.TC_lu_and_mt_sms_paging_repeated, but not MSC_Tests_Iu.TC_iu_lu_and_mt_sms_paging_repeated Change-Id: Ie914ea88f31ac158f4bd1700143bbe728dd05e0b
2019-12-12msc: Iu: fix missing 'ran_is_geran := false' for ↵Neels Hofmeyr1-1/+1
TC_iu_lu_and_mt_sms_paging_repeated Change-Id: I011795cacf62f2cac6861fe657966795e6370ddb
2019-12-12msc: fix 2 Iu tests: use f_mm_common() instead of f_mm_auth()Neels Hofmeyr1-2/+2
Fix these tests by using f_mm_common(), which takes care of Iu auth+ciph: TC_iu_lu_imsi_reject TC_iu_lu_imsi_timeout_gsup Change-Id: Id2bf160ac4e1cad4770202c6a6f1b8eeeee21d68