[Asterisk-Users] codecs questions

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Oct 3 09:33:38 MST 2003


On Friday 03 October 2003 08:06 am, listas iPfone wrote:
> I have that lines in sip.conf:
>
> disallow=all
> allow=gsm
> allow=ulaw
> allow=alaw
>
> when i use show codecs:
>
> localhost*CLI> show codecs
>        1 (1 <<  0)  G.723.1
>        2 (1 <<  1)  GSM
>        4 (1 <<  2)  G.711 u-law
>        8 (1 <<  3)  G.711 A-law
>
> 3)Asterisk is using the G.723.1 as the first choice?

No.  The only codecs that you will negotiate will be ulaw, alaw, and
gsm, as specified in your config.  'show codecs' is informational
only.  It indicates nada, nothing, zip, zilch (get the idea?) about
your configuration.  Asterisk will use whatever codec is available
on both sides, followed preferentially by the codec which has the
least cost to translate.  See the 'show translation' matrix.

-Tilghman





More information about the asterisk-users mailing list