annotate libsip/sdp.h @ 199:e6c7ced3c031

mgw: accept zero-length RTP payload as BFI Mainline OsmoBTS now has an option (rtp continuous-streaming) that causes it to emit an RTP packet every 20 ms without gaps, sending a BFI marker in the form of zero-length RTP payload when it has nothing else to send. These codec-independent BFI markers don't indicate TAF, but this provision is a good start. Accept this BFI packet format in themwi-mgw.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 29 Mar 2023 20:23:43 -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