summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-18 17:17:19 +0200
committerpespin <pespin@sysmocom.de>2019-06-19 10:52:11 +0000
commit392963fa28231ee23567c2e99ec7f8a0c4614002 (patch)
tree86a2e77859d7b220411c6a60a0bb40a78715fc92
parent1fc30b94835d9125393d02c5ba51e002973c8b3c (diff)
bsc: Move hardcoded ip addr to variable
This way it's more clear what are those IP addresses for. Change-Id: I3600fd0d0486205e5bdc487fa75e9038d3bfb52c
-rw-r--r--bsc/MSC_ConnectionHandler.ttcn4
1 files changed, 3 insertions, 1 deletions
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index c709794..4436b0c 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -360,6 +360,8 @@ type component MSC_ConnHdlr extends RAN_ConnHdlr, RSL_DchanHdlr, MGCP_ConnHdlr {
var MediaState g_media;
var TestHdlrParams g_pars;
+ var charstring host_bts := "127.0.0.2";
+ var charstring host_mgw := "127.0.0.3";
var boolean g_vty_initialized := false;
}
@@ -878,7 +880,7 @@ runs on MSC_ConnHdlr {
codecType := FR_AMR;
}
- f_MscConnHdlr_init(g_pars.media_nr, "127.0.0.2", "127.0.0.3", codecType);
+ f_MscConnHdlr_init(g_pars.media_nr, host_bts, host_mgw, codecType);
/* patch in the LCLS related items, as needed */
f_ass_patch_lcls(ass_tpl, exp_ass_cpl);