summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-11-06 19:56:23 +0700
committerlaforge <laforge@osmocom.org>2019-11-06 15:53:59 +0000
commited6cc3e51e5da26c5bd8d5d6b88b388fb0bcd4b5 (patch)
treec5266fcbdaee916283bdd03a0edae69de35229d6
parentc71fb71916ebe258516dd128778a814efbc52372 (diff)
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
-rw-r--r--src/osmo_ss7.c1
1 files changed, 1 insertions, 0 deletions
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);