Browse Source

junked old data

Jiri Kuthan 23 years ago
parent
commit
d84cf1e8bd
1 changed files with 10 additions and 4 deletions
  1. 10 4
      etc/iptel.cfg

+ 10 - 4
etc/iptel.cfg

@@ -246,6 +246,12 @@ route{
 	# its address may show up in subsequent requests
 	# after rewriteFromRoute
 
+	# testing for jiri -- fox excepts bat and forward to it
+	if (uri=~"@bat\.iptel\.org") {
+		forward("bat.iptel.org", 5060);
+		break;
+	};
+
 	# sign of our domain: there is @ (username), :
     # (nothing) or . (host) in front of our domain name	
 #XX
@@ -269,9 +275,6 @@ route{
 	if (uri=~"sip:9042@") {
 		seturi("sip:[email protected]");
 	};
-#	if (uri=~"sip:17@") {
-#		seturi("sip:[email protected]");
-#	};
 	if (uri=~"sip:17@") {
 		seturi("sip:[email protected]");
 	};
@@ -330,7 +333,10 @@ route{
 
 		# update Contact database
        	log("LOG: REGISTER is authorized, saving location\n");
-		save_contact("location");
+		if (!save_contact("location")) {
+			log("LOG: save_contact failed\n");
+			sl_reply_error();
+		};
 		break;
 	};