[sr-dev] git:master:f27d7c1f: tcpops: update doc with new event routes

Camille Oudot camille.oudot at orange.com
Mon Oct 10 11:04:25 CEST 2016


Module: kamailio
Branch: master
Commit: f27d7c1f945851ba5d15f09f2809308db581e07a
URL: https://github.com/kamailio/kamailio/commit/f27d7c1f945851ba5d15f09f2809308db581e07a

Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2016-10-10T11:03:24+02:00

tcpops: update doc with new event routes

---

Modified: modules/tcpops/doc/eventroutes.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/f27d7c1f945851ba5d15f09f2809308db581e07a.diff
Patch: https://github.com/kamailio/kamailio/commit/f27d7c1f945851ba5d15f09f2809308db581e07a.patch

---

diff --git a/modules/tcpops/doc/eventroutes.xml b/modules/tcpops/doc/eventroutes.xml
index f219b1d..f1be99f 100644
--- a/modules/tcpops/doc/eventroutes.xml
+++ b/modules/tcpops/doc/eventroutes.xml
@@ -8,28 +8,73 @@
 
 ]>
 <section id="tcpops.ex.event_routes">
-    <title>Event routes</title>
-    <section>
-        <title>
-            <function moreinfo="none">tcp:closed</function>
-        </title>
-        <para>
-			This route is called when a socket is closed by the remote party,
-			or reset, or timeout. The corresponding <emphasis>$conid</emphasis>
-			variable will be available in the event route. 
-        </para>
-        <para>
-			Whether this route is always called, never, or on a per socket basis
-			is controlled by the <emphasis>closed_event</emphasis> parameter.
-        </para>
-        <para>
-    		<programlisting  format="linespecific">
+	<title>Event routes</title>
+		<para>The 3 following routes are called when a socket is closed.</para>
+		<para>
+			The corresponding
+			<emphasis>$conid</emphasis>
+			,
+			<emphasis>$Ri</emphasis>
+			,
+			<emphasis>$Rp</emphasis>
+			,
+			<emphasis>$si</emphasis>
+			,
+			<emphasis>$sp</emphasis>
+			and
+			<emphasis>$proto</emphasis>
+			variable will be available in the event routes.
+		</para>
+		<para>
+			Whether these routes are always called, never, or on a per socket
+			basis is controlled by the
+			<emphasis>closed_event</emphasis>
+			parameter.
+		</para>
+	<section>
+		<title>
+			<function moreinfo="none">tcp:closed</function>
+		</title>
+		<para>
+			Called for each "normal" TCP socket closure by the other side (FIN,ACK).
+		</para>
+	</section>
+	<section>
+		<title>
+			<function moreinfo="none">tcp:timeout</function>
+		</title>
+		<para>
+			Called for connection timeouts (unanswered keepalives).
+		</para>
+	</section>
+	<section>
+		<title>
+			<function moreinfo="none">tcp:reset</function>
+		</title>
+		<para>
+			Called if the connection is reset by peer (RST).
+		</para>
+	</section>
+	<section>
+		<title>
+			<function moreinfo="none">Example</function>
+		</title>
+		<para>
+			<programlisting format="linespecific">
 ...
 event_route[tcp:closed] {
-    xlog("L_INFO", "TCP connection closed ($conid)\n");
+	xlog("L_INFO", "$proto connection closed ($conid)\n");
+}
+
+event_route[tcp:timeout] {
+	xlog("L_INFO", "$proto connection timed out ($conid)\n");
+}
+
+event_route[tcp:reset] {
+	xlog("L_INFO", "$proto connection reset by peer ($conid)\n");
 }
 ...
-  	    	</programlisting>
-    	</para>
+			</programlisting>
+		</para>
 	</section>
 </section>
\ No newline at end of file




More information about the sr-dev mailing list