Module: kamailio Branch: master Commit: c986f7428f4cfc6f83b422d155323e14b0ac1765 URL: https://github.com/kamailio/kamailio/commit/c986f7428f4cfc6f83b422d155323e14b0ac1765
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-06T13:32:42+01:00 tcpops: docs - update that tcp_con_alive() supports also SIP URI parameter --- Modified: src/modules/tcpops/doc/functions.xml --- Diff: https://github.com/kamailio/kamailio/commit/c986f7428f4cfc6f83b422d155323e14b0ac1765.diff Patch: https://github.com/kamailio/kamailio/commit/c986f7428f4cfc6f83b422d155323e14b0ac1765.patch --- diff --git a/src/modules/tcpops/doc/functions.xml b/src/modules/tcpops/doc/functions.xml index 4232cf2e01e..08497d2fcd8 100644 --- a/src/modules/tcpops/doc/functions.xml +++ b/src/modules/tcpops/doc/functions.xml @@ -46,16 +46,16 @@ </section> <section id="tcpops.f.tcp_con_alive"> <title> - <function>tcp_con_alive(hostport)</function> + <function>tcp_con_alive(addr)</function> </title> <para> - Check the connection based on target host:port. + Check the connection based on target addrt. </para> <para>Meaning of the parameters is as follows:</para> <itemizedlist> <listitem> - <para><emphasis>hostport</emphasis> - target "host:port" address, - the port can be omitted (default to 5060) and the parameter can + <para><emphasis>addr</emphasis> - target "host:port" or SIP address. + The port can be omitted (default to 5060) and the parameter can contain variables. </para> </listitem> @@ -70,6 +70,10 @@ if(!tcp_con_alive("1.2.3.4:5060")) { xlog("connection not found\n"); } + if(!tcp_con_alive("sip:2.3.4.5:5070")) { + xlog("connection not found\n"); + } + ... ]]></programlisting> </example> _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
