What version are you using? I haven't had the time too look at the code, just that I remember there was a similar fix at some point, maybe it was a regressions afterwards ...
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/534#issuecomment-193302609