Install codec g729

Hi,
I’ve bought g729 codec from digium(one licence).
i’ve followed up instructions in the readme file.
and when i do from my console

i can see

i’ve configure a sip chanel to only allow g729
(note : the channel is used with a x-lite client.)
And when a place a call…
during that call I make again show g729
and the message still

i think there is somethink wrong.
Plz Help.
Best regards.

And “sip show channels” said what about the calls ?

Ian

one of provider allow only g729.
When i make call via this provider destination party’s phone ring and when when he answer the line hung up and i can hear a busy tonne.

That will be right if you are not using a g729 codec.

Without showing what you have setup in your sip.conf means it wont be possible to say whats wrong.

it sounds like it not setup correctly.

Ian

there is my iax.conf for my provider

And for the phone do we have to guess?

also what is the dialstring as it will only use this definition if configured to co so otherwise it will use the default settings

:smile:
this is a config for a sip client x-lite

best regards.

here is the output on my CLI
it is too long but i think it will help you to know where my problem is.

best regards.

Ok

A couple of things, Does xlite support G729 ? im not sure it does. secondly

[toure] type=friend username=toure secret=123456 callerid="Toure Mamadou" <5678> host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT allow=g729 ; context=internal
should be

[toure] type=friend username=toure secret=123456 callerid="Toure Mamadou" <5678> host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=g729 ; context=internal

but if xlite doesnt support g729 then the calls will fail.

you have a problem as you have only one codec so testing will prove dificult.

Ian

Voipms support more than g729.

allow=g729; we support alaw,ulaw,ilbc,gsm,g723.1,g726,g729a

But anyway let’s say you want to use g729 and you have a one channel license, the problem is with your xlite configuration. Your g729 license will server as translation between the codec you will use in X-lite and your iax connection with voipms. X-lite doesn’t support g729. I recommend iLBC for x-lite if you need a low bandwidth codec, otherwise g711.u or g711.a (ulaw/alaw) if you have good bandwidth. But it would be a waste of bandwidth since you connect your iax channel with voipms in g729. If you don’t want translation and low bandwidth codec, why don’t you use iLBC or GSM on both your IAX provider and your X-lite config.

Anyway,

So your x-lite config should be as follow:

[toure]
type=friend
username=toure
secret=123456
callerid=“Toure Mamadou” <5678>
host=dynamic ; This device needs to register
nat=yes ; X-Lite is behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT
allow=all
context=internal

Then in x-lite, you go to right click on it, click options, click “advanced” at the bottom of the left menu. Click on Audio Codecs, and make sure you put the codec you want to use on the right of the allowed codecs and remove the ones you don’t want.

Asterisk only uses that g729 license when you have to transcode to another codec. (encode/decode)

-bkruse

[quote=“bkruse”]Asterisk only uses that g729 license when you have to transcode to another codec. (encode/decode)

-bkruse[/quote]

Yes but since x-lite doesn’t support g729, he can’t use pass thru.

Even if i use other codec for xlite client.
I got the same trouble.
I seem that my * server cannot translate call in g729 format.

When you do
show translation

Do you have a similar line for G729 or only - - - - - -

voip3*CLI> 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     -     2     2     2     2     2     1     3     7     -    11
    gsm     6     -     2     2     2     2     1     3     7     -    11
   ulaw     6     2     -     1     2     2     1     3     7     -    11
   alaw     6     2     1     -     2     2     1     3     7     -    11
   g726     6     2     2     2     -     2     1     3     7     -    11
  adpcm     6     2     2     2     2     -     1     3     7     -    11
   slin     5     1     1     1     1     1     -     2     6     -    10
  lpc10     6     2     2     2     2     2     1     -     7     -    11
   g729     6     2     2     2     2     2     1     3     -     -    11
  speex     -     -     -     -     -     -     -     -     -     -     -
   ilbc     6     2     2     2     2     2     1     3     7     -     -