annotate libsip/sdp.h @ 155:2730ccb44549

sip-out: initial UAC response handling
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Oct 2022 23:30:00 -0800
parents 2423f3aac4ce
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This header file defines structures to be used for SDP
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * parsing and generation.
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 struct sdp_parse {
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 struct in_addr ip_addr;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 unsigned audio_port;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 unsigned codec_mask;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 };
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 struct sdp_gen {
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 unsigned session_id;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 unsigned version;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 struct in_addr owner_ip;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 struct in_addr conn_ip;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 unsigned conn_port;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 unsigned codec_mask;
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 };
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 #define SDP_CODEC_MASK_PCMU 1
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 #define SDP_CODEC_MASK_PCMA 2
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 #define SDP_CODEC_MASK_BOTH 3
2423f3aac4ce libsip: SDP parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 #define SDP_CODEC_MASK_PCMA_PREF 4