I believe we have investigated this in the past and the issue was related with an incomplete implementation of the SDP on the grandstream PBX, they did not support dynamic codecs in the SDP back then, i don't know if they have made any fixes for this since,
We would need a packetcapture to investigate this further.