[PATCH] libosmo-sccp[master]: osmo_ss7: Make sure to start server-side ASP FSM for dynamic...

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
Tue Apr 11 20:15:23 UTC 2017


Review at  https://gerrit.osmocom.org/2305

osmo_ss7: Make sure to start server-side ASP FSM for dynamically created ASPs

Change-Id: I5dd079158a8c6b176a94dc251748924ef3e9c937
---
M src/osmo_ss7.c
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/05/2305/1

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index e79d721..b32f5d9 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1416,9 +1416,12 @@
 			snprintf(namebuf, sizeof(namebuf), "asp-dyn-%u", dyn_asp_num++);
 			asp = osmo_ss7_asp_find_or_create(oxs->inst, namebuf, 0, 0,
 							  OSMO_SS7_ASP_PROT_M3UA);
-			if (asp)
+			if (asp) {
 				LOGP(DLSS7, LOGL_INFO, "%s: created dynamicASP %s\n",
 					sock_name, asp->cfg.name);
+				asp->cfg.is_server = true;
+				osmo_ss7_asp_restart(asp);
+			}
 		}
 		if (!asp) {
 			osmo_stream_srv_destroy(srv);

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5dd079158a8c6b176a94dc251748924ef3e9c937
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list