57 lines
1.5 KiB
C
57 lines
1.5 KiB
C
/*
|
|
* 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 General Public License as published by
|
|
* the Free Software Foundation; either version 2 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef _OSMO_MSC_DATA_H
|
|
#define _OSMO_MSC_DATA_H
|
|
|
|
#include "bsc_msc.h"
|
|
|
|
#include <osmocore/timer.h>
|
|
|
|
struct osmo_bsc_rf;
|
|
|
|
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;
|
|
|
|
/* mgcp agent */
|
|
struct write_queue mgcp_agent;
|
|
|
|
/* rf ctl related bits */
|
|
char *ussd_grace_txt;
|
|
struct osmo_bsc_rf *rf_ctl;
|
|
};
|
|
|
|
int osmo_bsc_msc_init(struct gsm_network *network);
|
|
int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto);
|
|
|
|
#endif
|