Browse code

tls: docs for tls_set_connect_server_id(srvid)

Daniel-Constantin Mierla authored on 31/03/2021 13:51:04
Showing 1 changed files
... ...
@@ -27,11 +27,37 @@
27 27
 		<example>
28 28
 			<title><function>is_peer_verified</function> usage</title>
29 29
 			<programlisting>
30
+...
30 31
 	if (proto==TLS &amp;&amp; !is_peer_verified()) {
31 32
 		sl_send_reply("400", "No certificate or verification failed");
32 33
 		exit;
33 34
 	}
34
-			</programlisting>
35
+...
36
+</programlisting>
37
+		</example>
38
+	</section>
39
+	<section id="tls.f.tls_set_connect_server_id">
40
+		<title><function>tls_set_connect_server_id(srvid)</function></title>
41
+		<para>
42
+			Set the server id of the tls profile to be used by next client
43
+			connect, being reset after use. It is an alternative to the use
44
+			of xavp to specify server id of a client profile for the cases
45
+			when xavps are no longer available (e.g., after
46
+			event_route[tm:local-request]).
47
+		</para>
48
+		<para>
49
+			If the parameter is an empty string, then the value is reset.
50
+		</para>
51
+		<para>
52
+			It can be used only in ANY_ROUTE.
53
+		</para>
54
+		<example>
55
+			<title><function>tls_set_connect_server_id</function> usage</title>
56
+			<programlisting>
57
+...
58
+    tls_set_connect_server_id("clientone");
59
+...
60
+</programlisting>
35 61
 		</example>
36 62
 	</section>
37 63
 </section>