From 5601ca132d7c2a746a82b774a1bceec48d1e5b46 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier Date: Thu, 10 Jul 2014 10:34:40 +0000 Subject: [PATCH] comment only git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5484 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/OPENAIRHSS/s6a/s6a_up_loc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openair-cn/OPENAIRHSS/s6a/s6a_up_loc.c b/openair-cn/OPENAIRHSS/s6a/s6a_up_loc.c index 537c9297db..6064f6bf97 100644 --- a/openair-cn/OPENAIRHSS/s6a/s6a_up_loc.c +++ b/openair-cn/OPENAIRHSS/s6a/s6a_up_loc.c @@ -83,6 +83,16 @@ int s6a_up_loc_cb(struct msg **msg, struct avp *paramavp, result_code = ER_DIAMETER_INVALID_AVP_VALUE; goto out; } + // 3GPP TS 29.272-910 / 5.2.1.1.3 Detailed behaviour of the HSS + // When receiving an Update Location request the HSS shall check whether the IMSI is known. + // If it is not known, a Result Code of DIAMETER_ERROR_USER_UNKNOWN shall be returned. + // If it is known, but the subscriber has no EPS subscription, the HSS may (as an operator option) + // return a Result Code of DIAMETER_ERROR_UNKNOWN_EPS_SUBSCRIPTION. + // If the Update Location Request is received over the S6a interface, and the subscriber has not + // any APN configuration, the HSS shall return a Result Code of DIAMETER_ERROR_UNKNOWN_EPS_SUBSCRIPTION. + // The HSS shall check whether the RAT type the UE is using is allowed. If it is not, + // a Result Code of DIAMETER_ERROR_RAT_NOT_ALLOWED shall be returned. + // ... sprintf(mysql_push.imsi, "%*s", (int)hdr->avp_value->os.len, (char*)hdr->avp_value->os.data); if ((ret = hss_mysql_update_loc(mysql_push.imsi, &mysql_ans)) != 0) {