3 * Defines IAX2 codec types
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __IAX2_CODEC_TYPE_H__
13 #define __IAX2_CODEC_TYPE_H__
16 /* Ref: format_compatibility.h from Asterisk source */
18 /* Data formats for capabilities and frames alike */
19 /* suitable for use in iax2.codec dissector table */
20 /*! G.723.1 compression */
21 #define AST_FORMAT_G723_1 0
22 /*! GSM compression */
23 #define AST_FORMAT_GSM 1
24 /*! Raw mu-law data (G.711) */
25 #define AST_FORMAT_ULAW 2
26 /*! Raw A-law data (G.711) */
27 #define AST_FORMAT_ALAW 3
28 /*! ADPCM (G.726, 32kbps, AAL2 codeword packing) */
29 #define AST_FORMAT_G726_AAL2 4
31 #define AST_FORMAT_ADPCM 5
32 /*! Raw 16-bit Signed Linear (8000 Hz) PCM */
33 #define AST_FORMAT_SLINEAR 6
34 /*! LPC10, 180 samples/frame */
35 #define AST_FORMAT_LPC10 7
37 #define AST_FORMAT_G729A 8
38 /*! SpeeX Free Compression */
39 #define AST_FORMAT_SPEEX 9
40 /*! iLBC Free Compression */
41 #define AST_FORMAT_ILBC 10
42 /*! ADPCM (G.726, 32kbps, RFC3551 codeword packing) */
43 #define AST_FORMAT_G726 11
45 #define AST_FORMAT_G722 12
46 /*! G.722.1 (also known as Siren7, 32kbps assumed) */
47 #define AST_FORMAT_SIREN7 13
48 /*! G.722.1 Annex C (also known as Siren14, 48kbps assumed) */
49 #define AST_FORMAT_SIREN14 14
50 /*! Raw 16-bit Signed Linear (16000 Hz) PCM */
51 #define AST_FORMAT_SLINEAR16 15
53 #define AST_FORMAT_JPEG 16
55 #define AST_FORMAT_PNG 17
57 #define AST_FORMAT_H261 18
59 #define AST_FORMAT_H263 19
61 #define AST_FORMAT_H263_PLUS 20
63 #define AST_FORMAT_H264 21
65 #define AST_FORMAT_MP4_VIDEO 22
67 #define AST_FORMAT_VP8 23
68 /*! T.140 RED Text format RFC 4103 */
69 #define AST_FORMAT_T140_RED 26
70 /*! T.140 Text format - ITU T.140, RFC 4103 */
71 #define AST_FORMAT_T140 27
72 /*! G.719 (64 kbps assumed) */
73 #define AST_FORMAT_G719 32
74 /*! SpeeX Wideband (16kHz) Free Compression */
75 #define AST_FORMAT_SPEEX16 33
76 /*! Opus audio (8kHz, 16kHz, 24kHz, 48Khz) */
77 #define AST_FORMAT_OPUS 34
78 /*! Raw testing-law data (G.711) */
79 #define AST_FORMAT_TESTLAW 47
82 /* data format for IAX_IE_DATAFORMAT ie */
83 /* suitable for use in iax2.dataformat dissector table */
85 AST_DATAFORMAT_NULL
, /* N/A: analogue call etc */
86 AST_DATAFORMAT_V110
, /* ITU-T V.110 rate adaption */
87 AST_DATAFORMAT_H223_H245
/* ITU-T H.223/H.245 */