aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-12-22 19:27:27 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-12-22 19:27:27 +0100
commit10049bc3b701a0e8ce1dc5242c7c683a8c0ca99b (patch)
treec1c7304de6e49ff674ddff0dca796ed75780ceba
parent3e9b2ec257bc064b866ce6a2735206dc6131f615 (diff)
paging: Do not page when there is no OML link
Avoid printing error messages when paging while the BTS is down. In case a BTS is going down it is best to just let the timers expire normally. We can not expire them right away as multiple BTS could be paged and we do not want to interfere with that. There is no need to stop the queue right now.
-rw-r--r--openbsc/src/libbsc/paging.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/paging.c b/openbsc/src/libbsc/paging.c
index fe60e3f6d..b731dbcfa 100644
--- a/openbsc/src/libbsc/paging.c
+++ b/openbsc/src/libbsc/paging.c
@@ -73,6 +73,10 @@ static void page_ms(struct gsm_paging_request *request)
unsigned int page_group;
struct gsm_bts *bts = request->bts;
+ /* the bts is down.. we will just wait for the paging to expire */
+ if (!bts->oml_link)
+ return;
+
LOGP(DPAG, LOGL_INFO, "Going to send paging commands: imsi: '%s' tmsi: '0x%x'\n",
request->subscr->imsi, request->subscr->tmsi);