annotate libsip/sdp.h @ 176:f5c4f9a764be

osmo-bts-rtp-bfi.patch: updated version This version of the osmo-bts patch sets the TAF bit correctly in generated RTP BFI packets, correctly generates RTP BFI in the case of FACCH stealing on sysmoBTS, and removes one EFR-specific bogon from sysmoBTS code.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 17 Feb 2023 18:27:03 -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