Add an option to set the global reject cause
This will need to be moved into bsc_hack.c together with the
policy to accept/reject a UPDATING LOCATION REQUEST.
diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c
index 80aeaa4..65d2f64 100644
--- a/src/gsm_04_08.c
+++ b/src/gsm_04_08.c
@@ -59,6 +59,12 @@
authorize_everonye = everyone;
}
+static int reject_cause = 0;
+void gsm0408_set_reject_cause(int cause)
+{
+ reject_cause = cause;
+}
+
static int authorize_subscriber(struct gsm_subscriber *subscriber)
{
if (!subscriber)
@@ -360,8 +366,7 @@
{
struct gsm_lchan *lchan = data;
- /* 0x16 is congestion */
- gsm0408_loc_upd_rej(lchan, 0x04);
+ gsm0408_loc_upd_rej(lchan, reject_cause);
rsl_chan_release(lchan);
}