Module: kamailio
Branch: master
Commit: af9b6a47cc6600dc6d6036edda36d2ffc2de04d0
URL:
https://github.com/kamailio/kamailio/commit/af9b6a47cc6600dc6d6036edda36d2f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-29T09:56:41+02:00
dispatcher: small polishing of sample config file
---
Modified: src/modules/dispatcher/doc/dispatcher.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/af9b6a47cc6600dc6d6036edda36d2f…
Patch:
https://github.com/kamailio/kamailio/commit/af9b6a47cc6600dc6d6036edda36d2f…
---
diff --git a/src/modules/dispatcher/doc/dispatcher.cfg
b/src/modules/dispatcher/doc/dispatcher.cfg
index 7c2610ccf0..881cc10d1f 100644
--- a/src/modules/dispatcher/doc/dispatcher.cfg
+++ b/src/modules/dispatcher/doc/dispatcher.cfg
@@ -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"
@@ -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")) {
@@ -239,6 +241,7 @@ route[WITHINDLG] {
route[REGISTRAR] {
if(!is_method("REGISTER"))
return;
+
sl_send_reply("404", "No registrar");
exit;
}