From f0f596f3d9f5bbd400326b687fcf86ad51b21f94 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 19 Aug 2019 17:54:16 +0200 Subject: 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 --- src/gprs/sgsn_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c index ecfb79b0c..5979886bf 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; -- cgit v1.2.3