Browse Source

Merge pull request #18 from 2600hz/Expose_Children

Expose tcp_children and children settings via local.cfg
KAZOO-5650
lazedo 8 years ago
committed by GitHub
parent
commit
528db43bea
3 changed files with 16 additions and 8 deletions
  1. +2
    -2
      kamailio/default.cfg
  2. +8
    -0
      kamailio/defs.cfg
  3. +6
    -6
      kamailio/local.cfg

+ 2
- 2
kamailio/default.cfg View File

@ -12,7 +12,7 @@ flags
####### Global Parameters ######### ####### Global Parameters #########
fork = yes fork = yes
children = 25
children = CHILDREN
server_signature = no server_signature = no
server_header = "Server: Kazoo" server_header = "Server: Kazoo"
user_agent_header = "User-Agent: Kazoo" user_agent_header = "User-Agent: Kazoo"
@ -41,7 +41,7 @@ auto_aliases = yes
tos = IPTOS_LOWDELAY tos = IPTOS_LOWDELAY
####### TCP Parameters ######### ####### TCP Parameters #########
tcp_children = 25
tcp_children = TCP_CHILDREN
disable_tcp = no disable_tcp = no
tcp_max_connections = 4096 tcp_max_connections = 4096
tcp_connection_lifetime = 3605 tcp_connection_lifetime = 3605


+ 8
- 0
kamailio/defs.cfg View File

@ -23,6 +23,14 @@
#!substdef "!MAX_WHILE_LOOPS!500!g" #!substdef "!MAX_WHILE_LOOPS!500!g"
#!endif #!endif
#!ifndef CHILDREN
#!define CHILDREN 25
#!endif
#!ifndef TCP_CHILDREN
#!define TCP_CHILDREN 25
#!endif
#!ifndef OPENBTS_AUTH_SECRET #!ifndef OPENBTS_AUTH_SECRET
#!substdef "!OPENBTS_AUTH_SECRET!b3a54fa8317c7d9cb1d89d8970947b30eda273124d97fc3a079ccc98ecc2569b!g" #!substdef "!OPENBTS_AUTH_SECRET!b3a54fa8317c7d9cb1d89d8970947b30eda273124d97fc3a079ccc98ecc2569b!g"
#!endif #!endif


+ 6
- 6
kamailio/local.cfg View File

@ -36,12 +36,12 @@
#!substdef "!MY_IP_ADDRESS!127.0.0.1!g" #!substdef "!MY_IP_ADDRESS!127.0.0.1!g"
## CHANGE "kazoo://guest:guest@127.0.0.1:5672" TO THE AMQP URL ## CHANGE "kazoo://guest:guest@127.0.0.1:5672" TO THE AMQP URL
## This should be the primary RabbitMQ server
## This should be the primary RabbitMQ server
## in the zone that this server will service. ## in the zone that this server will service.
#!substdef "!MY_AMQP_URL!kazoo://guest:guest@127.0.0.1:5672!g" #!substdef "!MY_AMQP_URL!kazoo://guest:guest@127.0.0.1:5672!g"
## This parameter is only required if you are using websockets ## This parameter is only required if you are using websockets
## This value must be present in the HTTP
## This value must be present in the HTTP
## Origin header on a new websocket request ## Origin header on a new websocket request
## or it will be rejected. If you remove ## or it will be rejected. If you remove
## it completely the validation will be disabled. ## it completely the validation will be disabled.
@ -58,7 +58,7 @@
## ##
## # setid(integer) destination(sip uri) flags (integer, optional) ## # setid(integer) destination(sip uri) flags (integer, optional)
## 1 sip:192.168.16.131:11000 0 ## 1 sip:192.168.16.131:11000 0
## should converted to
## should converted to
## id(int,auto) setid(int) destination(string) flags(int) priority(int) attrs(string) description(string) ## id(int,auto) setid(int) destination(string) flags(int) priority(int) attrs(string) description(string)
## 1:1:sip\:192.168.16.131\:11000:0:1: : (there is a space at end) ## 1:1:sip\:192.168.16.131\:11000:0:1: : (there is a space at end)
## ##
@ -71,7 +71,7 @@
## This parameter is OPTIONAL ## This parameter is OPTIONAL
## If large UDP packets are dropped by the ## If large UDP packets are dropped by the
## interface try uncommenting this option. ## interface try uncommenting this option.
## However, you MUST match this to your
## However, you MUST match this to your
## network adapter! If they do not match, ## network adapter! If they do not match,
## all UDP packets over this limit WILL FAIL! ## all UDP packets over this limit WILL FAIL!
## E.g.: Add MTU=1472 to the /etc/sysconfig/network-scripts/XXX ## E.g.: Add MTU=1472 to the /etc/sysconfig/network-scripts/XXX
@ -81,7 +81,7 @@
## BINDINGS ## BINDINGS
################################################################################ ################################################################################
## This parameter is OPTIONAL. ## This parameter is OPTIONAL.
## It will try to locate outbound interface
## It will try to locate outbound interface
## on multihomed host. By default forward ## on multihomed host. By default forward
## requests use the incoming socket disregarding ## requests use the incoming socket disregarding
## the destination location. When enabled Kamailio ## the destination location. When enabled Kamailio
@ -107,7 +107,7 @@ mhomed=0
## YOU SHOULD NOT HAVE TO CHANGE THESE! ## YOU SHOULD NOT HAVE TO CHANGE THESE!
## This will bind the default SIP listeners ## This will bind the default SIP listeners
## as determined above. The tls-role and
## as determined above. The tls-role and
## websocket-role will use the appropriate ## websocket-role will use the appropriate
## definitions if enabled. These are here ## definitions if enabled. These are here
## for those with complex layouts who know ## for those with complex layouts who know


Loading…
Cancel
Save