path: root/msc/
AgeCommit message (Collapse)AuthorFilesLines
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
2019-05-21Depend on our own fork of titan.ProtocolModules.BSSMAPPau Espin Pedrol1-1/+1
Since we use some BSSMAP extensions to signal Osmux, we need to maintain our own fork of BSSMAP_Types in order to supports those IEs in BSSMAP RESET and BSSMAP Assin Req/Compl. Hence, switch all build componenets to fetch and use our fork. Depends: titan.ProtocolModules.BSSMAP Iaf1e137269c0da20b2c96fd104b57edf336693af Change-Id: Ic8debe5f3ffe8e1d4258fa6b4632a3871b99af40
2019-04-30msc: Add RANAP to msc testsHarald Welte1-0/+5
Integrate RANAP to MSC_Tests.ttcn Related: OS#2856 Change-Id: Idfa54b7607ad6e7016ed9411b0cc5330c901ea34
2019-04-25RAN_Emulation: Modularize protocol supportHarald Welte1-1/+1
The RAN_Emulation currently unconditionally provides BSSAP and MGCP support. Let's re-structure the code so that support for those protocols is now possible to enable/disable at compile time. This patch is in preparation of introducing RANAP support in RAN_Emulation. Change-Id: Id53ba3ff05f9946230e0e4a759245de14a0f9fbd Related: OS#2856
2019-04-21Rename BSSMAP_Emulation -> RAN_EmulationHarald Welte1-1/+1
So far, BSSMAP_Emulation supported only a transport over BSSMAP. However, we soon intend to merge support for RANAP in order to simulate RANAP/Iu connections as well as BSSMAP. Let's start by renaming some of the existing types/functions/ports/modules without introducing any functional changes just yet. Related: OS#2857, OS#2856 Change-Id: Iecbcb0c6c136baad9460eca40606bb4010d8882d
2019-01-07WIP: MSC_Tests: Add SGs testcasesHarald Welte1-1/+1
This extens MSC_Tests.ttcn with an initial set of SGs interface test cases for RESET, LU, DETACH, PAGING, SMS and CSFB procedures In particular the following testcases are added: - TC_sgsap_reset: isolated reset procedure test - TC_sgsap_lu: isolated location update with TMSI realloc - TC_sgsap_lu_imsi_reject: location update, reject case - TC_sgsap_lu_and_nothing: location update with failed TMSI realloc - TC_sgsap_expl_imsi_det_eps: detach from EPS serveces - TC_sgsap_expl_imsi_det_noneps: detach from non-EPS services - TC_sgsap_paging_rej: isolated paging, reject case - TC_sgsap_paging_subscr_rej: isolated paging, subscr rejects call - TC_sgsap_paging_ue_unr: isolated paging, ue is unreachable - TC_sgsap_paging_and_nothing: page, but don't respond - TC_sgsap_paging_and_lu: check paging followed by an LU - TC_sgsap_mt_sms: mobile terminated SMS through SGs Interface - TC_sgsap_mo_sms: mobile originated SMS through SGs Interface - TC_sgsap_mt_sms_and_nothing: trigger SMS, but don't respond to paging - TC_sgsap_mt_sms_and_reject: trigger SMS, but reject paging - TC_sgsap_unexp_ud: Send unexpected unitdata (SGs Association: NULL) - TC_sgsap_unsol_ud: Send unsolicited unitdata (subscriber not in VLR) - TC_bssap_lu_sgsap_lu_and_mt_call: LU on 2G, LU on SGs and CSFB call - TC_sgsap_lu_and_mt_call: LU on SGs, and CSFB call Change-Id: I38543c35a9e74cea276e58d1d7ef01ef07ffe858 Depends: osmo-msc I73359925fc1ca72b33a1466e6ac41307f2f0b11d Related: OS#3645
2018-10-24Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handlingDaniel Willmann1-1/+1
This function can now be called from anywhere to try and safely shutdown a testcase. It is not optimal as we can't call "all component.stop" from outside the mtc, but without any proper and orderly shutdown handling of all our emulation components I believe this is the best we can do. To use it: import from Misc_Helpers all; in your module and then call Misc_Helpers.f_shutdown(__BFILE__, __LINE__); You can also pass the function a verdict and a message and it will take care of calling setverdict, but beware of the following: While setverdict would accept any number of arguments as log message and convert them to a log string f_shutdown expects one charstring. It's possible to use the log2str function to use the log arguments in setverdict for f_shutdown, for example setverdict(fail, "Template didn't match: ", tmpl_foo); would become Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo)); Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267
2018-10-10Add SGsAP_Templates for SGsAP on the MME<->MSC interfaceHarald Welte1-1/+5
Change-Id: I435dab312fc4965c69ffb9cc22917539ebab93e7
2018-08-07move USSD_Helpers.ttcn to libraryHarald Welte1-1/+1
We want to use those also from the HLR_Tests, not just from MSC_Tests. Change-Id: I22be6c03d85dc6d6a8266b5ebce5d0c69c0551ed
2018-07-24introduce a TTCN3 test suite for SCCPStefan Sperling1-1/+1
This test suite acts as an SCCP server on top of M3UA. SCCP tests are run against the sccp_demo_user program which can be found in libosmo-sccp/examples. This program must be started in client mode: sccp_demo_user -c The SCCP test suite should then work out of the box with the provided SCCP_Tests.cfg file and this additional change to sccp_demo_user default point codes: There is currently only one test, for the libosmo-sccp crash reported as issue OS#2666. The implementation of this test is currently using an ugly workaround due to shortcomings of the M3UA Emulation layer (see source code comments). Whether a better solution is feasible is still to be determined. The test requires a patch to the SCCP Protocol Emulation which has been submitted upstream: Change-Id: I03f5e8b282a7396b45417495c88d8fb81b26cda8 Related: OS#2666
2018-06-02msc: introduce USSD helper functionsVadim Yanitskiy1-0/+1
Change-Id: Ic528b968a9bc7c12e8395364e895400aa016c8f5
2018-06-02msc: import GSM 7-bit coding functionsVadim Yanitskiy1-0/+1
Change-Id: Ie8dd865d0c4c64827284c737d431e6c87b3d0847
2018-05-31msc: Add Encoder/Decoder for Supplementary ServicesHarald Welte1-1/+11
The many SS_* types depend on MAP, whcih in turn depends on ROSE. Add all of this to the MSC testsuite so we can do SS related testing. Change-Id: If5084decb5391736ab5cadd86adb2ffa78e7140f
2018-04-14msc: Add SMPP_Emulation + SMPP_TemplatesHarald Welte1-1/+1
Change-Id: I80efe16f603227694c6242d556ae77590271e4c6
2018-04-14msc: Add SMPP_CodecPortHarald Welte1-0/+1
Change-Id: I57640ccc5370d6820bc303003e162f27ddc9fcfd
2018-04-09L3_Templates: Introudce constants for tiFlagHarald Welte1-0/+5
... this makes the code more readable/understandable. Change-Id: Ic06eb2016eb9979b8556366e4a909f3c0336aa92
2018-03-18Remove M3UA/MTP3/SCCP code from this repo, use upstream reposHarald Welte1-4/+3
Originally, this code was not yet in an official upstream git repo. However, it has been for many months, so let's remove our local copy and use upstream git repositories like for all the other modules. Change-Id: I2c616fb865df32cfec323d42e5d0d06de40c497b
2018-03-16ignore results of .ttcnpp filesNeels Hofmeyr1-0/+2
Add another macro ignore_pp_results to and call from all files, to add results of *.ttcnpp files, i.e. generated *.ttcn files, to .gitignore. Change-Id: Ic7fb176226771212d7700dafaf27ac71f12a4a61 auto-generate .gitignore files to ignore symlinksNeels Hofmeyr1-1/+1
In each subdir that is a target for symlinks, automatically ignore the results of gen_links(): - At the top of, clear the .gitignore. - In the loop, add each link name to the local .gitignore. - In selected, there is also a "manual" link creationg. So that this also ends up in the local .gitignore, have the link creation as separate gen_link() macro which at the same time adds to ./.gitignore. - in the root .gitignore, ignore all the subdirs' generated */.gitignore files. Change-Id: I73c11fe8362358bf7e1bdf0e1be53399b5d3351b
2018-03-16fix don't include source dir as link targetNeels Hofmeyr1-8/+1
First of all, use one common place to define the gen_links() macro, in In this new file, add a 'shift' to exclude the $DIR arg from also appearing in $FILES. This prevents the following wrong symlinks in the source dirs: M3UA_CNL113537/src/src MTP3asp_CNL113337/src/src SCCP_CNL113341/src/src Change-Id: Ia8493e77df1ba8723f2c5d2a49816247b0fb55f7
2018-02-20IPA_Emulation: Make dependencies to RSL/MGCP/SCCP/GSUP conditionalHarald Welte1-2/+2
Let's use the preprocessor to avoid IPA_Emulation pulling *all* dependencies into each and any of our projects. The code readability suffers a bit from the many #ifdefs, but compilation speed increases if we don't have to pull in all those (recursive) dependencies. After all, a BTS test case will never need SCCP, GSUP or MGCP. Change-Id: Ic0231adbd2171214de133d26b3fbf36130ee8aa0
2018-02-16Add L3_Common for shared L3 functions between MSC and SGSN testingHarald Welte1-1/+1
Change-Id: I16e80df610235849180dc946f9457302deafb9d2
2018-02-05Don't symlink non-existent fileMax1-1/+1
Change-Id: I10309f07fb207c027703f0b43a478c152a029b6d
2018-01-27msc: rename sub-directory from msc_tests to msc (to be in line with bsc, etc.)Harald Welte1-0/+84
Change-Id: Ib219dee5e587bca3b79d29d631836cf1ef2be81c