Browse code

modules: readme files regenerated - ruxc ... [skip ci]

Kamailio Dev authored on 22/07/2021 08:01:23
Showing 1 changed files
... ...
@@ -27,6 +27,7 @@ Daniel-Constantin Mierla
27 27
         3. Parameters
28 28
 
29 29
               3.1. http_timeout (int)
30
+              3.2. http_tlsmode (int)
30 31
 
31 32
         4. Functions
32 33
 
... ...
@@ -38,9 +39,10 @@ Daniel-Constantin Mierla
38 39
    List of Examples
39 40
 
40 41
    1.1. Set http_timeout parameter
41
-   1.2. ruxc_http_get() usage
42
-   1.3. ruxc_http_post() usage
43
-   1.4. Libruxc Usage
42
+   1.2. Set http_tlsmode parameter
43
+   1.3. ruxc_http_get() usage
44
+   1.4. ruxc_http_post() usage
45
+   1.5. Libruxc Usage
44 46
 
45 47
 Chapter 1. Admin Guide
46 48
 
... ...
@@ -55,6 +57,7 @@ Chapter 1. Admin Guide
55 57
    3. Parameters
56 58
 
57 59
         3.1. http_timeout (int)
60
+        3.2. http_tlsmode (int)
58 61
 
59 62
    4. Functions
60 63
 
... ...
@@ -91,6 +94,7 @@ Chapter 1. Admin Guide
91 94
 3. Parameters
92 95
 
93 96
    3.1. http_timeout (int)
97
+   3.2. http_tlsmode (int)
94 98
 
95 99
 3.1. http_timeout (int)
96 100
 
... ...
@@ -104,6 +108,18 @@ Chapter 1. Admin Guide
104 108
 modparam("ruxc", "http_timeout", 2000)
105 109
 ...
106 110
 
111
+3.2. http_tlsmode (int)
112
+
113
+   The mode to connect over TLS to HTTPS sites: 0 accept all certificates;
114
+   1 - accept trusted certificates.
115
+
116
+   Default value is 0 (accept all certificates).
117
+
118
+   Example 1.2. Set http_tlsmode parameter
119
+...
120
+modparam("ruxc", "http_tlsmode", 1)
121
+...
122
+
107 123
 4. Functions
108 124
 
109 125
    4.1. ruxc_http_get(url, hdrs, respv)
... ...
@@ -121,7 +137,7 @@ modparam("ruxc", "http_timeout", 2000)
121 137
 
122 138
    This function can be used from ANY_ROUTE.
123 139
 
124
-   Example 1.2. ruxc_http_get() usage
140
+   Example 1.3. ruxc_http_get() usage
125 141
 ...
126 142
 ruxc_http_get("http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s
127 143
 .escape.param})",
... ...
@@ -144,7 +160,7 @@ switch ($rc) {
144 160
 
145 161
    This function can be used from ANY_ROUTE.
146 162
 
147
-   Example 1.3. ruxc_http_post() usage
163
+   Example 1.4. ruxc_http_post() usage
148 164
 ...
149 165
 ruxc_http_post("http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{
150 166
 s.escape.param})",
... ...
@@ -167,7 +183,7 @@ switch ($rc) {
167 183
    installed and its environment configured, then run the following
168 184
    commands:
169 185
 
170
-   Example 1.4. Libruxc Usage
186
+   Example 1.5. Libruxc Usage
171 187
 ...
172 188
 git clone https://github.com/miconda/ruxc
173 189
 cd ruxc