(WIP) mobile: add RTP related primitives

Change-Id: I61c058eb1c6a5d2a8acc295367eea51391ec6640
This commit is contained in:
Vadim Yanitskiy 2018-09-30 01:30:14 +07:00
parent e0fd316284
commit c7f6b1c534
2 changed files with 19 additions and 0 deletions

View File

@ -108,6 +108,10 @@ struct gsm_call {
#define MNCC_FRAME_DROP 0x0202
#define MNCC_LCHAN_MODIFY 0x0203
#define MNCC_RTP_CREATE 0x0204
#define MNCC_RTP_CONNECT 0x0205
#define MNCC_RTP_FREE 0x0206
#define GSM_TCHF_FRAME 0x0300
#define GSM_TCHF_FRAME_EFR 0x0301
#define GSM_TCHH_FRAME 0x0302
@ -177,6 +181,15 @@ struct gsm_data_frame {
unsigned char data[0];
};
struct gsm_mncc_rtp {
uint32_t msg_type;
uint32_t callref;
uint32_t ip;
uint16_t port;
uint32_t payload_type;
uint32_t payload_msg_type;
};
struct gsm_mncc_hello {
uint32_t msg_type;
uint32_t version;

View File

@ -1975,6 +1975,12 @@ int mncc_tx_to_cc(void *inst, int msg_type, void *arg)
case GSM_TCH_FRAME_AMR:
return gsm_send_voice_mncc(ms, arg);
/* RTP management */
case MNCC_RTP_CREATE:
case MNCC_RTP_CONNECT:
case MNCC_RTP_FREE:
return 0;
/* Intentionally ignored messages */
case MNCC_LCHAN_MODIFY:
case MNCC_FRAME_RECV: