From ed6cc3e51e5da26c5bd8d5d6b88b388fb0bcd4b5 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 6 Nov 2019 19:56:23 +0700 Subject: osmo_ss7.c: fix xua_accept_cb(): properly assign role Most likely, we want all dynamically allocated ASPs to play the SG role by default. Otherwise when using the following configuration: cs7 instance 0 xua rkm routing-key-allocation dynamic-permitted listen m3ua 2905 accept-asp-connections dynamic-permitted both OsmoMSC and OsmoBSC fail to establish connections. Change-Id: Ib904ecf0e5d192a1024863f6f0fdf79301055655 Fixes: I2df9cd9747ad5c9a05d567d9a71bab6184c53674 Related: OS#4247 --- src/osmo_ss7.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c index 77e8f72..7ff3efe 100644 --- a/src/osmo_ss7.c +++ b/src/osmo_ss7.c @@ -1763,6 +1763,7 @@ static int xua_accept_cb(struct osmo_stream_srv_link *link, int fd) LOGP(DLSS7, LOGL_INFO, "%s: created dynamic ASP %s\n", sock_name, asp->cfg.name); asp->cfg.is_server = true; + asp->cfg.role = OSMO_SS7_ASP_ROLE_SG; asp->cfg.local.host[0] = NULL; asp->cfg.local.host_cnt = 1; asp->cfg.remote.port = atoi(portbuf); -- cgit v1.2.3