Added fix with the second solution on pull-request #469. Basically tested it and the freeze is not happening anymore. However, the first solution can still be logged as an enhancement issue.
If all is ok I will backport this to 4.X branches.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/463#issuecomment-169605420