Page tree
Skip to end of metadata
Go to start of metadata
  1. Codec Support
  2. Asterisk Codec Configuration
  3. FreeSWITCH Codec Configuration

 

The following chart details all codecs supported by all Sangoma Transcoding hardware:

 

The Chart below indicates Asterisk & FreeSWITCH supported Codecs

CodecG711
ulaw
G711
alaw 
L16
Linear
G729abG723.1G722GSM_FRILBCG726AMR-NBAMR-WBG722.1GSM_EFR
AsteriskYYYYYYYYYNNNN
FreeSWITCH 
YYYYYYYYYNNYN

Legend:   Y - Supported codec
                N - Unsupported codec

 

-> Asterisk: P time(s) are hard-coded at 20ms and cannot be changed
 ->FreeSWITCH:  P time(s) up to and including 50 ms are supported

 

 

 

API Supported Codecs and Ptimes  (not relevant for Asterisk/FreeSWITCH users)

CodecP time (ms)CodecP time (ms)
G711 ulaw10,20,30,40,50ms (64 kbps/8 Khz)G722  10,20,30,40ms (64 kbps/8 khz)
G711 alaw 10,20,30,40,50ms (64 kbps/8 Khz)GSM_FR20 ms (13 kbps/8Khz)
L16 linear10,20,30,40,50ms (128 kbps/8Khz)
10,20,30,40,50ms (256 kbps/16Khz)
GSM_EFR20ms
G729 AB10-200ms (8 kbps/8 Khz)ILBC20,40,60ms (15.2kbps/8Khz)
30,60ms (13.3kbps/8Khz)
G723.130,60,90ms (5.3kbps/8Khz)
30,60,90ms (6.3kbps/8khz)
G72610,20,30,40,50ms (32kbps/8Khz)
G722.1 (Siren 7)20ms (24kbps/16Khz)
20ms (32kbps/16Khz)
AMR

20,40ms (4.75kbps/8Khz)
20,40ms (5.15kbps/8Khz)
20,40ms (5.90kbps/8Khz)

 

*Note: The above Codec Support is based on the hardware (independent on the application above) 

 

Note: Using the AMR-WB resource in connection with a Sangoma SBC or Sangoma Transcoding Boards described herein does not grant the right to practice the AMR-WB standard. To seek a patent license agreement to practice the standard, contact VoiceAge Corporation at www.voiceage.com/licensing.php.

 

 


Asterisk Codec Configuration

 

The Sangoma transcoder will perform transcoding for all codecs listed in the codec module configuration file: sangoma_codec.conf.
By default, the codec module is already pre-configured to perform all codec translations for G729.  If you require only g729 translations you do not need to edit any information.

If you require the transcoder to perform transcoding for additional codecs, edit sangoma_codec.conf and add the translation with the following syntax:

-> register=XX     Where 'XX' represents the codec of your choice (ie. register=pcmu)

*List all codes in a single register= line separated by commas. Eg ->    register=g729toulaw,ulawtog729

If only one codec is specified in the command above, then all possible translation combinations for that codec will be registered. For example "pcmu" , (pcmu->alaw,  alaw->pcmu, g723->pcmu,  pcmu->g723,  gsm->pcmu, pcmu->gsm…etc)

If you register specific translation paths, (i.e g729toulaw, ulawtog729), then the codecs will be invoked for only those translations combinations, and no other.

If you wish to NOT register a codec or translation, edit sangoma_codec.conf and add the translation with the following syntax:

-> noregister=XX    Where 'XX' represents the codec of your choice ie. pcmu 

*List all codes in a single noregister= line separated by commas. Eg ->    noregister=alaw,g723.1

Asterisk supported codecs with their syntax in sangoma_codec.conf

Codecregister=
G711 ulawpcmu
G711 alawpcma
L16 Linearslin
G729ABg729
G723.1g723.1
G722g722
GSM_FRgsm
ILBCilbc
G726g726

 

sample sangoma_codec.conf file with various codec usages:      

     

                    

 

 

 

-> After editing your codecs in sangoma_codecs.conf, you must either restart Asterisk, or reload the codec module in asterisk ("module reload codec_sangoma.so")

 

Type 'sangoma show codecs' at the Asterisk CLI for a list of supported codecs

Type 'sangoma show translators' at the Asterisk CLI for the list of translators registered


FreeSWITCH Codec Configuration

The Sangoma transcoder will perform transcoding for all codecs listed in the codec module configuration file: sangoma_codec.conf.xml
By default, the codec module is already pre-configured to perform all codec translations for G729.  If you require only g729 translations you do not need to edit any information.

If you require the transcoder to perform transcoding for additional codecs, edit sangoma_codec.conf.xmland add the translation with the following syntax:

-> <param name="register" value="X"/>     Where 'X' represents the codec of your choice (ie. <param name="register" value="g729"/>)

If you wish to NOT register a codec or translation, edit sangoma_codec.conf and add the translation with the following syntax:

-> <param name="noregister" value="X"/>    Where 'X' represents the codec of your choice ie. pcmu

 

FreeSWITCH supported codecs with their syntax in sangoma_codec.conf.xml

Codecregister=
G711 ulawpcmu
G711 alawpcma
L16 Linearslin
G729ABg729
G723.1g723
G722.1g7221
g722g722
GSM_FRgsm
ILBCilbc
G726g726-32

 

sample sangoma_codec.conf.xml file with various codec usages:      

     

 

                    

 

 

 

 -> Type 'show codecs' in FS CLI and all codecs prefixed with "sangoma" are registered by the transcoder

-> Type ' sangoma_codec sessions' in FS CLI to see codec session with RTP information

  • No labels