Module: kamailio Branch: master Commit: 85c7a3d80dc44ec3bb0302656b3f11e6ee6713c5 URL: https://github.com/kamailio/kamailio/commit/85c7a3d80dc44ec3bb0302656b3f11e6...
Author: Camille Oudot camille.oudot@orange.com Committer: Camille Oudot camille.oudot@orange.com Date: 2015-02-20T14:27:41+01:00
tcpops: README update
---
Modified: modules/tcpops/README
---
Diff: https://github.com/kamailio/kamailio/commit/85c7a3d80dc44ec3bb0302656b3f11e6... Patch: https://github.com/kamailio/kamailio/commit/85c7a3d80dc44ec3bb0302656b3f11e6...
---
diff --git a/modules/tcpops/README b/modules/tcpops/README index 63d5750..dbe5ba7 100644 --- a/modules/tcpops/README +++ b/modules/tcpops/README @@ -17,11 +17,13 @@ Camille Oudot
3.1. tcp_keepalive_enable([conid], idle, count, interval) 3.2. tcp_keepalive_disable([conid]) + 3.3. set_connection_lifetime([conid], lifetime)
List of Examples
1.1. tcp_keepalive_enable usage 1.2. tcp_keepalive_disable usage + 1.3. set_connection_lifetime usage
Chapter 1. Admin Guide
@@ -33,6 +35,7 @@ Chapter 1. Admin Guide
3.1. tcp_keepalive_enable([conid], idle, count, interval) 3.2. tcp_keepalive_disable([conid]) + 3.3. set_connection_lifetime([conid], lifetime)
1. Overview
@@ -49,6 +52,7 @@ Chapter 1. Admin Guide
3.1. tcp_keepalive_enable([conid], idle, count, interval) 3.2. tcp_keepalive_disable([conid]) + 3.3. set_connection_lifetime([conid], lifetime)
3.1. tcp_keepalive_enable([conid], idle, count, interval)
@@ -113,3 +117,30 @@ onreply_route { } ... } + +3.3. set_connection_lifetime([conid], lifetime) + + Sets the connection lifetime of a connection (TCP). + + Meaning of the parameters is as follows: + * conid (optionnal): the kamailio internal connection id on which to + set the new lifetime. If no parameter is given, it will be set on + the current message source connection. + * lifetime (seconds): the new connection lifetime. + + Retuns 1 on success, -1 on failure. + + Example 1.3. set_connection_lifetime usage +... +# use 10s as default lifetime +tcp_connection_lifetime=10 +... + +request_route { + ... + if (is_method("REGISTER") && pv_www_authenticate("$td", "xxx", "0")) { + # raise the TCP lifetime to a bigger value + set_connection_lifetime("3605"); + } + ... +}