My initial reaction is that this is valid within the contract for UDP services. Networks do not guarantee that UDP packets will not be duplicated. The typical reason for duplication would a be a reconfiguration of a network after a link appeared to have failed.
Significant numbers of duplicates would indicate a network that had problems.
Thank you @david55 for your reply, except transport is TCP.
Only a specific device show the packets lost (if I replace with a different hardware no packet are lost), maker says that his device is fine and won’t replace it.
So is there any way to understand objectively if it is this device that trigger the troubles?
There are also good reason why UDP is used. It is generally better to interpolate missing packets than to have an extended silence during which the sender waits for a missing ACK and resends the packet.
I’m not sure which end is which, but I would say your problem is much more likely due to the payload type 127 that wireshark is failing to match against the SDP.
I think, at this point, I would want the full SDP exchange from the “pjsip set logger on” output (or for legacy systems, “sip set debug on”).
I don’t believe that you have really lost more than 5 million packets. That’s more than a day’s worth. If you have, the wrong denominator is being used for the percentage calculation.
It’s possible that the failure to match type 127 is because the captured SDP is truncated, but one reason it may be truncated is that you are allowing far too many codecs. You should only allow the codecs you intend to use.
You mentioned video freeze, do you mean the handset screen locks up? Obviously Video isn’t using G729?
Also, any reason you are using G729, I would suggest using something else as you may run into issues if the box is trying to transcode that using software rather than a transcoding card.