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