aboutsummaryrefslogtreecommitdiffstats
path: root/src/sccp_user.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-11 20:41:07 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-11 23:27:05 +0200
commit282d1c2ffa7403d1238c308401d66dcd271f761f (patch)
tree8ce65a9cffde59cdd37d7f47907881f72186d789 /src/sccp_user.c
parentfb82880905c77e3eead73c0572364fbd0de9b2e3 (diff)
sccp_user: Make sure to create client-side AS with primary PC
When we are on the ASP (client) side, we must initialize the routing key of the AS with the proper primary point code of the system. Only this way, the correct point code will be used during dynamic routing key registration via RKM. Change-Id: If586ac9f3449254973a19654dd13dce5793f285f
Diffstat (limited to 'src/sccp_user.c')
-rw-r--r--src/sccp_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sccp_user.c b/src/sccp_user.c
index 57c0038..01a0638 100644
--- a/src/sccp_user.c
+++ b/src/sccp_user.c
@@ -258,6 +258,8 @@ osmo_sccp_simple_client(void *ctx, const char *name, uint32_t pc,
if (!as)
goto out_strings;
+ as->cfg.routing_key.pc = pc;
+
/* install default route */
rt = osmo_ss7_route_create(ss7->rtable_system, 0, 0, as_name);
if (!rt)