msc: Use random chosen unused local TCP port number for SMPP client

The existing code passed -1 as TCP port number to the SMPP client.
This - very unintuitively - causes TITAN to always chose port number
9999, as that's the default value in IPL4asp.  Let's use '0' instead.

Change-Id: I4db38f4099c388bed23f9a3611619866ede9cbc5
This commit is contained in:
Harald Welte 2020-08-18 22:57:52 +02:00
parent ff8a9f272d
commit 4698a4c4e3
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ function f_init_smpp(charstring id) runs on MTC_CT {
vc_SMPP := SMPP_Emulation_CT.create(id);
map(vc_SMPP:SMPP_PORT, system:SMPP_PORT);
vc_SMPP.start(SMPP_Emulation.main_client(pars, mp_msc_ip, mp_msc_smpp_port, "", -1));
vc_SMPP.start(SMPP_Emulation.main_client(pars, mp_msc_ip, mp_msc_smpp_port, "", 0));
}