From 10c0f56a0e109054a480d4affcde73dc6affbb56 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 17 May 2015 20:58:40 +0200 Subject: gsup: Copy the hlr-Number and use it during purge Copy the hlr-Number into the sgsn_data and use it during the purgeMS. There is no unit test that looks at the data we send so I manually verified this by looking at the output. Below is the output of the test that purges the subscriber. <000f> gprs_subscriber.c:170 SUBSCR(123456789012345) Sending GSUP, will send: 0c 01 08 21 43 65 87 09 21 43 f5 09 07 91 83 61 26 31 23 f3 --- openbsc/include/openbsc/gprs_sgsn.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc/include/openbsc/gprs_sgsn.h') diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 4bbde9c44..06187f083 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -312,6 +312,9 @@ struct sgsn_subscriber_data { uint8_t msisdn[9]; size_t msisdn_len; + + uint8_t hlr[9]; + size_t hlr_len; }; #define SGSN_ERROR_CAUSE_NONE (-1) -- cgit v1.2.3