1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #include "ccsdp_rtcp_fb.h"
11 #define SIPSDP_ILBC_MODE20 20
14 * Return codes for sdp helper APIs
16 typedef enum rtp_ptype_
36 RTP_TELEPHONE_EVENT
= 101,
39 RTP_ILBC
= 116, /* used only to make an offer */
53 } ccsdp_key_table_entry_t
;
55 typedef enum max_coded_audio_bandwidth_
{
56 opus_nb
= 0, /* Narrowband */
57 opus_mb
= 1, /* Mediumband */
58 opus_wb
= 2, /* Wideband */
59 opus_swb
= 3, /* Super-wideband */
60 opus_fb
= 4 /* Fullband */
61 } max_coded_audio_bandwidth
;
63 static const ccsdp_key_table_entry_t max_coded_audio_bandwidth_table
[] = {
72 SDP_SUCCESS
, /**< Success */
75 SDP_NOT_SDP_DESCRIPTION
,
76 SDP_INVALID_TOKEN_ORDERING
,
77 SDP_INVALID_PARAMETER
,
78 SDP_INVALID_MEDIA_LEVEL
,
79 SDP_INVALID_CAPABILITY
,
81 SDP_UNRECOGNIZED_TOKEN
,
83 SDP_POTENTIAL_SDP_OVERFLOW
,
89 * Indicates invalid bandwidth value
91 #define SDP_INVALID_VALUE (-2)
94 * Bandwidth modifier type for b= SDP line
97 SDP_BW_MODIFIER_INVALID
= -1,
98 SDP_BW_MODIFIER_AS
, /** < b=AS: */
99 SDP_BW_MODIFIER_CT
, /** < b=CT: */
100 SDP_BW_MODIFIER_TIAS
, /** < b=TIAS: */
101 SDP_MAX_BW_MODIFIER_VAL
,
102 SDP_BW_MODIFIER_UNSUPPORTED
106 * SDP attribute types
108 /* Attribute Types */
132 SDP_ATTR_T38_VERSION
,
133 SDP_ATTR_T38_MAXBITRATE
,
134 SDP_ATTR_T38_FILLBITREMOVAL
,
135 SDP_ATTR_T38_TRANSCODINGMMR
,
136 SDP_ATTR_T38_TRANSCODINGJBIG
,
137 SDP_ATTR_T38_RATEMGMT
,
138 SDP_ATTR_T38_MAXBUFFER
,
139 SDP_ATTR_T38_MAXDGRAM
,
148 SDP_ATTR_TC1_PAYLOAD_BYTES
,
149 SDP_ATTR_TC1_WINDOW_SIZE
,
150 SDP_ATTR_TC2_PAYLOAD_BYTES
,
151 SDP_ATTR_TC2_WINDOW_SIZE
,
154 SDP_ATTR_SILENCESUPP
,
155 SDP_ATTR_SRTP_CONTEXT
, /* version 2 sdescriptions */
162 SDP_ATTR_SOURCE_FILTER
,
163 SDP_ATTR_RTCP_UNICAST
,
169 SDP_ATTR_SDESCRIPTIONS
, /* version 9 sdescriptions */
172 SDP_ATTR_ICE_CANDIDATE
,
177 SDP_ATTR_DTLS_FINGERPRINT
,
179 SDP_ATTR_RTCP_FB
, /* RFC 4585 */
182 SDP_ATTR_EXTMAP
, /* RFC 5285 */
185 SDP_ATTR_MSID_SEMANTIC
,
186 SDP_ATTR_BUNDLE_ONLY
,
187 SDP_ATTR_END_OF_CANDIDATES
,
188 SDP_ATTR_ICE_OPTIONS
,
193 SDP_ATTR_DTLS_MESSAGE
,
195 SDP_ATTR_MAXMESSAGESIZE
,
203 SDP_SETUP_NOT_FOUND
= -1,
204 SDP_SETUP_ACTIVE
= 0,