Browse Source

allowed numerical users starting with 8

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

+ 6 - 4
etc/iptel.cfg

@@ -71,10 +71,11 @@ route{
 	rewriteFromRoute();
 
 	# divert voicemail requests
-    if (uri=~"mail\.iptel\.org" | uri=~":6060") {
+    if (uri=~"mail\.iptel\.org" | uri=~":5066") {
 		log("Request is for voicemail\n");
 		#forward("fox.iptel.org", 6060);
-		t_relay_to("fox.iptel.org", "6060");
+		sethost("iptel.org");
+		t_relay_to("fox.iptel.org", "5066");
 	} else {
 		# process requests for iptel.org (note the wildcard in
 		# the regex end -- that captures URIs which have port
@@ -121,8 +122,9 @@ route{
 #				t_fork_to("195.37.77.110", "5060");
 #			};
 
-			# now it's about PSTN destinations through our gateway
-			if (uri=~"sip:[0-9]+@.*") {
+			# now it's about PSTN destinations through our gateway;
+			# note that 8.... is exempted for numerical destinations
+			if (uri=~"sip:[0-79][0-9]*@.*") {
 				# free call destinations ... no authentication needed
 				if (uri=~"sip:001795061546@.*" | uri=~"sip:0016097265544.*" | uri=~"sip:[79][0-9][0-9][0-9]@.*") {
 					log("Free PSTN\n");