Module: kamailio
Branch: master
Commit: 891ba8972c70260d8213a1b9d665f7de5be50554
URL:
https://github.com/kamailio/kamailio/commit/891ba8972c70260d8213a1b9d665f7d…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)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/891ba8972c70260d8213a1b9d665f7d…
Patch:
https://github.com/kamailio/kamailio/commit/891ba8972c70260d8213a1b9d665f7d…
---
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();