[MERGED] libosmo-sccp[master]: sccp_user: Make sure to create client-side AS with primary PC

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 22:27:03 UTC 2017


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 <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list