Browse code

etc: cleaned up folder, moving unused files to examples

Daniel-Constantin Mierla authored on 14/03/2014 18:59:02
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,112 +0,0 @@
1
-#
2
-# $Id$
3
-#
4
-# simple quick-start config script
5
-#
6
-
7
-# ----------- global configuration parameters ------------------------
8
-
9
-debug=3          # debug level (cmd line: -dddddddddd)
10
-fork=yes
11
-log_stderror=no	# (cmd line: -E)
12
-
13
-/*
14
-debug=7
15
-fork=no
16
-log_stderror=yes
17
-*/
18
-
19
-check_via=no	# (cmd. line: -v)
20
-dns=no           # (cmd. line: -r)
21
-rev_dns=no      # (cmd. line: -R)
22
-port=5060
23
-children=4
24
-fifo="/tmp/sip-router_fifo"
25
-
26
-# ------------------ module loading ----------------------------------
27
-
28
-# Uncomment this if you want to use SQL database
29
-loadmodule "./modules/dbtext/dbtext.so"
30
-
31
-loadmodule "./modules/sl/sl.so"
32
-loadmodule "./modules/tm/tm.so"
33
-loadmodule "./modules/rr/rr.so"
34
-loadmodule "./modules/maxfwd/maxfwd.so"
35
-loadmodule "./modules/usrloc/usrloc.so"
36
-loadmodule "./modules/registrar/registrar.so"
37
-
38
-# Uncomment this if you want digest authentication
39
-# mysql.so must be loaded !
40
-loadmodule "./modules/auth/auth.so"
41
-loadmodule "./modules/auth_db/auth_db.so"
42
-
43
-# ----------------- setting module-specific parameters ---------------
44
-
45
-# -- usrloc params --
46
-
47
-#modparam("usrloc", "db_mode",   0)
48
-
49
-# Uncomment this if you want to use SQL database 
50
-# for persistent storage and comment the previous line
51
-modparam("usrloc", "db_mode", 1)
52
-modparam("usrloc", "db_url", "/home/janakj/sip-router")
53
-modparam("auth_db", "db_url", "/home/janakj/sip-router")
54
-
55
-# -- auth params --
56
-# Uncomment if you are using auth module
57
-#
58
-modparam("auth_db", "calculate_ha1", yes)
59
-#
60
-# If you set "calculate_ha1" parameter to yes (which true in this config), 
61
-# uncomment also the following parameter)
62
-#
63
-modparam("auth_db", "plain_password_column", "password")
64
-
65
-# -------------------------  request routing logic -------------------
66
-
67
-# main routing logic
68
-
69
-route{
70
-
71
-	# initial sanity checks -- messages with
72
-	# max_forwards==0, or excessively long requests
73
-	if (!mf_process_maxfwd_header("10")) {
74
-		sl_send_reply("483","Too Many Hops");
75
-		break;
76
-	};
77
-	if (len_gt( max_len )) {
78
-		sl_send_reply("513", "Message too big");
79
-		break;
80
-	};
81
-
82
-	# Do strict routing if pre-loaded route headers present
83
-	loose_route();
84
-
85
-	# if the request is for other domain use UsrLoc
86
-	# (in case, it does not work, use the following command
87
-	# with proper names and addresses in it)
88
-	if (uri==myself) {
89
-
90
-		if (method=="REGISTER") {
91
-			if (!www_authorize("", "subscriber")) {
92
-				www_challenge("", "0");
93
-				break;
94
-			};
95
-
96
-			save("location");
97
-			break;
98
-		};
99
-
100
-		# native SIP destinations are handled using our USRLOC DB
101
-		if (!lookup("location")) {
102
-			sl_send_reply("404", "Not Found");
103
-			break;
104
-		};
105
-	};
106
-	# forward to current uri now
107
-	if (!t_relay()) {
108
-		sl_reply_error();
109
-	};
110
-
111
-}
112
-
Browse code

* Core, etc, documentation: renamed ser to sip-router

* Renamed ser to sip-router in Makefile, etc files and some core files.
* Renamed some etc files from ser based name to sip-router based name.

Juha Heinanen authored on 24/06/2009 12:44:10
Showing 1 changed files
... ...
@@ -21,7 +21,7 @@ dns=no           # (cmd. line: -r)
21 21
 rev_dns=no      # (cmd. line: -R)
22 22
 port=5060
23 23
 children=4
24
-fifo="/tmp/ser_fifo"
24
+fifo="/tmp/sip-router_fifo"
25 25
 
26 26
 # ------------------ module loading ----------------------------------
27 27
 
... ...
@@ -49,8 +49,8 @@ loadmodule "./modules/auth_db/auth_db.so"
49 49
 # Uncomment this if you want to use SQL database 
50 50
 # for persistent storage and comment the previous line
51 51
 modparam("usrloc", "db_mode", 1)
52
-modparam("usrloc", "db_url", "/home/janakj/ser")
53
-modparam("auth_db", "db_url", "/home/janakj/ser")
52
+modparam("usrloc", "db_url", "/home/janakj/sip-router")
53
+modparam("auth_db", "db_url", "/home/janakj/sip-router")
54 54
 
55 55
 # -- auth params --
56 56
 # Uncomment if you are using auth module
Browse code

examples updated according to anounced auth_db change (see http://lists.iptel.org/pipermail/serdev/2007-May/010034.html)

Vaclav Kubart authored on 11/05/2007 11:27:06
Showing 1 changed files
... ...
@@ -60,7 +60,7 @@ modparam("auth_db", "calculate_ha1", yes)
60 60
 # If you set "calculate_ha1" parameter to yes (which true in this config), 
61 61
 # uncomment also the following parameter)
62 62
 #
63
-modparam("auth_db", "password_column", "password")
63
+modparam("auth_db", "plain_password_column", "password")
64 64
 
65 65
 # -------------------------  request routing logic -------------------
66 66
 
Browse code

forking enabled, removed listen=..

Jan Janak authored on 13/03/2003 00:07:28
Showing 1 changed files
... ...
@@ -6,15 +6,15 @@
6 6
 
7 7
 # ----------- global configuration parameters ------------------------
8 8
 
9
-/*
10 9
 debug=3          # debug level (cmd line: -dddddddddd)
11 10
 fork=yes
12 11
 log_stderror=no	# (cmd line: -E)
13
-*/
14 12
 
13
+/*
15 14
 debug=7
16 15
 fork=no
17 16
 log_stderror=yes
17
+*/
18 18
 
19 19
 check_via=no	# (cmd. line: -v)
20 20
 dns=no           # (cmd. line: -r)
... ...
@@ -22,7 +22,6 @@ rev_dns=no      # (cmd. line: -R)
22 22
 port=5060
23 23
 children=4
24 24
 fifo="/tmp/ser_fifo"
25
-listen=dhcp210.fokus.fraunhofer.de
26 25
 
27 26
 # ------------------ module loading ----------------------------------
28 27
 
Browse code

Sample configuration using dbtext.

Jan Janak authored on 13/03/2003 00:01:01
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,113 @@
1
+#
2
+# $Id$
3
+#
4
+# simple quick-start config script
5
+#
6
+
7
+# ----------- global configuration parameters ------------------------
8
+
9
+/*
10
+debug=3          # debug level (cmd line: -dddddddddd)
11
+fork=yes
12
+log_stderror=no	# (cmd line: -E)
13
+*/
14
+
15
+debug=7
16
+fork=no
17
+log_stderror=yes
18
+
19
+check_via=no	# (cmd. line: -v)
20
+dns=no           # (cmd. line: -r)
21
+rev_dns=no      # (cmd. line: -R)
22
+port=5060
23
+children=4
24
+fifo="/tmp/ser_fifo"
25
+listen=dhcp210.fokus.fraunhofer.de
26
+
27
+# ------------------ module loading ----------------------------------
28
+
29
+# Uncomment this if you want to use SQL database
30
+loadmodule "./modules/dbtext/dbtext.so"
31
+
32
+loadmodule "./modules/sl/sl.so"
33
+loadmodule "./modules/tm/tm.so"
34
+loadmodule "./modules/rr/rr.so"
35
+loadmodule "./modules/maxfwd/maxfwd.so"
36
+loadmodule "./modules/usrloc/usrloc.so"
37
+loadmodule "./modules/registrar/registrar.so"
38
+
39
+# Uncomment this if you want digest authentication
40
+# mysql.so must be loaded !
41
+loadmodule "./modules/auth/auth.so"
42
+loadmodule "./modules/auth_db/auth_db.so"
43
+
44
+# ----------------- setting module-specific parameters ---------------
45
+
46
+# -- usrloc params --
47
+
48
+#modparam("usrloc", "db_mode",   0)
49
+
50
+# Uncomment this if you want to use SQL database 
51
+# for persistent storage and comment the previous line
52
+modparam("usrloc", "db_mode", 1)
53
+modparam("usrloc", "db_url", "/home/janakj/ser")
54
+modparam("auth_db", "db_url", "/home/janakj/ser")
55
+
56
+# -- auth params --
57
+# Uncomment if you are using auth module
58
+#
59
+modparam("auth_db", "calculate_ha1", yes)
60
+#
61
+# If you set "calculate_ha1" parameter to yes (which true in this config), 
62
+# uncomment also the following parameter)
63
+#
64
+modparam("auth_db", "password_column", "password")
65
+
66
+# -------------------------  request routing logic -------------------
67
+
68
+# main routing logic
69
+
70
+route{
71
+
72
+	# initial sanity checks -- messages with
73
+	# max_forwards==0, or excessively long requests
74
+	if (!mf_process_maxfwd_header("10")) {
75
+		sl_send_reply("483","Too Many Hops");
76
+		break;
77
+	};
78
+	if (len_gt( max_len )) {
79
+		sl_send_reply("513", "Message too big");
80
+		break;
81
+	};
82
+
83
+	# Do strict routing if pre-loaded route headers present
84
+	loose_route();
85
+
86
+	# if the request is for other domain use UsrLoc
87
+	# (in case, it does not work, use the following command
88
+	# with proper names and addresses in it)
89
+	if (uri==myself) {
90
+
91
+		if (method=="REGISTER") {
92
+			if (!www_authorize("", "subscriber")) {
93
+				www_challenge("", "0");
94
+				break;
95
+			};
96
+
97
+			save("location");
98
+			break;
99
+		};
100
+
101
+		# native SIP destinations are handled using our USRLOC DB
102
+		if (!lookup("location")) {
103
+			sl_send_reply("404", "Not Found");
104
+			break;
105
+		};
106
+	};
107
+	# forward to current uri now
108
+	if (!t_relay()) {
109
+		sl_reply_error();
110
+	};
111
+
112
+}
113
+