It doesn't look like a need to re-use code from auth_db in any way, you can make the query from the new module (it will be simpler than what auth_db does) or rely on the config file (e.g., is_subscriber() or use of sqlops). I am saying because the allowed user identity can be also in uri table (see uri_db module).
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/50#issuecomment-71912539