[sr-dev] git:master:891ba897: tcpops: fix documentation

Camille Oudot camille.oudot at orange.com
Mon Mar 2 16:25:37 CET 2015


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

Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2015-03-02T16:23:58+01:00

tcpops: fix documentation

---

Modified: modules/tcpops/README
Modified: modules/tcpops/doc/functions.xml

---

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

---

diff --git a/modules/tcpops/README b/modules/tcpops/README
index 4d12a63..d05b800 100644
--- a/modules/tcpops/README
+++ b/modules/tcpops/README
@@ -74,11 +74,12 @@ Chapter 1. Admin Guide
 request_route {
         if (is_method("INVITE")) {
                 $avp(caller_conid) = $conid;
+                t_on_reply("foo");
         }
         ...
 }
 
-onreply_route {
+onreply_route[foo] {
         if (is_method("INVITE") && status == 200) {
                 # enable on callee's connection
                 tcp_keepalive_enable("60", "5", "5");
@@ -105,11 +106,12 @@ request_route {
         ...
         if (is_method("BYE")) {
                 $avp(bye_conid) = $conid;
+                t_on_reply("foo");
         }
         ...
 }
 
-onreply_route {
+onreply_route[foo] {
         ...
         if (is_method("BYE") && status == 200) {
                 tcp_keepalive_disable();
diff --git a/modules/tcpops/doc/functions.xml b/modules/tcpops/doc/functions.xml
index 1a668a9..16f1b86 100644
--- a/modules/tcpops/doc/functions.xml
+++ b/modules/tcpops/doc/functions.xml
@@ -47,11 +47,12 @@
 request_route {
 	if (is_method("INVITE")) {
 		$avp(caller_conid) = $conid;
+		t_on_reply("foo");
 	}
 	...
 }
 
-onreply_route {
+onreply_route[foo] {
 	if (is_method("INVITE") && status == 200) {
 		# enable on callee's connection
 		tcp_keepalive_enable("60", "5", "5");
@@ -89,11 +90,12 @@ request_route {
 	...
 	if (is_method("BYE")) {
 		$avp(bye_conid) = $conid;
+		t_on_reply("foo");
 	}
 	...
 }
 
-onreply_route {
+onreply_route[foo] {
 	...
 	if (is_method("BYE") && status == 200) {
 		tcp_keepalive_disable();




More information about the sr-dev mailing list