Skip to content

Commit

Permalink
KAZOO-3336: execute nat test and correct in HANDLE_NOTIFY, also updat…
Browse files Browse the repository at this point in the history
…ed the db_insert parameter for 4.2

(cherry picked from commit 7602355)
  • Loading branch information
k-anderson authored and lazedo committed Feb 18, 2015
1 parent 3c30c8d commit 52ecc7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion kamailio/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion kamailio/registrar-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 52ecc7b

Please sign in to comment.