Browse Source

macros for tcp parameters

update-rsyslog-config
lazedo 7 years ago
parent
commit
0f0a944e77
2 changed files with 18 additions and 8 deletions
  1. +8
    -8
      kamailio/default.cfg
  2. +10
    -0
      kamailio/defs.cfg

+ 8
- 8
kamailio/default.cfg View File

@ -49,22 +49,22 @@ tos = IPTOS_LOWDELAY
####### TCP Parameters #########
tcp_children = TCP_CHILDREN
disable_tcp = no
tcp_max_connections = 4096
tcp_connection_lifetime = 3605
tcp_max_connections = TCP_MAX_CONNECTIONS
tcp_connection_lifetime = TCP_CONNECTION_LIFETIME
tcp_accept_aliases = no
tcp_async = yes
tcp_connect_timeout = 10
tcp_connect_timeout = TCP_CONNECTION_TIMEOUT
tcp_conn_wq_max = 65536
tcp_crlf_ping = yes
tcp_delayed_ack = yes
tcp_fd_cache = yes
tcp_keepalive = yes
tcp_keepcnt = 3
tcp_keepidle = 30
tcp_keepintvl = 10
tcp_keepalive = TCP_KEEP_ALIVE
tcp_keepcnt = TCP_KEEP_COUNT
tcp_keepidle = TCP_KEEP_IDLE
tcp_keepintvl = TCP_KEEP_INTERVAL
tcp_linger2 = 30
tcp_rd_buf_size = 80000
tcp_send_timeout = 10
tcp_send_timeout = TCP_SEND_TIMEOUT
tcp_wq_blk_size = 2100
tcp_wq_max = 10485760


+ 10
- 0
kamailio/defs.cfg View File

@ -44,9 +44,19 @@
#!substdef "!MAX_WHILE_LOOPS!500!g"
#!endif
#### tcp parameters ##
#!trydef CHILDREN 25
#!trydef TCP_CHILDREN 25
#!trydef TCP_MAX_CONNECTIONS 4096
#!trydef TCP_CONNECTION_LIFETIME 60
#!trydef TCP_CONNECTION_TIMEOUT 5
#!trydef TCP_KEEP_ALIVE yes
#!trydef TCP_KEEP_COUNT 3
#!trydef TCP_KEEP_IDLE 30
#!trydef TCP_KEEP_INTERVAL 5
#!trydef TCP_SEND_TIMEOUT 3
#!include_file "defs-amqp.cfg"
#!ifndef MEDIA_SERVERS_HASH_SIZE


Loading…
Cancel
Save