diff options
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/msc/mncc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/osmocom/msc/mncc.h b/include/osmocom/msc/mncc.h index 4414a8db2..cf7d7ce9b 100644 --- a/include/osmocom/msc/mncc.h +++ b/include/osmocom/msc/mncc.h @@ -159,6 +159,9 @@ struct gsm_mncc { unsigned char lchan_type; unsigned char lchan_mode; + + /* A buffer to contain SDP ('\0' terminated) */ + char sdp[1024]; }; struct gsm_data_frame { @@ -167,7 +170,7 @@ struct gsm_data_frame { unsigned char data[0]; }; -#define MNCC_SOCK_VERSION 5 +#define MNCC_SOCK_VERSION 6 struct gsm_mncc_hello { uint32_t msg_type; uint32_t version; @@ -190,6 +193,7 @@ struct gsm_mncc_rtp { uint16_t port; uint32_t payload_type; uint32_t payload_msg_type; + char sdp[1024]; }; struct gsm_mncc_bridge { @@ -226,6 +230,7 @@ int mncc_sock_init(struct gsm_network *net, const char *sock_path); || msg_type == GSM_BAD_FRAME) int mncc_prim_check(const struct gsm_mncc *mncc_prim, unsigned int len); +int mncc_check_sdp_termination(const char *label, const struct gsm_mncc *mncc, unsigned int len, const char *sdp); int mncc_bearer_cap_to_channel_type(struct gsm0808_channel_type *ct, const struct gsm_mncc_bearer_cap *bc); |