when paging a MS, use the channel type indicated by caller
The existing code always paged for a TCH/F, which is really wasteful
when considering the delivery of SMS messages.
Also, increase the verbosity of the debug message a bit.
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index 343d710..dd22150 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -224,7 +224,8 @@
return;
}
- DEBUGP(DPAG, "Start paging on bts %d.\n", bts->nr);
+ DEBUGP(DPAG, "Start paging of subscriber %llu on bts %d.\n",
+ subscr->id, bts->nr);
req = talloc_zero(tall_paging_ctx, struct gsm_paging_request);
req->subscr = subscr_get(subscr);
req->bts = bts;
@@ -252,7 +253,7 @@
break;
/* Trigger paging */
- _paging_request(bts, subscr, RSL_CHANNEED_TCH_F, cbfn, data);
+ _paging_request(bts, subscr, type, cbfn, data);
} while (1);
}