I had trouble finding correct syntax with db_text backend, this patch helped me You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/220
-- Commit Summary --
* modules/htable: improves error message when loading from database
-- File Changes --
M modules/htable/ht_db.c (13)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/220.patch https://github.com/kamailio/kamailio/pull/220.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/220