Module: kamailio
Branch: master
Commit: 76df53900b96852345d1ef368e5539197a3c5570
URL:
https://github.com/kamailio/kamailio/commit/76df53900b96852345d1ef368e55391…
Author: ovoshlook <ovoshlook(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-08T10:59:09+01:00
uac: allow uac_auth* functions call from t_on_branch_failure event route
---
Modified: src/modules/uac/doc/uac_admin.xml
Modified: src/modules/uac/uac.c
---
Diff:
https://github.com/kamailio/kamailio/commit/76df53900b96852345d1ef368e55391…
Patch:
https://github.com/kamailio/kamailio/commit/76df53900b96852345d1ef368e55391…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index 68123e5af5..b51fc4483c 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -886,7 +886,7 @@ uac_restore_to();
The parameter can be a static integer or a variable holding an integer value.
</para>
<para>
- This function can be used from FAILURE_ROUTE.
+ This function can be used from FAILURE_ROUTE and BRANCH_FAILURE_ROUTE event route.
</para>
<example>
<title><function>uac_auth</function> usage</title>
@@ -938,7 +938,7 @@ failure_route[TRUNKAUTH] {
The parameter can be a static integer or a variable holding an integer value.
</para>
<para>
- This function can be used from FAILURE_ROUTE.
+ This function can be used from FAILURE_ROUTE and BRANCH_FAILURE_ROUTE event route.
</para>
<example>
<title><function>uac_auth_mode</function> usage</title>
diff --git a/src/modules/uac/uac.c b/src/modules/uac/uac.c
index 50873ef557..f768f82ed1 100644
--- a/src/modules/uac/uac.c
+++ b/src/modules/uac/uac.c
@@ -136,11 +136,14 @@ static cmd_export_t cmds[]={
{"uac_replace_to", (cmd_function)w_replace_to, 1, fixup_spve_spve, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
{"uac_restore_to", (cmd_function)w_restore_to, 0, 0, 0, REQUEST_ROUTE },
- {"uac_auth", (cmd_function)w_uac_auth, 0, 0, 0, FAILURE_ROUTE },
+ {"uac_auth", (cmd_function)w_uac_auth, 0, 0, 0,
+ FAILURE_ROUTE | BRANCH_FAILURE_ROUTE | EVENT_ROUTE },
{"uac_auth", (cmd_function)w_uac_auth_mode, 1,
- fixup_igp_null, fixup_free_igp_null, FAILURE_ROUTE },
+ fixup_igp_null, fixup_free_igp_null,
+ FAILURE_ROUTE | BRANCH_FAILURE_ROUTE | EVENT_ROUTE },
{"uac_auth_mode", (cmd_function)w_uac_auth_mode, 1,
- fixup_igp_null, fixup_free_igp_null, FAILURE_ROUTE },
+ fixup_igp_null, fixup_free_igp_null,
+ FAILURE_ROUTE | BRANCH_FAILURE_ROUTE | EVENT_ROUTE },
{"uac_req_send", (cmd_function)w_uac_req_send, 0, 0, 0, ANY_ROUTE},
{"uac_reg_lookup", (cmd_function)w_uac_reg_lookup, 2, fixup_spve_pvar,
fixup_free_spve_pvar, ANY_ROUTE },