2010-05-31 16:45:02 +00:00
|
|
|
extern "C" {
|
2010-10-31 16:12:26 +00:00
|
|
|
#include <osmocom/bb/common/osmocom_data.h>
|
|
|
|
#include <osmocom/bb/mobile/mncc.h>
|
2010-05-31 16:45:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* GSM port class */
|
|
|
|
class Pgsm_ms : public Pgsm
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Pgsm_ms(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
|
|
|
|
~Pgsm_ms();
|
|
|
|
|
2010-10-31 16:12:26 +00:00
|
|
|
int p_m_g_dtmf_state;
|
|
|
|
int p_m_g_dtmf_index;
|
|
|
|
char p_m_g_dtmf[128];
|
|
|
|
struct lcr_timer p_m_g_dtmf_timer;
|
|
|
|
void dtmf_statemachine(struct gsm_mncc *mncc);
|
|
|
|
|
2010-05-31 16:45:02 +00:00
|
|
|
void setup_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);
|
2010-10-31 16:12:26 +00:00
|
|
|
void message_dtmf(unsigned int epoint_id, int message_id, union parameter *param);
|
|
|
|
void message_information(unsigned int epoint_id, int message_id, union parameter *param);
|
2010-05-31 16:45:02 +00:00
|
|
|
int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
|
|
|
|
};
|
|
|
|
|
|
|
|
int handle_gsm_ms(void);
|
|
|
|
int gsm_ms_conf(struct gsm_conf *gsm_conf, char *conf_error);
|
|
|
|
int gsm_ms_exit(int rc);
|
|
|
|
int gsm_ms_init(void);
|
|
|
|
int gsm_ms_new(const char *name, const char *socket_path);
|
|
|
|
int gsm_ms_delete(const char *name);
|
|
|
|
|