Module: kamailio Branch: master Commit: 4edb9b27aa5cf8e39cb87c78557391445952b21c URL: https://github.com/kamailio/kamailio/commit/4edb9b27aa5cf8e39cb87c7855739144...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2021-03-31T15:51:04+02:00
tls: docs for tls_set_connect_server_id(srvid)
---
Modified: src/modules/tls/doc/functions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4edb9b27aa5cf8e39cb87c7855739144... Patch: https://github.com/kamailio/kamailio/commit/4edb9b27aa5cf8e39cb87c7855739144...
---
diff --git a/src/modules/tls/doc/functions.xml b/src/modules/tls/doc/functions.xml index 2a371de8f1..2a5d4f4f2d 100644 --- a/src/modules/tls/doc/functions.xml +++ b/src/modules/tls/doc/functions.xml @@ -27,11 +27,37 @@ <example> <title><function>is_peer_verified</function> usage</title> <programlisting> +... if (proto==TLS && !is_peer_verified()) { sl_send_reply("400", "No certificate or verification failed"); exit; } - </programlisting> +... +</programlisting> + </example> + </section> + <section id="tls.f.tls_set_connect_server_id"> + <title><function>tls_set_connect_server_id(srvid)</function></title> + <para> + Set the server id of the tls profile to be used by next client + connect, being reset after use. It is an alternative to the use + of xavp to specify server id of a client profile for the cases + when xavps are no longer available (e.g., after + event_route[tm:local-request]). + </para> + <para> + If the parameter is an empty string, then the value is reset. + </para> + <para> + It can be used only in ANY_ROUTE. + </para> + <example> + <title><function>tls_set_connect_server_id</function> usage</title> + <programlisting> +... + tls_set_connect_server_id("clientone"); +... +</programlisting> </example> </section> </section>