From ed4ae26a01ccb3b04de5fa071511ead9564023cf Mon Sep 17 00:00:00 2001 From: karl anderson Date: Mon, 19 Aug 2013 15:52:51 -0400 Subject: [PATCH] fix kamailio role dependencies, add more async IO workers, and constrain erlang ports --- bigcouch/vm.args | 4 +++- kamailio/default.cfg | 3 ++- kamailio/nat-traversal-role.cfg | 4 ---- kamailio/registrar-role.cfg | 4 ++++ vm.args | 4 +++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/bigcouch/vm.args b/bigcouch/vm.args index 066ca4a..df3b062 100644 --- a/bigcouch/vm.args +++ b/bigcouch/vm.args @@ -16,12 +16,14 @@ +K true # Start a pool of asynchronous IO threads -+A 16 ++A 25 # Set the max port value to be the same as limits.d/bigcouch.limits # +Q 65536 -env ERL_MAX_PORTS 65536 +-kernel inet_dist_listen_min 11500 inet_dist_listen_max 11999 + # Comment this line out to enable the interactive Erlang shell on startup +Bd -noinput -detached diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 87136b5..f4f214c 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -130,6 +130,7 @@ modparam("rr", "enable_double_rr", 0) ######## Max-Forward processor module ######## loadmodule "maxfwd.so" +modparam("maxfwd", "max_limit", 50) ######## SIP utilities [requires sl] ######## loadmodule "siputils.so" @@ -427,7 +428,7 @@ failure_route[INTERNAL_FAULT] remove_hf("X-Redirect-Server"); } - } else if (t_check_status("(401)|(407)")) { + } else if (t_check_status("(401)|(407)|(486)")) { xlog("L_INFO", "$ci|log|failure route ignoring auth reply $T_reply_code $rr"); exit; diff --git a/kamailio/nat-traversal-role.cfg b/kamailio/nat-traversal-role.cfg index b8a03b6..e65fcfe 100644 --- a/kamailio/nat-traversal-role.cfg +++ b/kamailio/nat-traversal-role.cfg @@ -3,10 +3,6 @@ loadmodule "nathelper.so" #!endif modparam("nathelper", "received_avp", "$avp(AVP_RECV_PARAM)") -modparam("nathelper", "natping_interval", 30) -modparam("nathelper", "ping_nated_only", 1) -modparam("nathelper", "natping_processes", 5) -modparam("nathelper", "sipping_bflag", FLB_NATSIPPING) ####### NAT Traversal Logic ######## route[NAT_TEST_AND_CORRECT] diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index 9d853a0..ef267ba 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -23,6 +23,10 @@ modparam("usrloc", "nat_bflag", FLB_NATB) #!ifdef NAT-TRAVERSAL-ROLE #!trydef NATHELPER-LOADED loadmodule "nathelper.so" +modparam("nathelper", "natping_interval", 30) +modparam("nathelper", "ping_nated_only", 1) +modparam("nathelper", "natping_processes", 5) +modparam("nathelper", "sipping_bflag", FLB_NATSIPPING) #!endif ####### SIP Registrar implementation module ########## diff --git a/vm.args b/vm.args index 22e79d7..5cbe898 100644 --- a/vm.args +++ b/vm.args @@ -9,7 +9,9 @@ +K true # Start a pool of asynchronous IO threads -+A 2 ++A 25 + +-kernel inet_dist_listen_min 11500 inet_dist_listen_max 11999 # Comment this line out if you want the Erlang shell +Bd