aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-19 17:54:16 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-19 17:57:16 +0200
commitf0f596f3d9f5bbd400326b687fcf86ad51b21f94 (patch)
tree1b201986f3e2e5510faddf5cffb1a2629d6464e9
parent6e3112579e750a4e177bb0d3a0da0eaf10786dc3 (diff)
sgsn: use sccp_simple_client API to setup ss7 id 0 instead of 1
Implementation of osmo_sccp_simple_client() API internally uses ss7 id 1, which is confusing since there's no 0 in use in osmo-sgsn. Let's explicitly use the 0 one so it is configured by "cs7 instance 0" in the VTY. Related: OS#4157 Change-Id: I0e23a6a76ebcba0b1b424e3d3b20d06c1da44cbe
-rw-r--r--src/gprs/sgsn_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c
index ecfb79b0..5979886b 100644
--- a/src/gprs/sgsn_main.c
+++ b/src/gprs/sgsn_main.c
@@ -500,11 +500,11 @@ int main(int argc, char **argv)
#if BUILD_IU
/* Note that these are mostly defaults and can be overriden from the VTY */
- sccp = osmo_sccp_simple_client(tall_sgsn_ctx, "OsmoSGSN",
- (23 << 3) + 4,
- OSMO_SS7_ASP_PROT_M3UA,
- 0, NULL,
- 0, "127.0.0.1");
+ sccp = osmo_sccp_simple_client_on_ss7_id(tall_sgsn_ctx, 0, "OsmoSGSN",
+ (23 << 3) + 4,
+ OSMO_SS7_ASP_PROT_M3UA,
+ 0, NULL,
+ 0, "127.0.0.1");
if (!sccp) {
printf("Setting up SCCP client failed.\n");
return 8;