bsc_api: Move BSC API between MSC and RSL code...

The lowlevel BSC paging API is a simple wrapper around
the RSL command. The BTS will automatically repeat these
messages but if we end up with two MSC inputs we will
need to count these messages somewhere...
diff --git a/openbsc/include/openbsc/bsc_api.h b/openbsc/include/openbsc/bsc_api.h
index 05a5e46..7747ada 100644
--- a/openbsc/include/openbsc/bsc_api.h
+++ b/openbsc/include/openbsc/bsc_api.h
@@ -22,5 +22,7 @@
 
 int bsc_api_init(struct gsm_network *network, struct bsc_api *api);
 int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg, int link_id);
+int gsm0808_page(struct gsm_bts *bts, unsigned int page_group,
+		 unsigned int mi_len, uint8_t *mi, int chan_type);
 
 #endif
diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c
index 25b8b66..28fc324 100644
--- a/openbsc/src/bsc_api.c
+++ b/openbsc/src/bsc_api.c
@@ -59,6 +59,12 @@
 	}
 }
 
+int gsm0808_page(struct gsm_bts *bts, unsigned int page_group, unsigned int mi_len,
+		 uint8_t *mi, int chan_type)
+{
+	return rsl_paging_cmd(bts, page_group, mi_len, mi, chan_type);
+}
+
 /* dequeue messages to layer 4 */
 int bsc_upqueue(struct gsm_network *net)
 {
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index 12ed903..ca37678 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -92,8 +92,7 @@
 		mi_len = gsm48_generate_mid_from_tmsi(mi, request->subscr->tmsi);
 
 	page_group = calculate_group(request->bts, request->subscr);
-	rsl_paging_cmd(request->bts, page_group, mi_len, mi,
-			request->chan_type);
+	gsm0808_page(request->bts, page_group, mi_len, mi, request->chan_type);
 }
 
 /*