2010-05-31 16:45:02 +00:00
|
|
|
|
|
|
|
/* GSM port class */
|
|
|
|
class Pgsm_bs : public Pgsm
|
|
|
|
{
|
|
|
|
public:
|
2012-01-15 08:42:35 +00:00
|
|
|
Pgsm_bs(int type, char *portname, struct port_settings *settings, struct interface *interface);
|
2010-05-31 16:45:02 +00:00
|
|
|
~Pgsm_bs();
|
|
|
|
|
2012-01-15 08:42:35 +00:00
|
|
|
unsigned char *p_g_dtmf; /* DTMF tone generation (MS only) */
|
|
|
|
int p_g_dtmf_index; /* DTMF tone generation index */
|
2011-02-20 09:35:40 +00:00
|
|
|
|
2012-02-17 14:38:54 +00:00
|
|
|
void select_payload_type(struct gsm_mncc *mncc, unsigned char *payload_types, int *media_types, int *payloads, int max_payloads);
|
2010-05-31 16:45:02 +00:00
|
|
|
void setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
|
2012-02-01 16:52:36 +00:00
|
|
|
void call_conf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *gsm);
|
2010-05-31 16:45:02 +00:00
|
|
|
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 gsm_bs_conf(struct gsm_conf *gsm_conf, char *conf_error);
|
|
|
|
int gsm_bs_exit(int rc);
|
2012-01-15 08:42:35 +00:00
|
|
|
int gsm_bs_init(struct interface *interface);
|
2011-02-26 16:49:21 +00:00
|
|
|
|
2011-09-02 09:08:56 +00:00
|
|
|
int message_bsc(struct lcr_gsm *lcr_gsm, int msg_type, void *arg);
|