aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-12 21:46:58 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-17 17:23:57 +0200
commit22093ef9641c7685c87b5ed80333bcfc273efcad (patch)
tree3724ca63d932231f5adb487529e5a7186bfe325a
parent77ff1c40e28d4e7a8000be5293e9352e85b9f31b (diff)
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.
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c5
1 files changed, 5 insertions, 0 deletions
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;