diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-04 12:09:45 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 20:06:47 +0100 |
commit | da488ae343f1eab597997f837ef077558160d023 (patch) | |
tree | e613cbf67aba476f3f52490c6d157db47f331fbc /openbsc | |
parent | 2d2c910f2c5af98f9f4a2352dca85c66feb80f71 (diff) |
bsc: Implement sending the assignment complete to the network
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/bsc/osmo_bsc_api.c | 10 |
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, |