Browse code

added more comments

Jiri Kuthan authored on 15/08/2002 10:49:59
Showing 2 changed files
... ...
@@ -1,8 +1,12 @@
1 1
 #
2 2
 # $Id$
3 3
 #
4
-# iptel.org real world configuration
5
-#
4
+# example script showing both types of forking;
5
+# incoming message is foked in parallel to
6
+# 'nobody' and 'parallel', if no positive reply
7
+# appears with final_response timer, nonsense
8
+# is retried (serial forking); than, destination
9
+# 'foo' is given last chance
6 10
 
7 11
 # ----------- global configuration parameters ------------------------
8 12
 
... ...
@@ -24,15 +28,9 @@ listen=195.37.77.100
24 28
 loadmodule "../sip_router/modules/sl/sl.so"
25 29
 loadmodule "../sip_router/modules/print/print.so"
26 30
 #loadmodule "../sip_router/modules/tm/tm.so"
27
-loadmodule "../sip_router/modules/usrloc/usrloc.so"
28 31
 
29 32
 # ----------------- setting module-specific parameters ---------------
30 33
 
31
-# -- usrloc params --
32
-
33
-modparam("usrloc", "use_database",   0)
34
-modparam("usrloc", "flush_interval", 3600)
35
-
36 34
 # -- tm params --
37 35
 modparam("tm", "fr_timer", 10 )
38 36
 modparam("tm", "fr_inv_timer", 5 )
... ...
@@ -1,8 +1,12 @@
1 1
 #
2 2
 # $Id$
3 3
 #
4
-# iptel.org real world configuration
5
-#
4
+# this example shows usage of ser as user agent
5
+# server which does some functionality (in this
6
+# example, 'log' is used to print a notification
7
+# on a new transaction) and behaves statefuly
8
+# (e.g., it retransmits replies on request
9
+# retransmissions)
6 10
 
7 11
 # ----------- global configuration parameters ------------------------
8 12
 
... ...
@@ -58,7 +62,7 @@ route{
58 62
 		log("New Transaction Arrived\n");
59 63
         # do what you want to do as a sever
60 64
 		if (uri=~"a@") {
61
-			if (!t_reply("309", "Bizzar Redirection")) {
65
+			if (!t_reply("409", "Bizzar Error")) {
62 66
 				sl_reply_error();
63 67
 			};
64 68
 		} else if (uri=~"b@") {