Reworked the patch because the old versions of C don't allow declarations of arrays with size specified as variable. It is now in master branch.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/161#issuecomment-104011678