Sfoglia il codice sorgente

test/unit: updates to auth parameter in unit 7 cfg

Daniel-Constantin Mierla 11 anni fa
parent
commit
4f8f45bdcb
2 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 4 4
      test/unit/7.cfg
  2. 1 2
      test/unit/7.sh

+ 4 - 4
test/unit/7.cfg

@@ -544,11 +544,11 @@ route[10]
 route[11]
 {
 	sl_send_reply("100", "Trying");
-	if(!www_authorize("", "subscriber")) 
+	if(!www_authorize("$td", "subscriber")) 
 	{
 		
 		xlog("L_INFO", "Register authentication failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
-		www_challenge("", "0");
+		www_challenge("$td", "0");
 		exit;
 	}
 	if(!check_to()) 
@@ -692,11 +692,11 @@ route[13]
 		}
 		else
 		{
-			if(!proxy_authorize("", "subscriber")) 
+			if(!proxy_authorize("$fd", "subscriber")) 
 			{
 				
 				xlog("L_INFO", "Proxy authentication failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
-				proxy_challenge("", "0");
+				proxy_challenge("$fd", "0");
 				exit;
 			}
 			if(!check_from()) 

+ 1 - 2
test/unit/7.sh

@@ -33,8 +33,7 @@ if ! (check_kamailio); then
 fi ;
 
 # start
-$BIN -w . -f $CFG -a no -E -e -dd
-#> /dev/null
+$BIN -a no -w . -f $CFG > /dev/null
 ret=$?
 
 sleep 1