Harald Welte has submitted this change and it was merged.

Change subject: sccp_user: Make sure to create client-side AS with primary PC
......................................................................


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
---
M src/sccp_user.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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 @@
        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)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If586ac9f3449254973a19654dd13dce5793f285f
Gerrit-PatchSet: 3
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to