Sfoglia il codice sorgente

fixed Cisco's PRACK error

Jiri Kuthan 23 anni fa
parent
commit
ec7a2c6d36
1 ha cambiato i file con 10 aggiunte e 3 eliminazioni
  1. 10 3
      iptel.cfg

+ 10 - 3
iptel.cfg

@@ -1,5 +1,5 @@
 #
-# configuration for TurboSIP testing
+# iptel.org real world configuration
 #
 # $Id$
 #
@@ -24,6 +24,13 @@ loadmodule "modules/auth/auth.so"
 
 
 route{
+
+	# fix Cisco's bug in PRACK processing; it's a really horrible, horrible hack!
+	if (method=="PRACK") {
+		sl_send_reply("200", "Cool I like PRACKs" );
+		break;
+	};
+
 	# filter local stateless ACK generated by authentication of mf replies
 	sl_filter_ACK();
 
@@ -83,7 +90,7 @@ route{
 				
 					# does the authenticated user have a permission for local
 					# calls? (i.e., is he in the "local" group?)
-					if (uri=~"sip:0[1-9]+@.*") {
+					if (uri=~"sip:0[1-9][0-9]+@.*") {
 						if (!is_in_group("local")) {
 							sl_send_reply("403", "Toodle Noodle...");
 							break;
@@ -129,7 +136,7 @@ route{
 			};
 		};
 
-		# we now we may, we now where, let it go out now!
+		# we now know we may, we now where, let it go out now!
 		t_relay();
        };
 }