aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-04 12:24:05 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:06:47 +0100
commit58f2cf6494433f7a1f1a5ef305e8eae9fbdecaab (patch)
treee4093a909699756933d381ab823d09aed26dc361 /openbsc
parentda488ae343f1eab597997f837ef077558160d023 (diff)
bsc: Implement the DTAP callback and forward the data to the MSC
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc/osmo_bsc_api.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_api.c b/openbsc/src/bsc/osmo_bsc_api.c
index 71babdf7c..c51e9282f 100644
--- a/openbsc/src/bsc/osmo_bsc_api.c
+++ b/openbsc/src/bsc/osmo_bsc_api.c
@@ -64,7 +64,16 @@ static int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg
static void bsc_dtap(struct gsm_subscriber_connection *conn, uint8_t link_id, struct msgb *msg)
{
+ struct msgb *resp;
return_when_not_connected(conn);
+
+ resp = gsm0808_create_dtap(msg, link_id);
+ if (!resp) {
+ LOGP(DMSC, LOGL_ERROR, "Failed to allocate response.\n");
+ return;
+ }
+
+ bsc_queue_for_msc(conn, resp);
}
static void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_cause,