Browse Source

added more comments

Jiri Kuthan 23 years ago
parent
commit
af1567598c
2 changed files with 13 additions and 11 deletions
  1. 6 8
      etc/onr.cfg
  2. 7 3
      etc/uas.cfg

+ 6 - 8
etc/onr.cfg

@@ -1,8 +1,12 @@
 #
 # $Id$
 #
-# iptel.org real world configuration
-#
+# example script showing both types of forking;
+# incoming message is foked in parallel to
+# 'nobody' and 'parallel', if no positive reply
+# appears with final_response timer, nonsense
+# is retried (serial forking); than, destination
+# 'foo' is given last chance
 
 # ----------- global configuration parameters ------------------------
 
@@ -24,15 +28,9 @@ listen=195.37.77.100
 loadmodule "../sip_router/modules/sl/sl.so"
 loadmodule "../sip_router/modules/print/print.so"
 #loadmodule "../sip_router/modules/tm/tm.so"
-loadmodule "../sip_router/modules/usrloc/usrloc.so"
 
 # ----------------- setting module-specific parameters ---------------
 
-# -- usrloc params --
-
-modparam("usrloc", "use_database",   0)
-modparam("usrloc", "flush_interval", 3600)
-
 # -- tm params --
 modparam("tm", "fr_timer", 10 )
 modparam("tm", "fr_inv_timer", 5 )

+ 7 - 3
etc/uas.cfg

@@ -1,8 +1,12 @@
 #
 # $Id$
 #
-# iptel.org real world configuration
-#
+# this example shows usage of ser as user agent
+# server which does some functionality (in this
+# example, 'log' is used to print a notification
+# on a new transaction) and behaves statefuly
+# (e.g., it retransmits replies on request
+# retransmissions)
 
 # ----------- global configuration parameters ------------------------
 
@@ -58,7 +62,7 @@ route{
 		log("New Transaction Arrived\n");
         # do what you want to do as a sever
 		if (uri=~"a@") {
-			if (!t_reply("309", "Bizzar Redirection")) {
+			if (!t_reply("409", "Bizzar Error")) {
 				sl_reply_error();
 			};
 		} else if (uri=~"b@") {