How to configure transcoding?


I was unable to find any relevant documentation, so I’m posting here. The question is how can I manage and configure transcoding?

I would like to get all incoming calls to be transcoded to a codec that copes well with dropped packets by using prediction for example. How can I achieve that?




What codec do you have in mind ?


For example adpcm uses prediction for binary throughput management, but I’d like to try codecs that were designed for speech encoding rather than general ones. Right now I can see most calls use alaw or ulaw, which is plain 64bit PCM and by that they are prone to some errors like dropped packets over the route - which results in noise. I think using maybe something like speex or ilbc could give better quality, lower bandwidth usage for some cpu cost, which i have plenty of. Would you agree?