path: root/openbsc/tests/sgsn/sgsn_test.ok
diff options
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-02-02 18:03:05 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-02-06 13:00:29 +0100
commit277b71e0d8b7a8c53599546b0d06ae3810a290eb (patch)
tree1946d33d8f56ae68939d9009a54c7c9adce656b6 /openbsc/tests/sgsn/sgsn_test.ok
parentf345612654720c63e29c75c0689e6955da478059 (diff)
sgsn: Select GGSN based on APN
Currently the APN IE in the Activate PDP Contex Request and the PDP data that is stored with the subscriber is ignored completely. This commit adds the sgsn_mm_ctx_find_ggsn_ctx that checks the APN IE against the subscriber's PDP data entries if both are present. If there is no match, the request is rejected. If an APN IE has not been included but PDP data entries are present, the function checks all of these entries against the static 'apn' configuration to find a suitable entry. If an APN has not been determined so far and any APN is allowed, the configuration is checked with an empty APN string, to allow for default configurations based on the IMSI prefix only. If nothing of this succeeded but the request wasn't rejected either, and there is no 'apn' configuration at all or if any APN is allowed but a default configuration ist not present, the GGSN with id 0 is used (if present). Otherwise the request is rejected ('missing APN'). Ticket: OW#1334 Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/sgsn/sgsn_test.ok')
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.ok b/openbsc/tests/sgsn/sgsn_test.ok
index 9f14721af..bef8c9897 100644
--- a/openbsc/tests/sgsn/sgsn_test.ok
+++ b/openbsc/tests/sgsn/sgsn_test.ok
@@ -27,4 +27,5 @@ Testing P-TMSI allocation
- Repeated Attach Request
- Repeated RA Update Request
Testing APN matching
+Testing GGSN selection