Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

closed as unclear what you're asking by SvW, mdpc, Ward, Tim Brigham, Rex Jan 13 at 19:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

up vote 1 down vote accepted

Just remove authorization sequence and it will allow any user or password.

If you need validation via database, use avp/db_auth.

 if (is_method("REGISTER"))
        {
                sl_send_reply("100", "Trying");
                # authenticate the REGISTER requests (uncomment to enable auth)

                  if (!www_authorize("$td","cc_sip_buddies")) {
                          www_challenge("$td","0");
                          return 0;
                };
                consume_credentials();
                # handle registrations
                if ($au!=$tU)
                {
                        sl_send_reply("403","Forbidden auth ID");
                        return 0;
                }
                 route(REGISTRAR);
        } 

If you expect do something with lua, consult lua docs.

Anyway you can't do anything without understanding how sip works.

share|improve this answer
    
Thanks a lot, undefining WITH_AUTH in kamailio.cfg worked. Somehow I recall this didn't help me before, but probably I just didn't test it properly. –  Victor Sergienko Jan 4 at 20:01
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.