summaryrefslogtreecommitdiffstats
path: root/msc/BSC_ConnectionHandler.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-04-21 20:58:35 +0200
committerHarald Welte <laforge@gnumonks.org>2019-04-30 19:07:47 +0200
commitdceacc77e74935c5819c45ed513bdb761a7c1813 (patch)
tree536eefe5c8eb63e2967a082f94cbaa943d781695 /msc/BSC_ConnectionHandler.ttcn
parent9b751a6575333a854b777cc8fb894328e51fcafe (diff)
msc: Introduce f_cl3_or_initial_ue as replacement for f_bssap_compl_l3()
The new function will check the RAN type and dispath to f_bssap_compl_l3() in case of 2G/GERAN and to f_ranap_initial_ue() on case of 3G/UTRAN. Change-Id: Ia27afa265d441d1a0cbb40cc2d938aff46fa25f9
Diffstat (limited to 'msc/BSC_ConnectionHandler.ttcn')
-rw-r--r--msc/BSC_ConnectionHandler.ttcn16
1 files changed, 11 insertions, 5 deletions
diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index e603035..1fd02aa 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -311,6 +311,16 @@ runs on BSC_ConnHdlr {
}
}
+/* Send BSSMAP Complete L3 or RANAP Initial UE depending on 2G/3G RAN type */
+function f_cl3_or_initial_ue(PDU_ML3_MS_NW l3)
+runs on BSC_ConnHdlr {
+ if (g_pars.ran_is_geran) {
+ f_bssap_compl_l3(l3);
+ } else {
+ f_ranap_initial_ue(l3);
+ }
+}
+
type enumerated EstablishType {
EST_TYPE_MO_CALL,
EST_TYPE_EMERG_CALL,
@@ -351,11 +361,7 @@ runs on BSC_ConnHdlr {
}
/* Send BSSAP_Conn_Req with COMPL L3 INFO to MSC */
- if (g_pars.ran_is_geran) {
- f_bssap_compl_l3(l3_info);
- } else {
- f_ranap_initial_ue(l3_info);
- }
+ f_cl3_or_initial_ue(l3_info);
f_mm_common();
if (g_pars.net.expect_ciph) {