Skip to content

Commit

Permalink
uac: allow uac_auth* functions call from t_on_branch_failure event route
Browse files Browse the repository at this point in the history
  • Loading branch information
ovoshlook authored and miconda committed Feb 8, 2023
1 parent 63095ef commit 76df539
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/modules/uac/doc/uac_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
9 changes: 6 additions & 3 deletions src/modules/uac/uac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 76df539

Please sign in to comment.