struct lcr_gsm {
char interface_name[64]; /* name of interface this instance is associated to */
- struct lcr_gsm *gsm_ms_next; /* list of MS instances, in case of MS */
- char name[16]; /* name of MS instance, in case of MS */
+ struct lcr_gsm *gsm_next; /* list of MS/BS instances */
+ char name[16]; /* name of MS/BS instance */
int type; /* LCR_GSM_TYPE_*/
struct lcr_fd mncc_lfd; /* Unix domain socket to OpenBSC MNCC */
void *p_g_fr_encoder, *p_g_fr_decoder; /* gsm handle */
void *p_g_hr_encoder, *p_g_hr_decoder; /* gsm handle */
void *p_g_amr_encoder, *p_g_amr_decoder;/* gsm handle */
+ int p_g_amr_cmr, p_g_amr_cmr_valid;
signed short p_g_rxdata[160]; /* receive audio buffer */
int p_g_rxpos; /* position in audio buffer 0..159 */
int p_g_tch_connected; /* indicates if audio is connected */
int p_g_rtp_media_types[8];
unsigned char p_g_rtp_payload_types[8];
- void frame_send(void *_frame);
+ void frame_send(void *_frame, int len, int msg_type);
void frame_receive(void *_frame);
int audio_send(unsigned char *data, int len);
int bridge_rx(unsigned char *data, int len);