comparison libsip/sdp.h @ 53:2423f3aac4ce

libsip: SDP parsing implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Sep 2022 10:45:50 -0800
parents
children
comparison
equal deleted inserted replaced
52:ffb563a17f23 53:2423f3aac4ce
1 /*
2 * This header file defines structures to be used for SDP
3 * parsing and generation.
4 */
5
6 struct sdp_parse {
7 struct in_addr ip_addr;
8 unsigned audio_port;
9 unsigned codec_mask;
10 };
11
12 struct sdp_gen {
13 unsigned session_id;
14 unsigned version;
15 struct in_addr owner_ip;
16 struct in_addr conn_ip;
17 unsigned conn_port;
18 unsigned codec_mask;
19 };
20
21 #define SDP_CODEC_MASK_PCMU 1
22 #define SDP_CODEC_MASK_PCMA 2
23 #define SDP_CODEC_MASK_BOTH 3
24 #define SDP_CODEC_MASK_PCMA_PREF 4