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 <lafo...@gnumonks.org>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder

Reply via email to