[sr-dev] git:master:25173335: misc/examples: exec.cfg updated for latest releases
Daniel-Constantin Mierla
miconda at gmail.com
Mon Feb 4 16:31:04 CET 2019
Module: kamailio
Branch: master
Commit: 25173335dda3142e01243f209d24ba571d61578d
URL: https://github.com/kamailio/kamailio/commit/25173335dda3142e01243f209d24ba571d61578d
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-02-03T07:35:08+01:00
misc/examples: exec.cfg updated for latest releases
---
Modified: misc/examples/exec/exec.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/25173335dda3142e01243f209d24ba571d61578d.diff
Patch: https://github.com/kamailio/kamailio/commit/25173335dda3142e01243f209d24ba571d61578d.patch
---
diff --git a/misc/examples/exec/exec.cfg b/misc/examples/exec/exec.cfg
index b0cfe43eaa..30a3a6ed8b 100644
--- a/misc/examples/exec/exec.cfg
+++ b/misc/examples/exec/exec.cfg
@@ -1,5 +1,4 @@
-#
-# $Id$
+#!KAMAILIO
#
# this example shows use of ser as stateless redirect server
# which rewrites URIs using an exernal utility
@@ -7,17 +6,18 @@
# ------------------ module loading ----------------------------------
-loadmodule "modules/exec/exec.so"
-loadmodule "modules/sl/sl.so"
+loadmodule "exec.so"
+loadmodule "sl.so"
+loadmodule "xlog.so"
# ------------------------- request routing logic -------------------
# main routing logic
-route{
+request_route {
# for testing purposes, simply okay all REGISTERs
if (method=="REGISTER") {
- log("REGISTER");
+ xlog("REGISTER");
sl_send_reply("200", "ok");
break;
};
@@ -30,7 +30,7 @@ route{
sl_send_reply("300", "Redirect");
} else {
sl_reply_error();
- log(1, "alas, rewriting failed\n");
+ xlog("rewriting failed\n");
};
}
More information about the sr-dev
mailing list