struct gsm_conf {
char debug[128]; /* debug info */
char interface_bsc[64]; /* loopback interface BSC side */
char interface_lcr[64]; /* loopback interface LCR side */
struct gsm_conf {
char debug[128]; /* debug info */
char interface_bsc[64]; /* loopback interface BSC side */
char interface_lcr[64]; /* loopback interface LCR side */
char hlr[64]; /* database name */
int allow_all; /* accept unknown subscribers */
int keep_l2; /* keep layer 2 after exit */
char hlr[64]; /* database name */
int allow_all; /* accept unknown subscribers */
int keep_l2; /* keep layer 2 after exit */
Pgsm(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
~Pgsm();
Pgsm(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
~Pgsm();
- unsigned int p_m_g_callref; /* ref by OpenBSC */
+ void *p_m_g_instance; /* pointer to network/ms instance */
+ unsigned int p_m_g_callref; /* ref by OpenBSC/Osmocom-BB */
+ struct lcr_work p_m_g_delete; /* timer for audio transmission */
int p_m_g_gsm_b_index; /* gsm bchannel socket index to use */
int p_m_g_gsm_b_active; /* gsm bchannel socket is activated */
struct lcr_msg *p_m_g_notify_pending; /* queue for NOTIFY if not connected */
int p_m_g_gsm_b_index; /* gsm bchannel socket index to use */
int p_m_g_gsm_b_active; /* gsm bchannel socket is activated */
struct lcr_msg *p_m_g_notify_pending; /* queue for NOTIFY if not connected */
void bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len);
void bchannel_send(unsigned int prim, unsigned int id, unsigned char *data, int len);
void bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len);
void bchannel_send(unsigned int prim, unsigned int id, unsigned char *data, int len);
- 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 call_conf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *gsm);
void alert_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void setup_cnf(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void call_conf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *gsm);
void alert_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void setup_cnf(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void disc_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void rel_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void notify_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void disc_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void rel_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
void notify_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);
void message_notify(unsigned int epoint_id, int message_id, union parameter *param);
void message_alerting(unsigned int epoint_id, int message_id, union parameter *param);
void message_connect(unsigned int epoint_id, int message_id, union parameter *param);
void message_disconnect(unsigned int epoint_id, int message_id, union parameter *param);
void message_release(unsigned int epoint_id, int message_id, union parameter *param);
int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
void message_notify(unsigned int epoint_id, int message_id, union parameter *param);
void message_alerting(unsigned int epoint_id, int message_id, union parameter *param);
void message_connect(unsigned int epoint_id, int message_id, union parameter *param);
void message_disconnect(unsigned int epoint_id, int message_id, union parameter *param);
void message_release(unsigned int epoint_id, int message_id, union parameter *param);
int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
-extern char *gsm_conf_error;
-int gsm_conf(struct gsm_conf *gsm_conf);
+struct gsm_mncc *create_mncc(int msg_type, unsigned int callref);
+int send_and_free_mncc(void *instance, unsigned int msg_type, void *data);
+void gsm_trace_header(struct mISDNport *mISDNport, class PmISDN *port, unsigned int msg_type, int direction);