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,30 +0,0 @@
1
-#
2
-# $Id$
3
-#
4
-# this example shows use of ser as stateless redirect server
5
-#
6
-
7
-# ------------------ module loading ----------------------------------
8
-
9
-loadmodule "modules/sl/sl.so"
10
-
11
-
12
-# -------------------------  request routing logic -------------------
13
-
14
-# main routing logic
15
-
16
-route{
17
-	# for testing purposes, simply okay all REGISTERs
18
-	if (method=="REGISTER") {
19
-		log("REGISTER");
20
-		sl_send_reply("200", "ok");
21
-		break;
22
-	};
23
-	# rewrite current URI, which is always part of destination ser
24
-	rewriteuri("sip:parallel@iptel.org:9");
25
-	# append one more URI to the destination ser
26
-	append_branch("sip:redirect@iptel.org:9");
27
-	# redirect now
28
-	sl_send_reply("300", "Redirect");
29
-}
30
-
Browse code

admin documentation refurbished -- quite many changes, don't want me to list all of them

Jiri Kuthan authored on 09/12/2002 02:32:56
Showing 1 changed files
... ...
@@ -4,19 +4,9 @@
4 4
 # this example shows use of ser as stateless redirect server
5 5
 #
6 6
 
7
-# ----------- global configuration parameters ------------------------
8
-
9
-debug=3
10
-fork=no
11
-log_stderror=yes	# (cmd line: -E)
12
-check_via=no # (cmd. line: -v)
13
-dns=no # (cmd. line: -r)
14
-syn_branch=1
15
-reply_to_via=0
16
-
17 7
 # ------------------ module loading ----------------------------------
18 8
 
19
-loadmodule "/usr/lib/ser/modules/sl.so"
9
+loadmodule "modules/sl/sl.so"
20 10
 
21 11
 
22 12
 # -------------------------  request routing logic -------------------
... ...
@@ -30,8 +20,11 @@ route{
30 20
 		sl_send_reply("200", "ok");
31 21
 		break;
32 22
 	};
33
-	append_branch("sip:parallel@iptel.org:9");
23
+	# rewrite current URI, which is always part of destination ser
24
+	rewriteuri("sip:parallel@iptel.org:9");
25
+	# append one more URI to the destination ser
34 26
 	append_branch("sip:redirect@iptel.org:9");
27
+	# redirect now
35 28
 	sl_send_reply("300", "Redirect");
36 29
 }
37 30
 
Browse code

examples simplified and aligned to latest ser version

Jiri Kuthan authored on 04/10/2002 21:37:11
Showing 1 changed files
... ...
@@ -17,7 +17,6 @@ reply_to_via=0
17 17
 # ------------------ module loading ----------------------------------
18 18
 
19 19
 loadmodule "/usr/lib/ser/modules/sl.so"
20
-loadmodule "/usr/lib/ser/modules/print.so"
21 20
 
22 21
 
23 22
 # -------------------------  request routing logic -------------------
Browse code

listen option removed from example config files

Jiri Kuthan authored on 24/09/2002 02:38:45
Showing 1 changed files
... ...
@@ -14,11 +14,6 @@ dns=no # (cmd. line: -r)
14 14
 syn_branch=1
15 15
 reply_to_via=0
16 16
 
17
-# advertise IP address in Via (as opposed to advertising DNS name
18
-# which is annoying for downstream servers and some phones can
19
-# not handle DNS at all)
20
-listen=195.37.77.100
21
-
22 17
 # ------------------ module loading ----------------------------------
23 18
 
24 19
 loadmodule "/usr/lib/ser/modules/sl.so"
Browse code

fixed module paths

Jiri Kuthan authored on 19/09/2002 22:06:17
Showing 1 changed files
... ...
@@ -21,8 +21,8 @@ listen=195.37.77.100
21 21
 
22 22
 # ------------------ module loading ----------------------------------
23 23
 
24
-loadmodule "../sip_router/modules/sl/sl.so"
25
-loadmodule "../sip_router/modules/print/print.so"
24
+loadmodule "/usr/lib/ser/modules/sl.so"
25
+loadmodule "/usr/lib/ser/modules/print.so"
26 26
 
27 27
 
28 28
 # -------------------------  request routing logic -------------------
Browse code

scripts moved to examples

Jiri Kuthan authored on 19/08/2002 18:33:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,43 @@
1
+#
2
+# $Id$
3
+#
4
+# this example shows use of ser as stateless redirect server
5
+#
6
+
7
+# ----------- global configuration parameters ------------------------
8
+
9
+debug=3
10
+fork=no
11
+log_stderror=yes	# (cmd line: -E)
12
+check_via=no # (cmd. line: -v)
13
+dns=no # (cmd. line: -r)
14
+syn_branch=1
15
+reply_to_via=0
16
+
17
+# advertise IP address in Via (as opposed to advertising DNS name
18
+# which is annoying for downstream servers and some phones can
19
+# not handle DNS at all)
20
+listen=195.37.77.100
21
+
22
+# ------------------ module loading ----------------------------------
23
+
24
+loadmodule "../sip_router/modules/sl/sl.so"
25
+loadmodule "../sip_router/modules/print/print.so"
26
+
27
+
28
+# -------------------------  request routing logic -------------------
29
+
30
+# main routing logic
31
+
32
+route{
33
+	# for testing purposes, simply okay all REGISTERs
34
+	if (method=="REGISTER") {
35
+		log("REGISTER");
36
+		sl_send_reply("200", "ok");
37
+		break;
38
+	};
39
+	append_branch("sip:parallel@iptel.org:9");
40
+	append_branch("sip:redirect@iptel.org:9");
41
+	sl_send_reply("300", "Redirect");
42
+}
43
+