Module: kamailio
Branch: 5.1
Commit: ee8cfdd3c7cbf241f70407f8813efd5d5d4f5af2
URL:
https://github.com/kamailio/kamailio/commit/ee8cfdd3c7cbf241f70407f8813efd5…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2018-09-13T13:20:07+01:00
auth: allow challenge from failure/onreply routes
(cherry picked from commit fc968236cf76ea6e67dcd74211b0e39e81b65d21)
---
Modified: src/modules/auth/auth_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ee8cfdd3c7cbf241f70407f8813efd5…
Patch:
https://github.com/kamailio/kamailio/commit/ee8cfdd3c7cbf241f70407f8813efd5…
---
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,