Asterisk voice delay

Hi,

We got this question in our “ask the community” forum at Free Software Magazine.
I redirected the person to the forums here. However, here is his/het question:


Hi, I am a begginer
i installed debian etch + asterisk 1.2 recently
i created 2 accounts
in my local LAN i have de asterisk box and an IPphone
when somebody from outside my LAN calls me, I hear my voice reaching the other side with a delay of 5 to 10 sec
i used a natted lan and a adsl internet conection
i installed a free g729 that i found on the web
what can be the problem?
thanks a lot

Bye,

Merc.

Howdy,

I’d council them that what they’re calling a “free” G.729 inplementation doesn’t permit free use. It’s code from Intel that provides the user the ability to use the code under an evaluation license, provided that user has registered for an evaluation license with Intel. This Intel code does not provide the user with a valid license from the G.729 consortium for the use of their patented codec.

Quoting the Intel IPP FAQ (intel.com/cd/software/produc … 219693.htm)

Further, to quote the IPP License Agreement itself (intel.com/cd/software/produc … 346084.htm):

I’d council the user that if they’re in a country that respects any of the G.729 patents, they should immediately stop using what they’re calling a “free” implementation or they should immediately secure a license from the G.729 consortium and from Intel for their code.

I’d also suggest to them that they attempt their call using a G.711 codec, u-law or a-law, for testing purposes. And, if they determine that they do need the bandwidth savings offered by the G.729 codec, that they investigate Digium’s G.729 offering, for which Digium has secured the appropriate licensing from the G.729 consortium to sell a product.

If the call is an IP to IP call, and one user hears the sound of their own voice echoing back to them 5 seconds later, then they’ve got a very latent link and the IP phones are not doing a good job of echo cancellation. If it’s not echo they’re experiencing but instead delay as the audio goes from one phone to another, then there’s simply too much latency. Perhaps the’ve got Asterisk installed on an underpowered machine.

Cheers.

Hi

I agree with all the above, Too often its felt its OK to use the “free” g729" codec well it isnt.

As to the problem it sounds like a processing issue show translations might give an idea of whats going on

Ian

Maybe it is for the g.729. It is delayed too much. You could try by g.711. if it is for the capablity of the pc. It is also possible for the network delay.

leon
telecomchinasourcing.com

I would try ulaw. Outside of the legalities of the g729 codec is the fact that IMHO, it is crappy sounding.

In an Asterisk setup the Intel based G729 codec is kind of a wildcard, so at least for testing, try ulaw.

How does the outside caller connect to your LAN? Do you use a piece of hardware to terminate a PSTN line, or are you using an IP based phone company?

If you are using an IP based phone comapny, what are the ping times to them like? Are you using SIP or IAX? What kind of hardware do you have between the net and your asterisk box? Traceroute might be your friend.

How do calls between phones on your LAN sound? You can install a soft phone on a couple of PC’s and see how that works.