Thanks for report, troubleshooting and proposing the fix.
Can you make a pull request with your patch? It will be easier to merge. Just see the commit message guidelines at:
* http://www.kamailio.org/wiki/devel/github-contributions#commit_message_forma...
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/379#issuecomment-150562096