e30f2fde96db44cd3557add62270ea1e7d0d6138
[lcr.git] / gsm_ms.h
1 #ifndef _GNU_SOURCE
2 #define _GNU_SOURCE
3 #endif
4 extern "C" {
5 #include <osmocom/bb/common/osmocom_data.h>
6 #include <osmocom/bb/mobile/mncc.h>
7 }
8
9 /* GSM port class */
10 class Pgsm_ms : public Pgsm
11 {
12         public:
13         Pgsm_ms(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
14         ~Pgsm_ms();
15
16         int p_m_g_dtmf_state;
17         int p_m_g_dtmf_index;
18         char p_m_g_dtmf[128];
19         struct lcr_timer p_m_g_dtmf_timer;
20         void dtmf_statemachine(struct gsm_mncc *mncc);
21
22         void setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
23         void message_setup(unsigned int epoint_id, int message_id, union parameter *param);
24         void message_dtmf(unsigned int epoint_id, int message_id, union parameter *param);
25         void message_information(unsigned int epoint_id, int message_id, union parameter *param);
26         int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
27 };
28
29 int handle_gsm_ms(int *quit);
30 int gsm_ms_conf(struct gsm_conf *gsm_conf, char *conf_error);
31 int gsm_ms_exit(int rc);
32 int gsm_ms_init(void);
33 int gsm_ms_new(const char *name);
34 int gsm_ms_delete(const char *name);
35