summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-01 18:23:07 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-01 18:35:24 +0200
commitcbe911cbf42e88090c2f7876d6a8e52391883471 (patch)
treef293d75003145eb69378030cc532312cbeb8a421
parente102eae88ce6792b29a06db668518e0e92f10163 (diff)
bsc: Derive MGCP EP + Port numbers from new g_pars.media_nr
-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 1a5bed9..16a0547 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -361,6 +361,7 @@ type record TestHdlrParams {
GsmFrameNumber fn,
hexstring imsi,
RslLinkId link_id,
+ integer media_nr, /* determins MGCP EP, port numbers */
BSSMAP_IE_SpeechCodecList ass_codec_list optional,
TestHdlrEncrParams encr optional
};
@@ -370,6 +371,7 @@ template (value) TestHdlrParams t_def_TestHdlrPars := {
fn := 23,
imsi := '001019876543210'H,
link_id := valueof(ts_RslLinkID_DCCH(0)),
+ media_nr := 1,
ass_codec_list := omit,
encr := omit
}
@@ -712,7 +714,7 @@ return boolean {
/* establish a channel fully, expecting an assignment matching 'exp' */
function f_establish_fully(template (omit) PDU_BSSAP ass_tpl, template PDU_BSSAP exp_ass_cpl)
runs on MSC_ConnHdlr {
- f_MscConnHdlr_init(1, "127.0.0.2", "127.0.0.3");
+ f_MscConnHdlr_init(g_pars.media_nr, "127.0.0.2", "127.0.0.3");
f_create_chan_and_exp();
/* we should now have a COMPL_L3 at the MSC */