IN frame.c there is array of Codec defined in AST_FORMAT_LIST[]<div><br></div><div><div>static const struct ast_format_list AST_FORMAT_LIST[] = {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G723_1 , "g723", 8000, "G.723.1", 20, 30, 300, 30, 30 }, /*!< G723.1 */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_GSM, "gsm", 8000, "GSM", 33, 20, 300, 20, 20 }, /*!< codec_gsm.c */</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ULAW, "ulaw", 8000, "G.711 u-law", 80, 10, 150, 10, 20 }, /*!< codec_ulaw.c */</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ALAW, "alaw", 8000, "G.711 A-law", 80, 10, 150, 10, 20 }, /*!< codec_alaw.c */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G726, "g726", 8000, "G.726 RFC3551", 40, 10, 300, 10, 20 }, /*!< codec_g726.c */</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ADPCM, "adpcm" , 8000, "ADPCM", 40, 10, 300, 10, 20 }, /*!< codec_adpcm.c */</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SLINEAR, "slin", 8000, "16 bit Signed Linear PCM", 160, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE }, /*!< Signed linear */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_LPC10, "lpc10", 8000, "LPC10", 7, 20, 20, 20, 20 }, /*!< codec_lpc10.c */ </div>
<div>
<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G729A, "g729", 8000, "G.729A", 10, 10, 230, 10, 20, AST_SMOOTHER_FLAG_G729 }, /*!< Binary commercial distribution */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SPEEX, "speex", 8000, "SpeeX", 10, 10, 60, 10, 20 }, /*!< codec_speex.c */</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ILBC, "ilbc", 8000, "iLBC", 50, 30, 30, 30, 30 }, /*!< codec_ilbc.c */ /* inc=30ms - workaround */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G726_AAL2, "g726aal2", 8000, "G.726 AAL2", 40, 10, 300, 10, 20 }, /*!< codec_g726.c */</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G722, "g722", 16000, "G722", 80, 10, 150, 10, 20 }, /*!< codec_g722.c */</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SLINEAR16, "slin16", 16000, "16 bit Signed Linear PCM (16kHz)", 320, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE }, /*!< Signed linear (16kHz) */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_JPEG, "jpeg", 0, "JPEG image"}, /*!< See format_jpeg.c */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_PNG, "png", 0, "PNG image"}, /*!< PNG Image format */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H261, "h261", 0, "H.261 Video" }, /*!< H.261 Video Passthrough */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H263, "h263", 0, "H.263 Video" }, /*!< H.263 Passthrough support, see format_h263.c */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H263_PLUS, "h263p", 0, "H.263+ Video" }, /*!< H.263plus passthrough support See format_h263.c */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H264, "h264", 0, "H.264 Video" }, /*!< Passthrough support, see format_h263.c */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_MP4_VIDEO, "mpeg4", 0, "MPEG4 Video" }, /*!< Passthrough support for MPEG4 */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_T140RED, "red", 1, "T.140 Realtime Text with redundancy"}, /*!< Redundant T.140 Realtime Text */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_T140, "t140", 0, "Passthrough T.140 Realtime Text" }, /*!< Passthrough support for T.140 Realtime Text */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SIREN7, "siren7", 16000, "ITU G.722.1 (Siren7, licensed from Polycom)", 80, 20, 80, 20, 20 },<span class="Apple-tab-span" style="white-space:pre">                        </span>/*!< Binary commercial distribution */</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SIREN14, "siren14", 32000, "ITU G.722.1 Annex C, (Siren14, licensed from Polycom)", 120, 20, 80, 20, 20 },<span class="Apple-tab-span" style="white-space:pre">        </span>/*!< Binary commercial distribution */</div>
<div>};</div></div><div><br></div><div>Does this defines the order of Prority of Codec it will be Added in INVITE?</div><div>I want to move the G.723 to last ?will moving this array element will do that?</div><div>{ AST_FORMAT_G723_1 , "g723", 8000, "G.723.1", 20, 30, 300, 30, 30 }, /*!< G723.1 */</div>
<div><br></div><div>TIA</div>