aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/osmo_msc_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/openbsc/osmo_msc_data.h')
-rw-r--r--include/openbsc/osmo_msc_data.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/include/openbsc/osmo_msc_data.h b/include/openbsc/osmo_msc_data.h
new file mode 100644
index 000000000..8f9ca6856
--- /dev/null
+++ b/include/openbsc/osmo_msc_data.h
@@ -0,0 +1,76 @@
+/*
+ * Data for the true BSC
+ *
+ * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2010 by On-Waves
+ * 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/>.
+ *
+ */
+
+#ifndef _OSMO_MSC_DATA_H
+#define _OSMO_MSC_DATA_H
+
+#include "bsc_msc.h"
+
+#include <osmocore/timer.h>
+
+struct osmo_bsc_rf;
+struct gsm_network;
+
+struct gsm_audio_support {
+ uint8_t hr : 1,
+ ver : 7;
+};
+
+struct osmo_msc_data {
+ /* Connection data */
+ char *bsc_token;
+ int msc_port;
+ int msc_ip_dscp;
+ char *msc_ip;
+ int ping_timeout;
+ int pong_timeout;
+ struct timer_list ping_timer;
+ struct timer_list pong_timer;
+ struct bsc_msc_connection *msc_con;
+ int core_ncc;
+ int core_mcc;
+ int rtp_base;
+
+ /* audio codecs */
+ struct gsm_audio_support **audio_support;
+ int audio_length;
+
+
+ /* mgcp agent */
+ struct write_queue mgcp_agent;
+
+ /* rf ctl related bits */
+ char *mid_call_txt;
+ int mid_call_timeout;
+ struct osmo_bsc_rf *rf_ctl;
+
+ /* ussd welcome text */
+ char *ussd_welcome_txt;
+};
+
+int osmo_bsc_msc_init(struct gsm_network *network);
+int osmo_bsc_sccp_init(struct gsm_network *gsmnet);
+int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto);
+
+int osmo_bsc_audio_init(struct gsm_network *network);
+
+#endif