Browse code

secsipid: docs for cache parameters

Daniel-Constantin Mierla authored on 12/11/2020 13:39:05
Showing 1 changed files
... ...
@@ -92,6 +92,46 @@ modparam("secsipid", "expire", 600)
92 92
 ...
93 93
 modparam("secsipid", "timeout", 2)
94 94
 ...
95
+</programlisting>
96
+		</example>
97
+	</section>
98
+	<section>
99
+		<title><varname>cache_dir</varname> (str)</title>
100
+		<para>
101
+		The path to the directory where to save cached pyblic keys. If set,
102
+		it activates the public key file caching in the libsecsipid library.
103
+		</para>
104
+		<para>
105
+		<emphasis>
106
+			Default value is "".
107
+		</emphasis>
108
+		</para>
109
+		<example>
110
+		<title>Set <varname>cache_dir</varname> parameter</title>
111
+		<programlisting format="linespecific">
112
+...
113
+modparam("secsipid", "cache_dir", "/tmp/kamailio/secsipid")
114
+...
115
+</programlisting>
116
+		</example>
117
+	</section>
118
+	<section>
119
+		<title><varname>cache_expire</varname> (int)</title>
120
+		<para>
121
+		The interval in seconds after which a cached public key is considered
122
+		expired. This value is passed to the libsecsipid library.
123
+		</para>
124
+		<para>
125
+		<emphasis>
126
+			Default value is 3600.
127
+		</emphasis>
128
+		</para>
129
+		<example>
130
+		<title>Set <varname>cache_expire</varname> parameter</title>
131
+		<programlisting format="linespecific">
132
+...
133
+modparam("secsipid", "cache_expire", 7200)
134
+...
95 135
 </programlisting>
96 136
 		</example>
97 137
 	</section>