diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 2f79552..e5a691e 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -317,7 +317,19 @@ route[HANDLE_NOTIFY] route(FILTER_REQUEST_DOMAIN); #!endif - sl_send_reply("200", "Rawr!!"); + #!ifdef WEBSOCKETS-ROLE + route(NAT_WEBSOCKETS_CORRECT); + #!endif + + #!ifdef NAT-TRAVERSAL-ROLE + route(NAT_TEST_AND_CORRECT); + #!endif + + if($hdr(Event) == "keep-alive") { + sl_send_reply("405", "Stay Alive / Method Not Allowed"); + } else { + sl_send_reply("200", "Rawr!!"); + } } exit; } diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index f695862..52eb54c 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -11,7 +11,7 @@ loadmodule "auth.so" ####### User Location Implementation module ########## loadmodule "usrloc.so" -modparam("usrloc", "db_update_as_insert", 1) +modparam("usrloc", "db_update_as_insert", 0) modparam("usrloc", "use_domain", 1) modparam("usrloc", "nat_bflag", FLB_NATB) modparam("usrloc", "db_url", "text:///etc/kazoo/kamailio/dbtext")