ipa: Give all components proper names to aid log interpretation
diff --git a/library/BSSMAP_Emulation.ttcn b/library/BSSMAP_Emulation.ttcn
index 290bf32..5213606 100644
--- a/library/BSSMAP_Emulation.ttcn
+++ b/library/BSSMAP_Emulation.ttcn
@@ -57,6 +57,7 @@
/* use 16 as this is also the number of SCCP connections that SCCP_Emulation can handle */
var ConnectionData ConnectionTable[16];
+ var charstring g_bssmap_id;
var integer g_next_e1_ts := 1;
};
@@ -226,7 +227,7 @@
/* call-back type, to be provided by specific implementation; called when new SCCP connection
* arrives */
-type function BssmapCreateCallback(ASP_SCCP_N_CONNECT_ind conn_ind)
+type function BssmapCreateCallback(ASP_SCCP_N_CONNECT_ind conn_ind, charstring id)
runs on BSSMAP_Emulation_CT return BSSAP_ConnHdlr;
type function BssmapUnitdataCallback(PDU_BSSAP bssap)
@@ -237,8 +238,9 @@
BssmapUnitdataCallback unitdata_cb
}
-function main(BssmapOps ops) runs on BSSMAP_Emulation_CT {
+function main(BssmapOps ops, charstring id) runs on BSSMAP_Emulation_CT {
+ g_bssmap_id := id;
f_conn_table_init();
while (true) {
@@ -270,7 +272,7 @@
/* SCCP -> Client: new connection from BSC */
[] SCCP.receive(ASP_SCCP_N_CONNECT_ind:?) -> value conn_ind {
- vc_conn := ops.create_cb.apply(conn_ind);
+ vc_conn := ops.create_cb.apply(conn_ind, id);
/* store mapping between client components and SCCP connectionId */
f_conn_table_add(vc_conn, conn_ind.connectionId);
/* handle user payload */