aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-04 12:09:45 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:06:47 +0100
commitda488ae343f1eab597997f837ef077558160d023 (patch)
treee613cbf67aba476f3f52490c6d157db47f331fbc /openbsc
parent2d2c910f2c5af98f9f4a2352dca85c66feb80f71 (diff)
bsc: Implement sending the assignment complete to the network
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc/osmo_bsc_api.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_api.c b/openbsc/src/bsc/osmo_bsc_api.c
index 1e66a0ddd..71babdf7c 100644
--- a/openbsc/src/bsc/osmo_bsc_api.c
+++ b/openbsc/src/bsc/osmo_bsc_api.c
@@ -71,7 +71,17 @@ static void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_
uint8_t chosen_channel, uint8_t encr_alg_id,
uint8_t speech_model)
{
+ struct msgb *resp;
return_when_not_connected(conn);
+
+ resp = gsm0808_create_assignment_completed(rr_cause, chosen_channel,
+ encr_alg_id, speech_model);
+ if (!resp) {
+ LOGP(DMSC, LOGL_ERROR, "Failed to allocate response.\n");
+ return;
+ }
+
+ bsc_queue_for_msc(conn, resp);
}
static void bsc_assign_fail(struct gsm_subscriber_connection *conn,