浏览代码

dispatcher: small polishing of sample config file

Daniel-Constantin Mierla 7 年之前
父节点
当前提交
af9b6a47cc
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/modules/dispatcher/doc/dispatcher.cfg

+ 5 - 2
src/modules/dispatcher/doc/dispatcher.cfg

@@ -70,11 +70,12 @@ sip_warning=no
 ####### Modules Section ########
 ####### Modules Section ########
 
 
 # set module path
 # set module path
-mpath="/usr/local/lib/kamailio/modules/"
+#mpath="/usr/local/lib/kamailio/modules/"
 
 
 loadmodule "db_mysql.so"
 loadmodule "db_mysql.so"
 loadmodule "jsonrpcs.so"
 loadmodule "jsonrpcs.so"
 loadmodule "kex.so"
 loadmodule "kex.so"
+loadmodule "corex.so"
 loadmodule "tm.so"
 loadmodule "tm.so"
 loadmodule "tmx.so"
 loadmodule "tmx.so"
 loadmodule "sl.so"
 loadmodule "sl.so"
@@ -156,8 +157,9 @@ request_route {
 	# record routing for dialog forming requests (in case they are routed)
 	# record routing for dialog forming requests (in case they are routed)
 	# - remove preloaded route headers
 	# - remove preloaded route headers
 	remove_hf("Route");
 	remove_hf("Route");
-	if (is_method("INVITE|SUBSCRIBE"))
+	if (is_method("INVITE|SUBSCRIBE")) {
 		record_route();
 		record_route();
+	}
 
 
 	# account only INVITEs
 	# account only INVITEs
 	if (is_method("INVITE")) {
 	if (is_method("INVITE")) {
@@ -239,6 +241,7 @@ route[WITHINDLG] {
 route[REGISTRAR] {
 route[REGISTRAR] {
 	if(!is_method("REGISTER"))
 	if(!is_method("REGISTER"))
 		return;
 		return;
+
 	sl_send_reply("404", "No registrar");
 	sl_send_reply("404", "No registrar");
 	exit;
 	exit;
 }
 }