# Codecs

The `codecs` attribute of a SIP configuration lists the codecs offered on calls to an
Inbound Trunk, in priority order: the first has the highest priority.

The list holds at least one codec, without repeats. An empty list, a repeated value, or a
value not listed below returns `422 Unprocessable Entity`. Values are lowercase.

A trunk created without `codecs` uses the default list, in this order: `pcmu`, `pcma`, `g729`, `g723`,
`telephone_event`.

| Value | Codec | Former `codec_ids` value |
| --- | --- | --- |
| `telephone_event` | telephone-event | 6 |
| `g723` | G723 | 7 |
| `g729` | G729 | 8 |
| `pcmu` | PCMU | 9 |
| `pcma` | PCMA | 10 |
| `speex` | speex | 12 |
| `gsm` | GSM | 13 |
| `g726_32` | G726-32 | 14 |
| `g721` | G721 | 15 |
| `g726_24` | G726-24 | 16 |
| `g726_40` | G726-40 | 17 |
| `g726_16` | G726-16 | 18 |
| `l16` | L16 | 19 |
| `amr` | AMR | - |
| `amr_wb` | AMR-WB | - |
