# G.729 codec issue

**URL:** <https://community.asterisk.org/t/g-729-codec-issue/2682>\
**Category:** Asterisk Support\
**Created:** [November 23, 2005, 5:27pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682 "2005-11-23T17:27:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Some\_Desi](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Some\_Desi](https://community.asterisk.org/u/Some_Desi)\
**Post date:** [November 23, 2005, 5:27pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/1 "2005-11-23T17:27:57Z")

</div>

Hi all,  
I have upgraded my asterisk to ver 1.2. Before the upgrade my asterisk machine was able to talk to g729 enabled clients but not any more. I am not sure what is causing this. I never got the chance to do “show translations” before upgrade and after the upgrade, below is the output:

[code]show translation  
Translation times between formats (in milliseconds)  
Source Format (Rows) Destination Format(Columns)

```
     g723 gsm ulaw alaw g726 adpcm slin lpc10 g729 speex ilbc

```

g723 - - - - - - - - - - -  
gsm - - 2 2 2 2 1 4 - 33 15  
ulaw - 3 - 1 2 2 1 4 - 33 15  
alaw - 3 1 - 2 2 1 4 - 33 15  
g726 - 3 2 2 - 2 1 4 - 33 15  
adpcm - 3 2 2 2 - 1 4 - 33 15  
slin - 2 1 1 1 1 - 3 - 32 14  
lpc10 - 4 3 3 3 3 2 - - 34 16  
g729 - - - - - - - - - - -  
speex - 4 3 3 3 3 2 5 - - 16  
ilbc - 4 3 3 3 3 2 5 - 34 -[/code]

Please tell me what might be causing this issue?

---

<div class="post-metadata">

**Author:** ![j3r3my86](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@j3r3my86](https://community.asterisk.org/u/j3r3my86)\
**Post date:** [November 23, 2005, 7:50pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/2 "2005-11-23T19:50:54Z")

</div>

Do you have ‘allow=g729’ set in sip.conf?

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [November 23, 2005, 7:51pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/3 "2005-11-23T19:51:34Z")

</div>

You obviously haven’t got a g729 codec installed. Had you previously bought a licence from Digium?

---

<div class="post-metadata">

**Author:** ![Some\_Desi](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Some\_Desi](https://community.asterisk.org/u/Some_Desi)\
**Post date:** [November 24, 2005, 11:49am UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/4 "2005-11-24T11:49:24Z")

</div>

Actually, I got the problem solved. It was a problem within zultys. But since, I have already posted, what does the table mean which I have posted in my first post (above). Thanks again guys for all your help.

---

<div class="post-metadata">

**Author:** ![mbruni](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mbruni](https://community.asterisk.org/u/mbruni)\
**Post date:** [November 24, 2005, 4:35pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/5 "2005-11-24T16:35:37Z")

</div>

The table shows the time needed to transcode the audio stream from one codec to another, the source codecs are the rows, the destination codecs are the columns, this time is called translation cost; Asterisk do a codec transcoding (translation) when you have a call with legs using different codecs, reading the table you can see that to transcode from gsm to ulaw takes 2 milliseconds of time.

Regards.

Marco Bruni

---

<div class="post-metadata">

**Author:** ![edo](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@edo](https://community.asterisk.org/u/edo)\
**Post date:** [November 24, 2005, 5:13pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/6 "2005-11-24T17:13:44Z")

</div>

can anyone publish “show translation” table with both g729 and speex codecs?

---

<div class="post-metadata">

**Author:** ![Some\_Desi](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Some\_Desi](https://community.asterisk.org/u/Some_Desi)\
**Post date:** [November 24, 2005, 6:12pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/7 "2005-11-24T18:12:26Z")

</div>

Thanks Marco. Now, I am experimenting with G.729 codec and this is what my “show translation” table shows:

[code]show translation  
Translation times between formats (in milliseconds)  
Source Format (Rows) Destination Format(Columns)

```
     g723 gsm ulaw alaw g726 adpcm slin lpc10 g729 speex ilbc

```

g723 - 3 2 2 2 2 1 4 9 33 16  
gsm 9 - 2 2 2 2 1 4 9 33 16  
ulaw 9 3 - 1 2 2 1 4 9 33 16  
alaw 9 3 1 - 2 2 1 4 9 33 16  
g726 9 3 2 2 - 2 1 4 9 33 16  
adpcm 9 3 2 2 2 - 1 4 9 33 16  
slin 8 2 1 1 1 1 - 3 8 32 15  
lpc10 10 4 3 3 3 3 2 - 10 34 17  
g729 10 4 3 3 3 3 2 5 - 34 17  
speex 10 4 3 3 3 3 2 5 10 - 17  
ilbc 10 4 3 3 3 3 2 5 10 34 -[/code]

It clearly shows that my Asterisk has the capabilities to transcode but it is still not be able to connect calls from G.729 users. When a person from a G.729 enabled phone (or proxy) calls, I still get:

```auto

```

or when I call a G.729 proxy, I get:

```auto

```

I would appreciate some help here! Thanks! 😄

---

<div class="post-metadata">

**Author:** ![middletn](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@middletn](https://community.asterisk.org/u/middletn)\
**Post date:** [November 25, 2005, 12:19am UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/8 "2005-11-25T00:19:42Z")

</div>

Interesting, the results must be processor specific, 'cause I get

> [@](#):
>
> ```
> g723 gsm ulaw alaw g726 adpcm slin lpc10 g729 speex ilbc
> 
> ```
> 
> g723 - - - - - - - - - - -  
> gsm - - 2 2 2 2 1 4 10 - 14  
> ulaw - 3 - 1 2 2 1 4 10 - 14  
> alaw - 3 1 - 2 2 1 4 10 - 14  
> g726 - 3 2 2 - 2 1 4 10 - 14  
> adpcm - 3 2 2 2 - 1 4 10 - 14  
> slin - 2 1 1 1 1 - 3 9 - 13  
> lpc10 - 4 3 3 3 3 2 - 11 - 15  
> g729 - 4 3 3 3 3 2 5 - - 15  
> speex - - - - - - - - - - -  
> ilbc - 4 3 3 3 3 2 5 11 - -

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [November 25, 2005, 7:28am UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/9 "2005-11-25T07:28:33Z")

</div>

Yeah, they are. The show translation command shows the time it takes to do the translation. That will obviously depend on the speed of your processor, along with some other factors.

---

<div class="post-metadata">

**Author:** ![mbruni](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mbruni](https://community.asterisk.org/u/mbruni)\
**Post date:** [November 25, 2005, 8:38am UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/10 "2005-11-25T08:38:01Z")

</div>

Some Desi,  
to use the g.729 codec with Asterisk you need a license from Digium, have you it ?

Regards.

Marco Bruni

---

<div class="post-metadata">

**Author:** ![trewq10](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@trewq10](https://community.asterisk.org/u/trewq10)\
**Post date:** [January 4, 2008, 1:41pm UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/11 "2008-01-04T13:41:39Z")

</div>

I got the same problem. My sip.conf have disallow=all allow=g729.  
A Have already purchased the licenses from digium and installed:

linux1\*CLI\> show g729  
0/0 encoders/decoders of 5 licensed channels are currently in use

But when a i try to call another extension, i received the message " No compatible codecs!".

I tryied whithout the disallow=all, only whit allow=g729 and works, but I guess asterisk is using another codec, because the " 0/0 encoders/decoders of 5 licensed channels are currently in use " remains the same.

Samebody have any idea ?

Regards,

Ivan

---

<div class="post-metadata">

**Author:** ![aussie\_troll](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@aussie\_troll](https://community.asterisk.org/u/aussie_troll)\
**Post date:** [February 13, 2008, 9:30am UTC](https://community.asterisk.org/t/g-729-codec-issue/2682/12 "2008-02-13T09:30:05Z")

</div>

I have the exact smae prob as trewq above…i see the codec installed, and cli shows i have the codecs, etc, etc, etc…but any incoming alls give me the error no compatible codecs…

this is a major show stopper for me as the SIP provider I have requires G729.

I did have the g729 codecs from sometime in November, but I noticed that the codecs folders on the download site now have 30/1/08 on them, so i am taking it that that codecs have been rebuilt or something, but I do believe they are not the same as the ones I had from November (which did work properly).
