Răsfoiți Sursa

kamailio.cfg: added #!ifdef LOCAL_TEST_RUN condition

- if defined, modules are searched in source tree
(e.g., start kamailio with -A LOCAL_TEST_RUN)
- useful for local testing of config, imported style from ser configs
Daniel-Constantin Mierla 15 ani în urmă
părinte
comite
15623c21d6
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      etc/kamailio.cfg

+ 5 - 1
etc/kamailio.cfg

@@ -164,8 +164,12 @@ pstn.gw_ip = "" desc "PSTN GW Address"
 
 ####### Modules Section ########
 
-#set module path
+# set paths to location of modules
+#!ifdef LOCAL_TEST_RUN
+mpath="modules_k:modules"
+#!else
 mpath="/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/"
+#!endif
 
 #!ifdef WITH_MYSQL
 loadmodule "db_mysql.so"