@kai-pham , Did you manage to solve the issue, I am having similar problem with converting pcm16 audio to g711ulaw rtp stream. I have tried various combination with little success.