[PATCH] 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 20:15:24 UTC 2017


Review at  https://gerrit.osmocom.org/2307

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


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/07/2307/1

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: newchange
Gerrit-Change-Id: If586ac9f3449254973a19654dd13dce5793f285f
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list