As a minimum requirement, I need Kamailio to accept any login with an empty password.
Ideally, I need to perform some simple validation of the login in a script (Lua/Python), and save the given login into a database.
I tried comprehending the documentation and kamailio.cfg, but looks like the docs go into details of specific functions and don't approach the whole picture. Probably the configuration needs understanding of SIP internals.