Skip to content

Commit

Permalink
dispatcher: small polishing of sample config file
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jun 29, 2018
1 parent 3e28036 commit af9b6a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/dispatcher/doc/dispatcher.cfg
Expand Up @@ -70,11 +70,12 @@ sip_warning=no
####### Modules Section ########

# set module path
mpath="/usr/local/lib/kamailio/modules/"
#mpath="/usr/local/lib/kamailio/modules/"

loadmodule "db_mysql.so"
loadmodule "jsonrpcs.so"
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
Expand Down Expand Up @@ -156,8 +157,9 @@ request_route {
# record routing for dialog forming requests (in case they are routed)
# - remove preloaded route headers
remove_hf("Route");
if (is_method("INVITE|SUBSCRIBE"))
if (is_method("INVITE|SUBSCRIBE")) {
record_route();
}

# account only INVITEs
if (is_method("INVITE")) {
Expand Down Expand Up @@ -239,6 +241,7 @@ route[WITHINDLG] {
route[REGISTRAR] {
if(!is_method("REGISTER"))
return;

sl_send_reply("404", "No registrar");
exit;
}
Expand Down

0 comments on commit af9b6a4

Please sign in to comment.