This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:auth:auth_db [2014/12/09 22:36] eschmidbauer created |
tutorials:auth:auth_db [2014/12/09 22:49] eschmidbauer |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Howto setup auth_db and usrloc | + | **Note: This document is work in progress and yet unfinished!** |
+ | |||
+ | This guide is designed to illustrate how to setup auth_db and usrloc | ||
+ | |||
+ | The following modules are required: usrloc, registrar, auth, auth_db | ||
+ | |||
+ | |||
+ | ====== General preparations ====== | ||
+ | |||
+ | You'll probably want to setup your database and add a few users. I will briefly go over how to setup the tables using the schema provided with kamailio. | ||
+ | |||
+ | ====== Modules: auth, auth_db, usrloc, registrar ====== | ||
+ | |||
+ | < | ||
+ | loadmodule " | ||
+ | loadmodule " | ||
+ | loadmodule " | ||
+ | loadmodule " | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # ------------------------- | ||
+ | # main routing logic | ||
+ | |||
+ | route { | ||
+ | |||
+ | # per request initial checks | ||
+ | route(SANITY_CHECK); | ||
+ | |||
+ | # CANCEL processing | ||
+ | if (is_method(" | ||
+ | if (t_check_trans()) { | ||
+ | t_relay(); | ||
+ | } | ||
+ | exit; | ||
+ | } | ||
+ | |||
+ | route(CHECK_SOURCE_IP); | ||
+ | |||
+ | ################################## | ||
+ | ### HANDLE SEQUENTIAL REQUESTS ### | ||
+ | route(WITHINDLG); | ||
+ | |||
+ | ############################### | ||
+ | ### HANDLE INITIAL REQUESTS ### | ||
+ | t_check_trans(); | ||
+ | |||
+ | route(REGISTER); | ||
+ | |||
+ | route(INVITE); | ||
+ | |||
+ | route(RELAY); | ||
+ | |||
+ | } | ||
+ | </ |