I think I have solved the issue in master with the above patch. Can you please try it out? Thanks.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/424#issuecomment-218572737