Browse code

fixed To user lookup for REGISTER; thansk to Michal

Nils Ohlmeier authored on 06/11/2006 23:49:17
Showing 1 changed files
... ...
@@ -10,7 +10,7 @@
10 10
 # what can be achieved with the SER config script language.
11 11
 #
12 12
 # If you look for a simpler version with a lot less dependencies
13
-# please refer to the ser-simple.cfg file in your SER distribution.
13
+# please refer to the ser-basic.cfg file in your SER distribution.
14 14
 
15 15
 # To get this config running you need to execute the following commands
16 16
 # with the new serctl (the capital word are just place holders)
... ...
@@ -322,7 +322,7 @@ route[REGISTRAR]
322 322
 		};
323 323
 
324 324
 		# check if the authenticated user is the same as the target user
325
-		if (!lookup_user("$tu", "@from.uri")) {
325
+		if (!lookup_user("$tu", "@to.uri")) {
326 326
 			sl_send_reply("404", "Unknown user");
327 327
 			drop;
328 328
 		}