tutorials:auth:auth_db
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:auth:auth_db [2014/12/09 21:46] – eschmidbauer | tutorials:auth:auth_db [2014/12/09 21:49] – eschmidbauer | ||
---|---|---|---|
Line 10: | Line 10: | ||
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. | 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. | ||
- | ====== | + | ====== |
< | < | ||
- | loadmodule " | ||
- | loadmodule " | ||
loadmodule " | loadmodule " | ||
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); | ||
+ | } | ||
+ | </ | ||
tutorials/auth/auth_db.txt · Last modified: 2014/12/09 21:55 by eschmidbauer