summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-21 16:25:47 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-25 16:44:18 +0200
commit3824136b46f455e047094b57d3123974860d086a (patch)
tree005c2dec6e88698fb939d42490cec208ffc7f537
parentexamples/sgsn: Use osmo-hlr with auth-policy remote by default (diff)
downloadOpenBSC-vlr_3G.tar.xz
OpenBSC-vlr_3G.zip
MSC,SGSN: use OSMO_GSUP_PORT == 4222 instead of 2222vlr_3G
In SGSN, actually place the port in the SGSN config by default, so that the gsup port may now be omitted in the VTY config (the IP address suffices). Adjust the osmo-sgsn.cfg example. Depends: I4222e21686c823985be8ff1f16b1182be8ad6175 (libosmocore) Change-Id: I50f2040e2eb0baacb43849e93cfed10cbc2fc156
-rw-r--r--openbsc/doc/examples/osmo-sgsn/osmo-sgsn.cfg2
-rw-r--r--openbsc/include/openbsc/osmo_msc.h3
-rw-r--r--openbsc/src/gprs/sgsn_main.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/openbsc/doc/examples/osmo-sgsn/osmo-sgsn.cfg b/openbsc/doc/examples/osmo-sgsn/osmo-sgsn.cfg
index 01be51381..4189adc9c 100644
--- a/openbsc/doc/examples/osmo-sgsn/osmo-sgsn.cfg
+++ b/openbsc/doc/examples/osmo-sgsn/osmo-sgsn.cfg
@@ -11,7 +11,7 @@ sgsn
ggsn 0 gtp-version 1
auth-policy remote
gsup remote-ip 127.0.0.1
- gsup remote-port 2222
+ gsup remote-port 4222
!
ns
timer tns-block 3
diff --git a/openbsc/include/openbsc/osmo_msc.h b/openbsc/include/openbsc/osmo_msc.h
index fa7ea293d..bc96f1d5a 100644
--- a/openbsc/include/openbsc/osmo_msc.h
+++ b/openbsc/include/openbsc/osmo_msc.h
@@ -4,13 +4,14 @@
#define OSMO_MSC_H
#include <osmocom/core/fsm.h>
+#include <osmocom/gsm/gsup.h>
#include <openbsc/gsm_data.h>
#include "bsc_api.h"
#define MSC_HLR_REMOTE_IP_DEFAULT "127.0.0.1"
-#define MSC_HLR_REMOTE_PORT_DEFAULT 2222
+#define MSC_HLR_REMOTE_PORT_DEFAULT OSMO_GSUP_PORT
enum subscr_conn_fsm_event {
/* Mark 0 as invalid to catch uninitialized vars */
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c
index f2f1344f6..71cb18c96 100644
--- a/openbsc/src/gprs/sgsn_main.c
+++ b/openbsc/src/gprs/sgsn_main.c
@@ -40,6 +40,8 @@
#include <osmocom/core/logging.h>
#include <osmocom/core/stats.h>
+#include <osmocom/gsm/gsup.h>
+
#include <osmocom/gprs/gprs_ns.h>
#include <osmocom/gprs/gprs_bssgp.h>
@@ -83,6 +85,7 @@ static struct sgsn_instance sgsn_inst = {
.cfg = {
.gtp_statedir = "./",
.auth_policy = SGSN_AUTH_POLICY_CLOSED,
+ .gsup_server_port = OSMO_GSUP_PORT,
},
};
struct sgsn_instance *sgsn = &sgsn_inst;