I have a strange problem with one of our asterisk installations.
A while ago we noticed, that some incoming calls had a very bad sound quality while others were ok. Sometimes this would persist through the whole call, sometimes this would resolve itself after a few seconds. When the problem occurs, the sound get very “jittery” or “shivering” and is very hard to understand.
I’ve now looked deeper into it and noticed, that the RTP payload type on the problem calls switches every 2 packets from 0(ulaw) to 8(alaw) and back again.
I changed the allowed codices to g722, alaw, ulaw and only to alaw, but the problem persists, even when I forbid the usage of ulaw. If I add g722, it starts switching between payload types 9 and 0.
Has someone an idea what could cause this?
The PBX is an Asterisk 16 on Debian 10, which still uses res_sip
Interestingly the problems started a short while ago, while the last change to the sip connection settings was years ago…