Hi,
The fix below is wrong, condition must be '<' instead of '<='.
https://github.com/kamailio/kamailio/commit/fbcfa198a2c89868fa021f6a63774425... and backported in 4.2 https://github.com/kamailio/kamailio/commit/2d1032b3c8a1184357615b37da99dfd7...
Regards,