From 825800e6d3f297076bcce90f1f82c65a91cbb583 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 29 Oct 2019 09:25:06 +0100 Subject: [PATCH] uac: updated docs for uac_auth() --- src/modules/uac/doc/uac_admin.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml index e0ea5277766..f718924dad0 100644 --- a/src/modules/uac/doc/uac_admin.xml +++ b/src/modules/uac/doc/uac_admin.xml @@ -802,14 +802,18 @@ uac_restore_to();
- <function moreinfo="none">uac_auth()</function> + <function moreinfo="none">uac_auth([mode])</function> - This function can be called only from failure route and will + This function can be called only from failure route and will build the authentication response header and insert it into the request without sending anything. + If mode is set to 1, then the password has to be provided in HA1 format. + The parameter can be a static integer or a variable holding an integer value. + + This function can be used from FAILURE_ROUTE. @@ -836,7 +840,9 @@ failure_route[TRUNKAUTH] { if(t_check_status("401|407")) { $avp(auser) = "test"; $avp(apass) = "test"; + # $avp(apass) = "36d0a02793542b4961e8348347236dbf"; uac_auth(); + # uac_auth("1"); t_relay(); exit; }