This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
neels gerrit-no-reply at lists.osmocom.orgneels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25067 )
Change subject: MNCC_Emulation: allow moving call handling to another test component
......................................................................
MNCC_Emulation: allow moving call handling to another test component
Will be used by MSC_Tests.TC_call_re_establishment in
Ifdff5573eeb3b3d41e8599b9b0228411d2576864
where a call from one vc_conn gets re-established in another vc_conn.
Related: SYS#5130
Change-Id: If7e952e54ebd1bb88cce11ec5f0ff4826e02cb63
---
M library/MNCC_Emulation.ttcn
1 file changed, 15 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/67/25067/1
diff --git a/library/MNCC_Emulation.ttcn b/library/MNCC_Emulation.ttcn
index 49b1249..5aa8525 100644
--- a/library/MNCC_Emulation.ttcn
+++ b/library/MNCC_Emulation.ttcn
@@ -287,6 +287,7 @@
var MNCC_PDU mncc;
var MNCC_ConnHdlr vc_hdlr;
var charstring dest_nr;
+ var uint32_t mncc_call_id;
alt {
/* MNCC -> Client: UNIT-DATA (connectionless SCCP) from a BSC */
@@ -360,6 +361,11 @@
MNCC_PROC.reply(MNCCEM_register:{dest_nr, vc_hdlr}) to vc_hdlr;
}
+ [] MNCC_PROC.getcall(MNCCEM_steal_call:{?,?}) -> param(mncc_call_id, vc_hdlr) {
+ f_call_table_del(mncc_call_id);
+ f_call_table_add(vc_hdlr, mncc_call_id);
+ MNCC_PROC.reply(MNCCEM_steal_call:{mncc_call_id, vc_hdlr}) to vc_hdlr;
+ }
}
}
}
@@ -384,9 +390,10 @@
/* procedure based port to register for incoming calls */
signature MNCCEM_register(in charstring dest_nr, in MNCC_ConnHdlr hdlr);
+signature MNCCEM_steal_call(in uint32_t mncc_call_id, in MNCC_ConnHdlr hdlr);
type port MNCCEM_PROC_PT procedure {
- inout MNCCEM_register;
+ inout MNCCEM_register, MNCCEM_steal_call;
} with { extension "internal" };
/* CreateCallback that can be used as create_cb and will use the expectation table */
@@ -445,6 +452,13 @@
}
}
+/* Move MNCC handling for a given call id to another MNCC_ConnHdlr test component. */
+function f_create_mncc_steal_call(uint32_t mncc_call_id) runs on MNCC_ConnHdlr {
+ MNCC_PROC.call(MNCCEM_steal_call:{mncc_call_id, self}) {
+ [] MNCC_PROC.getreply(MNCCEM_steal_call:{?,?}) {};
+ }
+}
+
function DummyUnitdataCallback(MNCC_PDU mncc)
runs on MNCC_Emulation_CT return template MNCC_PDU {
log("Ignoring MNCC ", mncc);
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25067
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If7e952e54ebd1bb88cce11ec5f0ff4826e02cb63
Gerrit-Change-Number: 25067
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210727/e9ad278b/attachment.htm>