Module: kamailio
Branch: master
Commit: 5df2933a3ee8595b954cb694d8434ea7997be88c
URL:
https://github.com/kamailio/kamailio/commit/5df2933a3ee8595b954cb694d8434ea…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-07T22:03:51+01:00
examples: kemi - show how app_jsdt can be used as kemi config engine
---
Modified: misc/examples/kemi/kamailio-basic-kemi.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/5df2933a3ee8595b954cb694d8434ea…
Patch:
https://github.com/kamailio/kamailio/commit/5df2933a3ee8595b954cb694d8434ea…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi.cfg
b/misc/examples/kemi/kamailio-basic-kemi.cfg
index ae56d03..a9cdc78 100644
--- a/misc/examples/kemi/kamailio-basic-kemi.cfg
+++ b/misc/examples/kemi/kamailio-basic-kemi.cfg
@@ -219,6 +219,10 @@ loadmodule "app_lua.so"
loadmodule "app_python.so"
#!endif
+#!ifdef WITH_CFGJSDT
+loadmodule "app_jsdt.so"
+#!endif
+
# ----------------- setting module-specific parameters ---------------
# ----- jsonrpcs params -----
@@ -359,9 +363,16 @@ cfgengine "python"
modparam("app_lua", "load",
"/usr/local/etc/kamailio/kamailio-basic-kemi-lua.lua")
cfgengine "lua"
#!else
+
+#!ifdef WITH_CFGJSDT
+modparam("app_jsdt", "load",
"/usr/local/etc/kamailio/kamailio-basic-kemi-jsdt.js")
+cfgengine "lua"
+#!else
cfgengine "native"
include_file "/usr/local/etc/kamailio/kamailio-basic-kemi-native.cfg"
#!endif
#!endif
+#!endif
+