Module: kamailio
Branch: master
Commit: 998d26aef7fcccf52957076acd8fec6b81968b1c
URL: 
https://github.com/kamailio/kamailio/commit/998d26aef7fcccf52957076acd8fec6b81968b1c

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2018-02-25T08:01:53+01:00

auth: docs - adjustments to examples

---

Modified: src/modules/auth/doc/auth_functions.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/998d26aef7fcccf52957076acd8fec6b81968b1c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/998d26aef7fcccf52957076acd8fec6b81968b1c.patch

---

diff --git a/src/modules/auth/doc/auth_functions.xml 
b/src/modules/auth/doc/auth_functions.xml
index 0f56d0b0b7..581509ee3a 100644
--- a/src/modules/auth/doc/auth_functions.xml
+++ b/src/modules/auth/doc/auth_functions.xml
@@ -11,7 +11,7 @@
 <section id="auth.functions" xmlns:xi="http://www.w3.org/2001/XInclude";>
 
     <title>Functions</title>
-    
+
     <section id="auth.f.consume_credentials">
        <title><function>consume_credentials()</function></title>
        <para>
@@ -32,7 +32,7 @@
 ...
 if (www_authenticate("realm", "subscriber")) {
     consume_credentials();
-};
+}
 ...
            </programlisting>
        </example>
@@ -122,6 +122,7 @@ if (has_credentials("myrealm")) {
 ...
 if (!www_authenticate("$td", "subscriber")) {
        www_challenge("$td", "1");
+       exit;
 }
 ...
 </programlisting>
@@ -152,7 +153,8 @@ if (!www_authenticate("$td", "subscriber")) {
 ...
 if (!proxy_authenticate("$fd", "subscriber")) {
        proxy_challenge("$fd", "1");
-};
+       exit;
+}
 ...
 </programlisting>
                </example>
@@ -181,7 +183,8 @@ if (!proxy_authenticate("$fd", "subscriber")) {
 ...
 if (!auth_check("$fd", "subscriber", "1")) {
        auth_challenge("$fd", "1");
-};
+       exit;
+}
 ...
 </programlisting>
                </example>
@@ -295,7 +298,8 @@ if (!auth_check("$fd", "subscriber", "1")) {
 ...
 if (!pv_www_authenticate("$td", "123abc", "0")) {
        www_challenge("$td", "1");
-};
+       exit;
+}
 ...
 </programlisting>
                </example>
@@ -329,7 +333,8 @@ if (!pv_www_authenticate("$td", "123abc", "0")) {
 $avp(password)="xyz";
 if (!pv_proxy_authenticate("$fd", "$avp(password)", "0")) {
        proxy_challenge("$fd", "1");
-};
+       exit;
+}
 ...
 </programlisting>
                </example>
@@ -372,8 +377,9 @@ if (!pv_proxy_authenticate("$fd", "$avp(password)", "0")) {
 ...
 $avp(password)="xyz";
 if (!pv_auth_check("$fd", "$avp(password)", "0", "1")) {
-       proxy_challenge("$fd", "1");
-};
+       auth_challenge("$fd", "1");
+       exit;
+}
 ...
 </programlisting>
                </example>


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to