blob: b5bb37152fc9a24efcc539d26ebe7256cfc08b1a [file] [log] [blame]
Holger Hans Peter Freyther43b09092010-06-15 11:52:51 +08001/* main MSC management code... */
2
3/*
4 * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
5 * (C) 2010 by On Waves
6 *
7 * All Rights Reserved
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 *
23 */
24
25#include <openbsc/bsc_api.h>
26#include <openbsc/debug.h>
27
Holger Hans Peter Freyther6a3d7652010-06-15 12:03:10 +080028#include <openbsc/gsm_04_11.h>
29
Holger Hans Peter Freyther43b09092010-06-15 11:52:51 +080030static void msc_sapi_n_reject(struct gsm_subscriber_connection* conn, int dlci)
31{
Holger Hans Peter Freyther6a3d7652010-06-15 12:03:10 +080032 int sapi = dlci & 0x7;
33
34 if (sapi == UM_SAPI_SMS)
35 gsm411_sapi_n_reject(conn);
Holger Hans Peter Freyther43b09092010-06-15 11:52:51 +080036}
37
38static struct bsc_api msc_handler = {
39 .sapi_n_reject = msc_sapi_n_reject,
40};
41
42struct bsc_api *msc_bsc_api() {
43 return &msc_handler;
44}