[asterisk-dev] redordering the Codec Priority
Elazar Rosenthal
elazar at panix.com
Tue May 10 21:00:00 CDT 2011
Mast<© oõoi at fnkh
MK '+% x x x x v v b v. B v v. V v. V v b. Bb b b b. N. V.9
Alok Prasad <alok.prasad7 at gmail.com> wrote:
>IN frame.c there is array of Codec defined in AST_FORMAT_LIST[]
>
>static const struct ast_format_list AST_FORMAT_LIST[] = {
>{ AST_FORMAT_G723_1 , "g723", 8000, "G.723.1", 20, 30, 300, 30, 30 },
> /*!< G723.1 */
> { AST_FORMAT_GSM, "gsm", 8000, "GSM", 33, 20, 300, 20, 20 },
> /*!< codec_gsm.c */
> { AST_FORMAT_ULAW, "ulaw", 8000, "G.711 u-law", 80, 10, 150, 10, 20 },
> /*!< codec_ulaw.c */
>{ AST_FORMAT_ALAW, "alaw", 8000, "G.711 A-law", 80, 10, 150, 10, 20 },
> /*!< codec_alaw.c */
> { AST_FORMAT_G726, "g726", 8000, "G.726 RFC3551", 40, 10, 300, 10, 20 },
> /*!< codec_g726.c */
> { AST_FORMAT_ADPCM, "adpcm" , 8000, "ADPCM", 40, 10, 300, 10, 20 },
> /*!< codec_adpcm.c */
>{ AST_FORMAT_SLINEAR, "slin", 8000, "16 bit Signed Linear PCM", 160, 10, 70,
>10, 20, AST_SMOOTHER_FLAG_BE }, /*!< Signed linear */
> { AST_FORMAT_LPC10, "lpc10", 8000, "LPC10", 7, 20, 20, 20, 20 },
> /*!< codec_lpc10.c */
> { AST_FORMAT_G729A, "g729", 8000, "G.729A", 10, 10, 230, 10, 20,
>AST_SMOOTHER_FLAG_G729 }, /*!< Binary commercial distribution */
> { AST_FORMAT_SPEEX, "speex", 8000, "SpeeX", 10, 10, 60, 10, 20 },
> /*!< codec_speex.c */
> { AST_FORMAT_ILBC, "ilbc", 8000, "iLBC", 50, 30, 30, 30, 30 },
> /*!< codec_ilbc.c */ /* inc=30ms - workaround */
> { AST_FORMAT_G726_AAL2, "g726aal2", 8000, "G.726 AAL2", 40, 10, 300, 10, 20
>}, /*!< codec_g726.c */
> { AST_FORMAT_G722, "g722", 16000, "G722", 80, 10, 150, 10, 20 },
> /*!< codec_g722.c */
>{ AST_FORMAT_SLINEAR16, "slin16", 16000, "16 bit Signed Linear PCM (16kHz)",
>320, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE }, /*!< Signed linear (16kHz)
>*/
> { AST_FORMAT_JPEG, "jpeg", 0, "JPEG image"},
> /*!< See format_jpeg.c */
> { AST_FORMAT_PNG, "png", 0, "PNG image"},
> /*!< PNG Image format */
> { AST_FORMAT_H261, "h261", 0, "H.261 Video" },
> /*!< H.261 Video Passthrough */
> { AST_FORMAT_H263, "h263", 0, "H.263 Video" },
> /*!< H.263 Passthrough support, see
>format_h263.c */
> { AST_FORMAT_H263_PLUS, "h263p", 0, "H.263+ Video" },
> /*!< H.263plus passthrough support See
>format_h263.c */
> { AST_FORMAT_H264, "h264", 0, "H.264 Video" },
> /*!< Passthrough support, see format_h263.c */
> { AST_FORMAT_MP4_VIDEO, "mpeg4", 0, "MPEG4 Video" },
> /*!< Passthrough support for MPEG4 */
> { AST_FORMAT_T140RED, "red", 1, "T.140 Realtime Text with redundancy"},
> /*!< Redundant T.140 Realtime Text */
> { AST_FORMAT_T140, "t140", 0, "Passthrough T.140 Realtime Text" },
> /*!< Passthrough support for T.140 Realtime Text
>*/
> { AST_FORMAT_SIREN7, "siren7", 16000, "ITU G.722.1 (Siren7, licensed from
>Polycom)", 80, 20, 80, 20, 20 }, /*!< Binary commercial distribution */
> { AST_FORMAT_SIREN14, "siren14", 32000, "ITU G.722.1 Annex C, (Siren14,
>licensed from Polycom)", 120, 20, 80, 20, 20 }, /*!< Binary commercial
>distribution */
>};
>
>Does this defines the order of Prority of Codec it will be Added in INVITE?
>I want to move the G.723 to last ?will moving this array element will do
>that?
>{ AST_FORMAT_G723_1 , "g723", 8000, "G.723.1", 20, 30, 300, 30, 30 },
> /*!< G723.1 */
>
>TIA
>
>--
>_____________________________________________________________________
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
>asterisk-dev mailing list
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list