I am getting problems with one way audio on outbound calls. (I’m in the UK), and I think it is a transcoding issue.
If I make a call the internal part uses uLaw, and the SIP trunk bit uses aLaw, and I get one way audio. However, if I remove the uLaw option from the Peer details in the Trunk settings on the pbx it all works fine.
This sounds like a transcoding problem to me? Does FreePBX do transcoding? Or should I just remove all support for uLaw in the PBX?
If someone could educate me on this matter I’d appreciate it.
Yes, I’m using the Sangoma s305 phones and they all seem to be defaulted to use ulaw as the first codec. So, they are PCMU,PCMA,G722,iLBC,GSM_FR, G726-32 int hat order.
and the outgoing trunk settings? Mine look like this…you might have to add ulaw if supported in the U.K. … I always put g722 first in the Asterisk SIP codec list…
disallow=all
allow=g722,alaw
EDIT: I meant the freePBX extension settings…any codec limitations?
Asterisk should be able to transcode between ulaw and alaw without issue. We can troubleshoot this if desired.
However, transcoding causes a (very slight) quality reduction and increases the server load, so you should avoid it where possible. Set up your devices and Asterisk to have alaw as the first priority codec. Normal calls will then not be transcoded.
However, it’s possible that when you call a ulaw country such as the US, your trunking provider might supply (and require) only ulaw audio, if they don’t have the ability to transcode. If you make such calls, you will need to find out why transcoding in Asterisk is not working.
Thank you Stewart, I was coming round to that conclusion myself. I have managed to force a call to aLaw on both sides, so no transcoding, and there is a noticeable improvement in quality.
When you say set up the devices for alaw, you mean the handsets themselves, or do you mean in the settings in FreePBX in each extension?
Test it on one phone first…
In Germany/Austria I always put g722 first, followed by alaw (Asterisk SIP, Trunk and extensions)…but I dont know about the U.K.