Browse code

cosmetical changes

Vaclav Kubart authored on 04/04/2006 16:05:15
Showing 3 changed files
... ...
@@ -57,29 +57,29 @@ alias="test-domain.com"
57 57
 
58 58
 mhomed=yes  # usefull for multihomed hosts, small performance penalty
59 59
 
60
-tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
61
-tcp_poll_method="sigio_rt"
60
+#tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
61
+#tcp_poll_method="sigio_rt"
62 62
 
63 63
 # ------------------ module loading ----------------------------------
64 64
 
65 65
 # Uncomment this if you want to use SQL database
66
-loadmodule "/home/kubartv/SER/lib/ser/modules/sl.so"
67
-loadmodule "/home/kubartv/SER/lib/ser/modules/avp.so"
68
-loadmodule "/home/kubartv/SER/lib/ser/modules/avpops.so"
69
-loadmodule "/home/kubartv/SER/lib/ser/modules/tm.so"
70
-loadmodule "/home/kubartv/SER/lib/ser/modules/rr.so"
71
-loadmodule "/home/kubartv/SER/lib/ser/modules/maxfwd.so"
72
-loadmodule "/home/kubartv/SER/lib/ser/modules/usrloc.so"
73
-loadmodule "/home/kubartv/SER/lib/ser/modules/registrar.so"
74
-loadmodule "/home/kubartv/SER/lib/ser/modules/textops.so"
75
-loadmodule "/home/kubartv/SER/lib/ser/modules/dialog.so"
76
-loadmodule "/home/kubartv/SER/lib/ser/modules/rls.so"
77
-loadmodule "/home/kubartv/SER/lib/ser/modules/pa.so"
78
-loadmodule "/home/kubartv/SER/lib/ser/modules/presence_b2b.so"
79
-loadmodule "/home/kubartv/SER/lib/ser/modules/uri.so"
80
-loadmodule "/home/kubartv/SER/lib/ser/modules/fifo.so"
81
-loadmodule "/home/kubartv/SER/lib/ser/modules/xmlrpc.so"
82
-loadmodule "/home/kubartv/SER/lib/ser/modules/xlog.so"
66
+loadmodule "/usr/lib/ser/modules/sl.so"
67
+loadmodule "/usr/lib/ser/modules/avp.so"
68
+loadmodule "/usr/lib/ser/modules/avpops.so"
69
+loadmodule "/usr/lib/ser/modules/tm.so"
70
+loadmodule "/usr/lib/ser/modules/rr.so"
71
+loadmodule "/usr/lib/ser/modules/maxfwd.so"
72
+loadmodule "/usr/lib/ser/modules/usrloc.so"
73
+loadmodule "/usr/lib/ser/modules/registrar.so"
74
+loadmodule "/usr/lib/ser/modules/textops.so"
75
+loadmodule "/usr/lib/ser/modules/dialog.so"
76
+loadmodule "/usr/lib/ser/modules/rls.so"
77
+loadmodule "/usr/lib/ser/modules/pa.so"
78
+loadmodule "/usr/lib/ser/modules/presence_b2b.so"
79
+loadmodule "/usr/lib/ser/modules/uri.so"
80
+loadmodule "/usr/lib/ser/modules/fifo.so"
81
+loadmodule "/usr/lib/ser/modules/xmlrpc.so"
82
+loadmodule "/usr/lib/ser/modules/xlog.so"
83 83
 
84 84
 # ----------------- setting module-specific parameters ---------------
85 85
 
... ...
@@ -298,8 +298,8 @@ port=5060
298 298
 children=2
299 299
 alias="test-domain.com"
300 300
 mhomed=yes  # usefull for multihomed hosts, small performance penalty
301
-tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
302
-tcp_poll_method="sigio_rt"
301
+#tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
302
+#tcp_poll_method="sigio_rt"
303 303
 
304 304
 # ------------------ module loading ----------------------------------
305 305
 
... ...
@@ -697,12 +697,14 @@ failure_route[1] {
697 697
 
698 698
 <section><title>Forwarding to presence server</title>
699 699
 <para>It is good idea to have separated presence stuff from the proxy. You can
700
-use following piece of code for that.
700
+use following piece of code for that. Instead of
701
+<function>t_forward_nonack</function> you can use
702
+<function>t_forward_nonack_tcp</function>.
701 703
 </para>
702 704
 <example><title>forwarding to presence server</title>
703 705
 <programlisting><![CDATA[
704
-# forward presence messages to presence server
705 706
 ...
707
+# forward presence messages to presence server
706 708
 if ((method=="SUBSCRIBE") || (method=="PUBLISH") || (method=="MESSAGE")) {
707 709
 	log(1, "Forwarding request\n");
708 710
 	
... ...
@@ -718,7 +720,7 @@ if ((method=="SUBSCRIBE") || (method=="PUBLISH") || (method=="MESSAGE")) {
718 720
 		break;
719 721
 	};
720 722
 	
721
-	if (!t_forward_nonack("presence-server@test-domain.com", "5060")) {
723
+	if (!t_forward_nonack("presence-server.test-domain.com", "5060")) {
722 724
 		log(1, "Forward to presence server failed\n");
723 725
 		sl_reply_error();
724 726
 	}
... ...
@@ -17,8 +17,8 @@ alias="test-domain.com"
17 17
 mhomed=yes  # usefull for multihomed hosts, small performance penalty
18 18
 
19 19
 #disable_tcp=yes 
20
-tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
21
-tcp_poll_method="sigio_rt"
20
+#tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
21
+#tcp_poll_method="sigio_rt"
22 22
 
23 23
 # ------------------ module loading ----------------------------------
24 24
 
... ...
@@ -9,29 +9,29 @@ alias="test-domain.com"
9 9
 
10 10
 mhomed=yes  # usefull for multihomed hosts, small performance penalty
11 11
 
12
-tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
13
-tcp_poll_method="sigio_rt"
12
+#tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
13
+#tcp_poll_method="sigio_rt"
14 14
 
15 15
 # ------------------ module loading ----------------------------------
16 16
 
17 17
 # Uncomment this if you want to use SQL database
18
-loadmodule "/home/kubartv/SER/lib/ser/modules/sl.so"
19
-loadmodule "/home/kubartv/SER/lib/ser/modules/avp.so"
20
-loadmodule "/home/kubartv/SER/lib/ser/modules/avpops.so"
21
-loadmodule "/home/kubartv/SER/lib/ser/modules/tm.so"
22
-loadmodule "/home/kubartv/SER/lib/ser/modules/rr.so"
23
-loadmodule "/home/kubartv/SER/lib/ser/modules/maxfwd.so"
24
-loadmodule "/home/kubartv/SER/lib/ser/modules/usrloc.so"
25
-loadmodule "/home/kubartv/SER/lib/ser/modules/registrar.so"
26
-loadmodule "/home/kubartv/SER/lib/ser/modules/textops.so"
27
-loadmodule "/home/kubartv/SER/lib/ser/modules/dialog.so"
28
-loadmodule "/home/kubartv/SER/lib/ser/modules/rls.so"
29
-loadmodule "/home/kubartv/SER/lib/ser/modules/pa.so"
30
-loadmodule "/home/kubartv/SER/lib/ser/modules/presence_b2b.so"
31
-loadmodule "/home/kubartv/SER/lib/ser/modules/uri.so"
32
-loadmodule "/home/kubartv/SER/lib/ser/modules/fifo.so"
33
-loadmodule "/home/kubartv/SER/lib/ser/modules/xmlrpc.so"
34
-loadmodule "/home/kubartv/SER/lib/ser/modules/xlog.so"
18
+loadmodule "/usr/lib/ser/modules/sl.so"
19
+loadmodule "/usr/lib/ser/modules/avp.so"
20
+loadmodule "/usr/lib/ser/modules/avpops.so"
21
+loadmodule "/usr/lib/ser/modules/tm.so"
22
+loadmodule "/usr/lib/ser/modules/rr.so"
23
+loadmodule "/usr/lib/ser/modules/maxfwd.so"
24
+loadmodule "/usr/lib/ser/modules/usrloc.so"
25
+loadmodule "/usr/lib/ser/modules/registrar.so"
26
+loadmodule "/usr/lib/ser/modules/textops.so"
27
+loadmodule "/usr/lib/ser/modules/dialog.so"
28
+loadmodule "/usr/lib/ser/modules/rls.so"
29
+loadmodule "/usr/lib/ser/modules/pa.so"
30
+loadmodule "/usr/lib/ser/modules/presence_b2b.so"
31
+loadmodule "/usr/lib/ser/modules/uri.so"
32
+loadmodule "/usr/lib/ser/modules/fifo.so"
33
+loadmodule "/usr/lib/ser/modules/xmlrpc.so"
34
+loadmodule "/usr/lib/ser/modules/xlog.so"
35 35
 
36 36
 # ----------------- setting module-specific parameters ---------------
37 37