This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:auth:auth_db [2014/12/09 22:48] eschmidbauer |
tutorials:auth:auth_db [2014/12/09 22:49] eschmidbauer |
||
---|---|---|---|
Line 31: | Line 31: | ||
</ | </ | ||
+ | < | ||
+ | # ------------------------- | ||
+ | # 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); | ||
+ | } | ||
+ | </ | ||