Browse code

- removed obsoleted fifo comments - replaced sl_send_reply with sl_reply - lots of beautifications (no functional changes)

Nils Ohlmeier authored on 08/03/2007 11:13:58
Showing 1 changed files
... ...
@@ -25,9 +25,6 @@ rev_dns=no      # (cmd. line: -R)
25 25
 #children=4
26 26
 #user=ser
27 27
 #group=ser
28
-#fifo_user=ser # owner of the ser fifo
29
-#fifo_group=ser
30
-#fifo_mode=0660 # fifo's permissions
31 28
 #disable_core=yes #disables core dumping
32 29
 #open_fd_limit=1024 # sets the open file descriptors limit
33 30
 #mhomed=yes  # usefull for multihomed hosts, small performance penalty
... ...
@@ -75,35 +72,35 @@ route{
75 75
 	# initial sanity checks -- messages with
76 76
 	# max_forwards==0, or excessively long requests
77 77
 	if (!mf_process_maxfwd_header("10")) {
78
-		sl_send_reply("483","Too Many Hops");
78
+		sl_reply("483","Too Many Hops");
79 79
 		break;
80
-	};
80
+	}
81 81
 	if (msg:len >=  max_len ) {
82
-		sl_send_reply("513", "Message too big");
82
+		sl_reply("513", "Message too big");
83 83
 		break;
84
-	};
85
-	
84
+	}
85
+
86 86
 	# we record-route all messages -- to make sure that
87 87
 	# subsequent messages will go through our proxy; that's
88 88
 	# particularly good if upstream and downstream entities
89 89
 	# use different transport protocol
90
-	if (!method=="REGISTER") record_route();	
90
+	if (!method=="REGISTER") record_route();
91 91
 
92 92
 	# subsequent messages withing a dialog should take the
93 93
 	# path determined by record-routing
94 94
 	if (loose_route()) {
95 95
 		# mark routing logic in request
96
-		append_hf("P-hint: rr-enforced\r\n"); 
96
+		append_hf("P-hint: rr-enforced\r\n");
97 97
 		route(FORWARD);
98 98
 		break;
99
-	};
99
+	}
100 100
 
101 101
 	if (!uri==myself) {
102 102
 		# mark routing logic in request
103
-		append_hf("P-hint: outbound\r\n"); 
103
+		append_hf("P-hint: outbound\r\n");
104 104
 		route(FORWARD);
105 105
 		break;
106
-	};
106
+	}
107 107
 
108 108
 	# if the request is for other domain use UsrLoc
109 109
 	# (in case, it does not work, use the following command
... ...
@@ -111,27 +108,26 @@ route{
111 111
 	if (uri==myself) {
112 112
 
113 113
 		if (method=="REGISTER") {
114
-
115 114
 			save_contacts("location");
116 115
 			break;
117
-		};
116
+		}
118 117
 
119 118
 		# native SIP destinations are handled using our USRLOC DB
120 119
 		if (!lookup_contacts("location")) {
121
-			sl_send_reply("404", "Not Found");
120
+			sl_reply("404", "Not Found");
122 121
 			break;
123
-		};
124
-		append_hf("P-hint: usrloc applied\r\n"); 
125
-	};
122
+		}
123
+		append_hf("P-hint: usrloc applied\r\n");
124
+	}
126 125
 	route(FORWARD);
127 126
 }
128 127
 
129
-route[FORWARD] 
128
+route[FORWARD]
130 129
 {
131 130
 	# send it out now; use stateful forwarding as it works reliably
132 131
 	# even for UDP2TCP
133 132
 	if (!t_relay()) {
134 133
 		sl_reply_error();
135
-	};
134
+	}
136 135
 }
137 136