tutorials:auth:auth_db
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorials:auth:auth_db [2014/12/09 21:49] – eschmidbauer | tutorials:auth:auth_db [2014/12/09 21:52] – eschmidbauer | ||
---|---|---|---|
Line 65: | Line 65: | ||
</ | </ | ||
+ | < | ||
+ | route[REGISTER] | ||
+ | { | ||
+ | if (is_method(" | ||
+ | # auth user/pass | ||
+ | if(!www_authenticate(" | ||
+ | www_challenge(" | ||
+ | } | ||
+ | |||
+ | if (!save(" | ||
+ | sl_reply_error(); | ||
+ | } | ||
+ | exit; | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # Handle INVITE + REFER | ||
+ | route[INVITE] | ||
+ | { | ||
+ | # record routing for dialog forming requests (in case they are routed) | ||
+ | # remove preloaded route headers | ||
+ | remove_hf(" | ||
+ | if (is_method(" | ||
+ | record_route(); | ||
+ | # auth user/pass | ||
+ | if (!proxy_authenticate(" | ||
+ | proxy_challenge(" | ||
+ | exit; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ |
tutorials/auth/auth_db.txt · Last modified: 2014/12/09 21:55 by eschmidbauer