From 350db59e3655307d851fff11910a164807a0fa60 Mon Sep 17 00:00:00 2001 From: Sean Wysor Date: Thu, 10 Aug 2017 00:45:42 -0700 Subject: [PATCH] Defaults in defs.cfg, can be overridden via local.cfg --- kamailio/default.cfg | 4 ++-- kamailio/defs.cfg | 8 ++++++++ kamailio/local.cfg | 12 ++++++------ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 991cef3..999d939 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -12,7 +12,7 @@ flags ####### Global Parameters ######### fork = yes -children = 25 +children = CHILDREN server_signature = no server_header = "Server: Kazoo" user_agent_header = "User-Agent: Kazoo" @@ -41,7 +41,7 @@ auto_aliases = yes tos = IPTOS_LOWDELAY ####### TCP Parameters ######### -tcp_children = 25 +tcp_children = TCP_CHILDREN disable_tcp = no tcp_max_connections = 4096 tcp_connection_lifetime = 3605 diff --git a/kamailio/defs.cfg b/kamailio/defs.cfg index 1c461d6..5b38bc5 100644 --- a/kamailio/defs.cfg +++ b/kamailio/defs.cfg @@ -23,6 +23,14 @@ #!substdef "!MAX_WHILE_LOOPS!500!g" #!endif +#!ifndef CHILDREN +#!define CHILDREN 25 +#!endif + +#!ifndef TCP_CHILDREN +#!define TCP_CHILDREN 25 +#!endif + #!ifndef OPENBTS_AUTH_SECRET #!substdef "!OPENBTS_AUTH_SECRET!b3a54fa8317c7d9cb1d89d8970947b30eda273124d97fc3a079ccc98ecc2569b!g" #!endif diff --git a/kamailio/local.cfg b/kamailio/local.cfg index 6dc3113..aa8d483 100644 --- a/kamailio/local.cfg +++ b/kamailio/local.cfg @@ -36,12 +36,12 @@ #!substdef "!MY_IP_ADDRESS!127.0.0.1!g" ## 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. #!substdef "!MY_AMQP_URL!kazoo://guest:guest@127.0.0.1:5672!g" ## 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 ## or it will be rejected. If you remove ## it completely the validation will be disabled. @@ -58,7 +58,7 @@ ## ## # setid(integer) destination(sip uri) flags (integer, optional) ## 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) ## 1:1:sip\:192.168.16.131\:11000:0:1: : (there is a space at end) ## @@ -71,7 +71,7 @@ ## This parameter is OPTIONAL ## If large UDP packets are dropped by the ## 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, ## all UDP packets over this limit WILL FAIL! ## E.g.: Add MTU=1472 to the /etc/sysconfig/network-scripts/XXX @@ -81,7 +81,7 @@ ## BINDINGS ################################################################################ ## This parameter is OPTIONAL. -## It will try to locate outbound interface +## It will try to locate outbound interface ## on multihomed host. By default forward ## requests use the incoming socket disregarding ## the destination location. When enabled Kamailio @@ -107,7 +107,7 @@ mhomed=0 ## YOU SHOULD NOT HAVE TO CHANGE THESE! ## 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 ## definitions if enabled. These are here ## for those with complex layouts who know