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 , &quot;g723&quot;, 8000, &quot;G.723.1&quot;, 20, 30, 300, 30, 30 },                                  /*!&lt; G723.1 */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_GSM, &quot;gsm&quot;, 8000, &quot;GSM&quot;, 33, 20, 300, 20, 20 },                                           /*!&lt; codec_gsm.c */</div><div>

<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ULAW, &quot;ulaw&quot;, 8000, &quot;G.711 u-law&quot;, 80, 10, 150, 10, 20 },                                 /*!&lt; codec_ulaw.c */</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ALAW, &quot;alaw&quot;, 8000, &quot;G.711 A-law&quot;, 80, 10, 150, 10, 20 },                                 /*!&lt; codec_alaw.c */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G726, &quot;g726&quot;, 8000, &quot;G.726 RFC3551&quot;, 40, 10, 300, 10, 20 },                               /*!&lt; codec_g726.c */</div><div>

<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ADPCM, &quot;adpcm&quot; , 8000, &quot;ADPCM&quot;, 40, 10, 300, 10, 20 },                                    /*!&lt; codec_adpcm.c */</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SLINEAR, &quot;slin&quot;, 8000, &quot;16 bit Signed Linear PCM&quot;, 160, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE }, /*!&lt; Signed linear */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_LPC10, &quot;lpc10&quot;, 8000, &quot;LPC10&quot;, 7, 20, 20, 20, 20 },                                       /*!&lt; codec_lpc10.c */ </div>
<div>
<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G729A, &quot;g729&quot;, 8000, &quot;G.729A&quot;, 10, 10, 230, 10, 20, AST_SMOOTHER_FLAG_G729 },             /*!&lt; Binary commercial distribution */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SPEEX, &quot;speex&quot;, 8000, &quot;SpeeX&quot;, 10, 10, 60, 10, 20 },                                      /*!&lt; codec_speex.c */</div><div>

<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_ILBC, &quot;ilbc&quot;, 8000, &quot;iLBC&quot;, 50, 30, 30, 30, 30 },                                         /*!&lt; codec_ilbc.c */ /* inc=30ms - workaround */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G726_AAL2, &quot;g726aal2&quot;, 8000, &quot;G.726 AAL2&quot;, 40, 10, 300, 10, 20 },                         /*!&lt; codec_g726.c */</div><div>

<span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_G722, &quot;g722&quot;, 16000, &quot;G722&quot;, 80, 10, 150, 10, 20 },                                       /*!&lt; codec_g722.c */</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SLINEAR16, &quot;slin16&quot;, 16000, &quot;16 bit Signed Linear PCM (16kHz)&quot;, 320, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE },    /*!&lt; Signed linear (16kHz) */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_JPEG, &quot;jpeg&quot;, 0, &quot;JPEG image&quot;},                                                           /*!&lt; See format_jpeg.c */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_PNG, &quot;png&quot;, 0, &quot;PNG image&quot;},                                                              /*!&lt; PNG Image format */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H261, &quot;h261&quot;, 0, &quot;H.261 Video&quot; },                                                         /*!&lt; H.261 Video Passthrough */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H263, &quot;h263&quot;, 0, &quot;H.263 Video&quot; },                                                         /*!&lt; H.263 Passthrough support, see format_h263.c */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H263_PLUS, &quot;h263p&quot;, 0, &quot;H.263+ Video&quot; },                                                  /*!&lt; H.263plus passthrough support See format_h263.c */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_H264, &quot;h264&quot;, 0, &quot;H.264 Video&quot; },                                                         /*!&lt; Passthrough support, see format_h263.c */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_MP4_VIDEO, &quot;mpeg4&quot;, 0, &quot;MPEG4 Video&quot; },                                                   /*!&lt; Passthrough support for MPEG4 */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_T140RED, &quot;red&quot;, 1, &quot;T.140 Realtime Text with redundancy&quot;},                                /*!&lt; Redundant T.140 Realtime Text */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_T140, &quot;t140&quot;, 0, &quot;Passthrough T.140 Realtime Text&quot; },                                     /*!&lt; Passthrough support for T.140 Realtime Text */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SIREN7, &quot;siren7&quot;, 16000, &quot;ITU G.722.1 (Siren7, licensed from Polycom)&quot;, 80, 20, 80, 20, 20 },<span class="Apple-tab-span" style="white-space:pre">                        </span>/*!&lt; Binary commercial distribution */</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>{ AST_FORMAT_SIREN14, &quot;siren14&quot;, 32000, &quot;ITU G.722.1 Annex C, (Siren14, licensed from Polycom)&quot;, 120, 20, 80, 20, 20 },<span class="Apple-tab-span" style="white-space:pre">        </span>/*!&lt; 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 , &quot;g723&quot;, 8000, &quot;G.723.1&quot;, 20, 30, 300, 30, 30 },                                  /*!&lt; G723.1 */</div>

<div><br></div><div>TIA</div>