[MERGED] osmo-ttcn3-hacks[master]: BSSMAP_Emulation: Sleep 1s to wait for M3UA/AS/ASP to come a...

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
Wed Feb 14 19:22:49 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: BSSMAP_Emulation: Sleep 1s to wait for M3UA/AS/ASP to come active
......................................................................


BSSMAP_Emulation: Sleep 1s to wait for M3UA/AS/ASP to come active

We don't have a good way to make the BSSMAP code wait for the lower
SIGTRAN layers to be up and running.  To avoid the RESET being
sent before the lower layers are up, introduce a sleep of 1s.

This is ugly, but appears to work for now.  A more proper solution
is more than welcome.

Change-Id: I7a43b3e381405f3af30b3ffe04bc50e64ec66f57
---
M library/BSSMAP_Emulation.ttcn
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/BSSMAP_Emulation.ttcn b/library/BSSMAP_Emulation.ttcn
index b1c6b81..67d9e98 100644
--- a/library/BSSMAP_Emulation.ttcn
+++ b/library/BSSMAP_Emulation.ttcn
@@ -523,6 +523,7 @@
 	f_expect_table_init();
 
 	if (isvalue(ops.sccp_addr_peer) and isvalue(ops.sccp_addr_local)) {
+		f_sleep(1.0);	/* HACK to wait for M3UA/ASP to be ACTIVE */
 		f_bssap_reset(ops.sccp_addr_peer, ops.sccp_addr_local);
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/6455
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7a43b3e381405f3af30b3ffe04bc50e64ec66f57
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list