summaryrefslogblamecommitdiffstats
path: root/gsm_bs.h
blob: 45bf0835e990bc4a17b90e3c6611b8f80d8a8bdd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                             
                         








                                                                                                                                             


                                                                       












                                                                                                



                                                                      
extern "C" {
#include <openbsc/gsm_data.h>
#include <openbsc/mncc.h>
}

/* GSM port class */
class Pgsm_bs : public Pgsm
{
	public:
	Pgsm_bs(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
	~Pgsm_bs();

	unsigned char *p_m_g_dtmf; /* DTMF tone generation (MS only) */
	int p_m_g_dtmf_index; /* DTMF tone generation index */

	void setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
	void start_dtmf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
	void stop_dtmf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
	void hold_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
	void retr_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
	void message_setup(unsigned int epoint_id, int message_id, union parameter *param);
	int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
};

int handle_gsm_bs(void);
int gsm_bs_conf(struct gsm_conf *gsm_conf, char *conf_error);
int gsm_bs_exit(int rc);
int gsm_bs_init(void);

extern "C" {
int mncc_send(struct gsm_network *instance, int msg_type, void *data);
};