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/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/5946
BSSAP_Adapter: Always perform BSSMAP Reset on start-up
Change-Id: I1f8834be3409348b3a30b1489f5faa4d1c47b086
---
M library/BSSAP_Adapter.ttcn
1 file changed, 13 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/46/5946/1
diff --git a/library/BSSAP_Adapter.ttcn b/library/BSSAP_Adapter.ttcn
index 98a30d8..0ebcc3d 100644
--- a/library/BSSAP_Adapter.ttcn
+++ b/library/BSSAP_Adapter.ttcn
@@ -98,16 +98,23 @@
/* connect MTP3 service provider (M3UA) to lower side of SCCP */
connect(vc_M3UA:MTP3_SP_PORT, vc_SCCP:MTP3_SCCP_PORT);
- if (isvalue(ops)) {
- connect(vc_BSSMAP:BSSAP, vc_SCCP:SCCP_SP_PORT);
- } else {
- /* connect BSSNAP dispatcher to upper side of SCCP */
- connect(self:BSSAP, vc_SCCP:SCCP_SP_PORT);
- }
+ /* connect ourselves to upper side of SCCP */
+ connect(self:BSSAP, vc_SCCP:SCCP_SP_PORT);
vc_M3UA.start(f_M3UA_Emulation(mp_sctp_addr));
vc_SCCP.start(SCCPStart(g_sccp_pars));
+
if (isvalue(ops)) {
+ timer T := 5.0;
+ T.start;
+ T.timeout;
+ /* Perform reset procedure */
+ f_bssap_reset();
+ /* disconect ourselves */
+ disconnect(self:BSSAP, vc_SCCP:SCCP_SP_PORT);
+ /* connect BSSNAP component to upposer side of SCCP */
+ connect(vc_BSSMAP:BSSAP, vc_SCCP:SCCP_SP_PORT);
+ /* start the BSSMAP emulation */
vc_BSSMAP.start(BSSMAP_Emulation.main(valueof(ops), ""));
}
}
--
To view, visit https://gerrit.osmocom.org/5946
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f8834be3409348b3a30b1489f5faa4d1c47b086
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>