diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-04 12:28:32 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 20:06:48 +0100 |
commit | c8166f3a9176a2910c4df32d5eee13eb1e7bfdda (patch) | |
tree | 2e23b43ef97641677581b56bb45a04f6c1757262 /openbsc/src/bsc | |
parent | 58f2cf6494433f7a1f1a5ef305e8eae9fbdecaab (diff) |
bsc: Implement sending a SAPI n Reject.
It is not clear that the link_id is setup correctly here.
Diffstat (limited to 'openbsc/src/bsc')
-rw-r--r-- | openbsc/src/bsc/osmo_bsc_api.c | 9 |
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 c51e9282f..1718fea3d 100644 --- a/openbsc/src/bsc/osmo_bsc_api.c +++ b/openbsc/src/bsc/osmo_bsc_api.c @@ -37,7 +37,16 @@ static void bsc_sapi_n_reject(struct gsm_subscriber_connection *conn, int dlci) { + struct msgb *resp; return_when_not_connected(conn); + + resp = gsm0808_create_sapi_reject(dlci); + if (!resp) { + LOGP(DMSC, LOGL_ERROR, "Failed to allocate response.\n"); + return; + } + + bsc_queue_for_msc(conn, resp); } static void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn, |