I'm glad I could help.
If you consider extending the kamailio pdb module to make the length of the prefix
configurable(e.g. via modparam) just make a pull request for it.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/433#issuecomment-163165920