2
0
Эх сурвалжийг харах

moved aliases before condition iptel/outbound

Jiri Kuthan 23 жил өмнө
parent
commit
ea621b5d57
1 өөрчлөгдсөн 9 нэмэгдсэн , 8 устгасан
  1. 9 8
      etc/iptel.cfg

+ 9 - 8
etc/iptel.cfg

@@ -68,6 +68,15 @@ route{
 		break;
 	};
 
+	# various aliases (might use a database in future)
+	if (uri=~"sip:9040@.*") {
+		setuser("jiri");
+	};
+	# special measure for our US friends
+	if (uri=~"sip:17@") {
+		seturi("sip:[email protected]");
+	};
+
 	# process requests for iptel.org (note the wildcard in
 	# the regex end -- that captures URIs which have port
 	# numbers or parameters in them); also include gateway
@@ -102,14 +111,6 @@ route{
 			break;
 		};
 
-		# various aliases (might use a database in future)
-		if (uri=~"sip:9040@.*") {
-			setuser("jiri");
-		};
-		# special measure for our US friends
-		if (uri=~"sip:17@") {
-			seturi("sip:[email protected]");
-		};
 
 		# now it's about PSTN destinations through our gateway;
 		# note that 8.... is exempted for numerical destinations