aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc/osmo_bsc_api.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-05 10:59:45 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:06:48 +0100
commite46f1d6cc48a0f3a7a78ac5e79da373475258baf (patch)
tree7ec975715439e34e6c41ba2af545aeb564fbd659 /openbsc/src/bsc/osmo_bsc_api.c
parentc2b3270e9323e5c6204be37dd00b55f492de107e (diff)
bsc: Implement sending an assignment failure
Diffstat (limited to 'openbsc/src/bsc/osmo_bsc_api.c')
-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 bed18ed42..5a0385686 100644
--- a/openbsc/src/bsc/osmo_bsc_api.c
+++ b/openbsc/src/bsc/osmo_bsc_api.c
@@ -106,7 +106,16 @@ static void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_
static void bsc_assign_fail(struct gsm_subscriber_connection *conn,
uint8_t cause, uint8_t *rr_cause)
{
+ struct msgb *resp;
return_when_not_connected(conn);
+
+ resp = gsm0808_create_assignment_failure(cause, rr_cause);
+ if (!resp) {
+ LOGP(DMSC, LOGL_ERROR, "Failed to allocate response.\n");
+ return;
+ }
+
+ bsc_queue_for_msc(conn, resp);
}
static int bsc_clear_request(struct gsm_subscriber_connection *conn, uint32_t cause)