bsc: Start MGCP transaction ID sequence based on media_nr

This allows different MscConnHandlers to concurrently submit MGCP
messages with unique transaction ID through the shared MGCP-over-IPA
multiplex BSC<->MSC.

Without this, 2 MscConnHandlers would both send a
CRCX using trans_id=0, and the ConnectionTable in RAN_Emulation.cpp
would lookup and return the first MscConnHandler in the table during the
2nd CRCX ACK which was targeted at the second MscConnHandler.

Change-Id: Icb09d67a1f0207dc8501dd2b47c9162175b691b1
This commit is contained in:
Pau Espin 2023-09-28 14:51:42 +02:00 committed by pespin
parent b522e1cadb
commit 577688be97
2 changed files with 2 additions and 0 deletions

View File

@ -12230,6 +12230,7 @@ testcase TC_mgwpool_all_used() runs on test_CT {
var TestHdlrParams pars2 := f_gen_test_hdlr_pars();
var MSC_ConnHdlr vc_conn2;
pars2.mgwpool_idx := 1;
pars2.media_nr := 2;
f_init(1, true, nr_mgw := 2);
f_sleep(1.0);

View File

@ -581,6 +581,7 @@ function f_MscConnHdlr_init_vty() runs on MSC_ConnHdlr {
/* initialize all parameters */
function f_MscConnHdlr_init(integer i, HostName bts, HostName mgw, BSSMAP_FIELD_CodecType codecType) runs on MSC_ConnHdlr {
g_trans_id := i * 1000; /* Avoid different MscConnHdlr submitting same trans_id over MGCP-IPA */
f_MediaState_init(g_media, i, bts, mgw, codecType);
f_MscConnHdlr_init_vty();
}