FreeCalypso > hg > sipout-test-utils
diff libsip/sdp.h @ 0:35c0d9f03c0a
beginning with sipout-test-voice,
a copy of sip-manual-out from themwi-system-sw
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 03 Mar 2024 23:20:19 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libsip/sdp.h Sun Mar 03 23:20:19 2024 -0800 @@ -0,0 +1,24 @@ +/* + * This header file defines structures to be used for SDP + * parsing and generation. + */ + +struct sdp_parse { + struct in_addr ip_addr; + unsigned audio_port; + unsigned codec_mask; +}; + +struct sdp_gen { + unsigned session_id; + unsigned version; + struct in_addr owner_ip; + struct in_addr conn_ip; + unsigned conn_port; + unsigned codec_mask; +}; + +#define SDP_CODEC_MASK_PCMU 1 +#define SDP_CODEC_MASK_PCMA 2 +#define SDP_CODEC_MASK_BOTH 3 +#define SDP_CODEC_MASK_PCMA_PREF 4