msc: Make MGW ip/port parameters configurable as module parameters

Change-Id: I9148ebd687a1cf96a4b8c433e771785e30216cbc
This commit is contained in:
Harald Welte 2018-01-27 20:08:24 +01:00
parent 3c68a54896
commit 6126fb0ee0
1 changed files with 5 additions and 3 deletions

View File

@ -71,6 +71,8 @@ modulepar {
/* local parameters of emulated HLR */
charstring mp_hlr_ip := "127.0.0.1";
integer mp_hlr_port := 4222;
charstring mp_mgw_ip := "127.0.0.1";
integer mp_mgw_port := 2427;
charstring mp_msc_mncc := "/tmp/mncc";
}
@ -95,10 +97,10 @@ function f_init_mgcp(charstring id) runs on MTC_CT {
unitdata_cb := refers(MGCP_Emulation.DummyUnitdataCallback)
}
var MGCP_conn_parameters pars := {
callagent_ip := "127.0.0.1",
callagent_ip := mp_msc_ip,
callagent_udp_port := -1,
mgw_ip := "127.0.0.1",
mgw_udp_port := 2427
mgw_ip := mp_mgw_ip,
mgw_udp_port := mp_mgw_port
}
vc_MGCP := MGCP_Emulation_CT.create(id);