X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=gsm.h;h=421a09850186b992cb6251ae03fb290095615f06;hp=0ccac2b72b3e6c9a7d74f99a67b7145f34e3d398;hb=f854931ffbee9464b278c433c4fdc7c3ea5af2fb;hpb=1e778230b935453d1183d8a457438221030dd5ee diff --git a/gsm.h b/gsm.h index 0ccac2b..421a098 100644 --- a/gsm.h +++ b/gsm.h @@ -53,17 +53,21 @@ class Pgsm : public Port 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_payload_type; /* current payload type or -1 if not set */ int p_g_rtp_bridge; /* if we use a bridge */ unsigned int p_g_rtp_ip_remote; /* stores ip */ unsigned short p_g_rtp_port_remote; /* stores port */ + int p_g_rtp_payloads; + int p_g_rtp_payload_types[8]; void frame_send(void *_frame); void frame_receive(void *_frame); + int audio_send(unsigned char *data, int len); int bridge_rx(unsigned char *data, int len); int hunt_bchannel(void); - void call_conf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *gsm); + void modify_lchan(unsigned char payload_type); void call_proc_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc); 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);