aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/a_iface_bssap.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-04-12 15:19:45 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-18 17:50:08 +0200
commit76174d9dd94bb88ae63e616e84ae58b9f290e92b (patch)
tree90898e2087f5485041f2da74edcb3ea5596f2123 /openbsc/include/openbsc/a_iface_bssap.h
parente3aca93630e7a4572bd0459115b25348e1840c0e (diff)
WIP: Integrate AoIP into MSC
Diffstat (limited to 'openbsc/include/openbsc/a_iface_bssap.h')
-rw-r--r--openbsc/include/openbsc/a_iface_bssap.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/a_iface_bssap.h b/openbsc/include/openbsc/a_iface_bssap.h
new file mode 100644
index 000000000..41f7213d2
--- /dev/null
+++ b/openbsc/include/openbsc/a_iface_bssap.h
@@ -0,0 +1,47 @@
+/* (C) 2017 by sysmocom s.f.m.c. GmbH
+ * All Rights Reserved
+ *
+ * Author: Philipp Maier
+ *
+ * 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/>.
+ *
+ */
+
+#pragma once
+
+/* A structure to hold tha most basic information about a sigtran connection
+ * we use this struct internally here to pass connection data around */
+struct a_conn_info {
+ struct osmo_sccp_addr *called_addr;
+ struct osmo_sccp_addr *calling_addr;
+ int conn_id;
+ struct gsm_network *network;
+};
+
+/* A structure to pack BSC clling addresses into a list */
+struct a_bsc_addr {
+ struct llist_head list;
+ struct osmo_sccp_addr called_addr;
+ struct osmo_sccp_addr calling_addr;
+ struct osmo_sccp_user *scu;
+};
+
+/* Handle incoming connection less data messages */
+void msc_handle_udt(struct osmo_sccp_user *scu, struct a_conn_info *a_conn_info, struct msgb *msg);
+
+/* Handle incoming connection oriented messages */
+int msc_handle_dt1(struct osmo_sccp_user *scu, struct a_conn_info *a_conn_info, struct msgb *msg);
+
+/* Get a list with all known BSCs */
+struct llist_head *get_bsc_addr_list(void);