Browse code

Simple config for Presence Agent

Jan Janak authored on 14/01/2003 22:52:04
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,52 @@
0
+#
1
+# $Id$
2
+#
3
+# simple quick-start config script
4
+#
5
+
6
+# ----------- global configuration parameters ------------------------
7
+
8
+debug=4          # debug level (cmd line: -dddddddddd)
9
+fork=no
10
+log_stderror=yes	# (cmd line: -E)
11
+
12
+check_via=no	# (cmd. line: -v)
13
+dns=no           # (cmd. line: -r)
14
+rev_dns=no      # (cmd. line: -R)
15
+port=5060
16
+children=4
17
+fifo="/tmp/ser_fifo"
18
+listen=147.32.119.187
19
+
20
+loadmodule "./modules/sl/sl.so"
21
+loadmodule "./modules/tm/tm.so"
22
+loadmodule "./modules/usrloc/usrloc.so"
23
+loadmodule "./modules/registrar/registrar.so"
24
+loadmodule "./modules/pa/pa.so"
25
+
26
+modparam("usrloc", "db_mode", 0)
27
+modparam("usrloc", "use_domain", 1)
28
+modparam("registrar", "use_domain", 1)
29
+
30
+route {
31
+	if (uri==myself) {
32
+		if (method=="SUBSCRIBE") {
33
+			if (t_newtran()) {
34
+				subscribe("registrar");
35
+				break;
36
+			};
37
+		};
38
+
39
+		if (method=="REGISTER") {
40
+			save("location");
41
+			break;
42
+		};
43
+
44
+		lookup("location");
45
+	};
46
+
47
+	if (!t_relay()) {
48
+		sl_reply_error();
49
+	};
50
+}
51
+