Module: kamailio
Branch: master
Commit: fc968236cf76ea6e67dcd74211b0e39e81b65d21
URL:
https://github.com/kamailio/kamailio/commit/fc968236cf76ea6e67dcd74211b0e39…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2018-09-13T13:17:01+01:00
auth: allow challenge from failure/onreply routes
---
Modified: src/modules/auth/auth_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fc968236cf76ea6e67dcd74211b0e39…
Patch:
https://github.com/kamailio/kamailio/commit/fc968236cf76ea6e67dcd74211b0e39…
---
diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index eb7a7126c4..2dc9c7c1fc 100644
--- a/src/modules/auth/auth_mod.c
+++ b/src/modules/auth/auth_mod.c
@@ -154,11 +154,11 @@ static cmd_export_t cmds[] = {
{"consume_credentials", w_consume_credentials, 0,
0, REQUEST_ROUTE},
{"www_challenge", (cmd_function)www_challenge, 2,
- fixup_auth_challenge, REQUEST_ROUTE},
+ fixup_auth_challenge, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
{"proxy_challenge", (cmd_function)proxy_challenge, 2,
- fixup_auth_challenge, REQUEST_ROUTE},
+ fixup_auth_challenge, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
{"auth_challenge", (cmd_function)w_auth_challenge, 2,
- fixup_auth_challenge, REQUEST_ROUTE},
+ fixup_auth_challenge, REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE},
{"pv_www_authorize", (cmd_function)pv_www_authenticate, 3,
fixup_pv_auth, REQUEST_ROUTE},
{"pv_www_authenticate", (cmd_function)pv_www_authenticate, 3,