Browse code

examples: moved to misc directory

Daniel-Constantin Mierla authored on 07/12/2016 13:56:54
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,23 +0,0 @@
1
-#
2
-# $Id$
3
-#
4
-# send a notificiation if a request for user jiri arrives
5
-# ------------------ module loading ----------------------------------
6
-
7
-loadmodule "modules/exec/exec.so"
8
-loadmodule "modules/sl/sl.so"
9
-
10
-# -------------------------  request routing logic -------------------
11
-
12
-# main routing logic
13
-
14
-route{
15
-	# send email if a request for jiri arrives
16
-	if (uri=~"^sip:jiri@") {
17
-		exec_msg("(egrep -i '^(From|f):'; 
18
-			echo 'request received')|
19
-			mail -s 'request for you' jiri");
20
-	};
21
-
22
-}
23
-
Browse code

new exec examples introduced

Jiri Kuthan authored on 05/01/2003 20:37:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+#
2
+# $Id$
3
+#
4
+# send a notificiation if a request for user jiri arrives
5
+# ------------------ module loading ----------------------------------
6
+
7
+loadmodule "modules/exec/exec.so"
8
+loadmodule "modules/sl/sl.so"
9
+
10
+# -------------------------  request routing logic -------------------
11
+
12
+# main routing logic
13
+
14
+route{
15
+	# send email if a request for jiri arrives
16
+	if (uri=~"^sip:jiri@") {
17
+		exec_msg("(egrep -i '^(From|f):'; 
18
+			echo 'request received')|
19
+			mail -s 'request for you' jiri");
20
+	};
21
+
22
+}
23
+