From 22093ef9641c7685c87b5ed80333bcfc273efcad Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 12 May 2015 21:46:58 +0200 Subject: sgsn: Always include the routing area identity For PDP context creation we always want to include the RAI for the current mmctx. This might help commercial GGSNs to determine which charging to apply. --- openbsc/src/gprs/sgsn_libgtp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/src/gprs/sgsn_libgtp.c') diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c index 9972cddf3..07dbc2602 100644 --- a/openbsc/src/gprs/sgsn_libgtp.c +++ b/openbsc/src/gprs/sgsn_libgtp.c @@ -227,6 +227,11 @@ struct sgsn_pdp_ctx *sgsn_create_pdp_ctx(struct sgsn_ggsn_ctx *ggsn, pdp->rattype.v[0] = 2; pdp->rattype_given = 1; + /* include the routing area identity all the time */ + pdp->rai_given = 1; + pdp->rai.l = 6; + gsm48_construct_ra(pdp->rai.v, &mmctx->ra); + /* change pdp state to 'requested' */ pctx->state = PDP_STATE_CR_REQ; -- cgit v1.2.3