Bladeren bron

add RR only for INVITEs

Jiri Kuthan 23 jaren geleden
bovenliggende
commit
8602ef3ad4
1 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 5 2
      iptel.cfg

+ 5 - 2
iptel.cfg

@@ -85,7 +85,9 @@ route{
 				} else {
 					# all other PSTN destinations only for authenticated users
 					# (Cisco GW, which has no digest support, is authenticated
-					# by its IP address -- that's for sure not very strong)
+					# by its IP address -- that's for sure not very strong;
+					# wth confirmed that we filter packets coming from outside
+					# and bearing SRC IP address of a Fokus network)
 					if (!(src_ip==195.37.77.110) & !(authorize("iptel.org"))) {
 						challenge("iptel.org");
 						break;
@@ -118,7 +120,8 @@ route{
 				};
 				# requests to gateway must be record-route because the GW accepts
 				# only reqeusts coming from our proxy
-				addRecordRoute();
+				if (method="INVITE")
+					addRecordRoute();
 				# if you have passed through all the checks, let your call go to GW!
 				rewritehostport("195.37.77.110:5060");
 			} else {