Răsfoiți Sursa

uac: updated docs for uac_auth()

Daniel-Constantin Mierla 5 ani în urmă
părinte
comite
825800e6d3
1 a modificat fișierele cu 8 adăugiri și 2 ștergeri
  1. 8 2
      src/modules/uac/doc/uac_admin.xml

+ 8 - 2
src/modules/uac/doc/uac_admin.xml

@@ -802,14 +802,18 @@ uac_restore_to();
 		</section>
 		<section id="uac.f.uac_auth">
 			<title>
-				<function moreinfo="none">uac_auth()</function>
+				<function moreinfo="none">uac_auth([mode])</function>
 			</title>
 			<para>
-			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.
 			</para>
 			<para>
+			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.
+			</para>
+			<para>
 			This function can be used from FAILURE_ROUTE.
 			</para>
 			<example>
@@ -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;
     }