Ver Fonte

moved aliases before condition iptel/outbound

Jiri Kuthan há 23 anos atrás
pai
commit
ea621b5d57
1 ficheiros alterados com 9 adições e 8 exclusões
  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