diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-12 11:57:20 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-03 16:19:10 +0100 |
commit | 6a2d8985bfd6d9c6e6c0f541aca0e1590a753709 (patch) | |
tree | 0d4a67c5e353ee9eef47477893b8e89fc54c3ed5 /openbsc/src/libmsc/msc_ifaces.c | |
parent | c6794eed1dbe726b23c60e96e214ec1a1fbf6b51 (diff) |
cscn: rename msc_api
Diffstat (limited to 'openbsc/src/libmsc/msc_ifaces.c')
-rw-r--r-- | openbsc/src/libmsc/msc_ifaces.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/msc_ifaces.c b/openbsc/src/libmsc/msc_ifaces.c new file mode 100644 index 000000000..f50ab3275 --- /dev/null +++ b/openbsc/src/libmsc/msc_ifaces.c @@ -0,0 +1,50 @@ +/* MSC decisions which interface to send messages out on. */ + +/* (C) 2016 by sysmocom s.m.f.c GmbH <info@sysmocom.de> + * + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <osmocom/core/logging.h> + +#include <openbsc/debug.h> +#include <openbsc/gsm_data.h> +#include <openbsc/iu_cs.h> + +#include "msc_api.h" + +int msc_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg) +{ + switch (conn->via_iface) { + case IFACE_A: + //return gsm0808_submit_dtap(conn, msg, link_id, allow_sacch); + LOGP(DMSC, LOGL_ERROR, + "submit dtap: A-interface not implemented\n"); + return -1; + + case IFACE_IUCS: + return iucs_submit_dtap(conn, msg); + + default: + LOGP(DMSC, LOGL_ERROR, + "submit dtap: conn->via_iface invalid (%d)\n", + conn->via_iface); + return -1; + } +} + + |