From 39f040d62b16b2d99352f5facd83ce098fa2f462 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Thu, 18 Dec 2014 12:46:47 +0100 Subject: sgsn: Integrate the GSUP client into the SGSN This commit adds GSUP client configuration (via VTY), connection set up, and real message sending. The following configuration commands are added: - gsup remote-ip A.B.C.D set server IP address - gsup remote-port PORT set server TCP port Ticket: OW#1338 Sponsored-by: On-Waves ehf --- openbsc/src/gprs/sgsn_main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/src/gprs/sgsn_main.c') diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index 141eacf94..f26b812a8 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -357,6 +357,12 @@ int main(int argc, char **argv) exit(2); } + rc = gprs_subscr_init(&sgsn_inst); + if (rc < 0) { + LOGP(DGPRS, LOGL_FATAL, "Cannot set up subscriber management\n"); + exit(2); + } + rc = gprs_ns_nsip_listen(sgsn_nsi); if (rc < 0) { LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen on NSIP socket\n"); -- cgit v1.2.3