[sr-dev] git:master: test/unit: updates to auth parameter in unit 7 cfg

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 2 12:17:06 CEST 2014


Module: sip-router
Branch: master
Commit: 4f8f45bdcb7c4c82192bd8d0f7c8d2166dd75dac
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4f8f45bdcb7c4c82192bd8d0f7c8d2166dd75dac

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Oct  2 12:16:15 2014 +0200

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

---

 test/unit/7.cfg |    8 ++++----
 test/unit/7.sh  |    3 +--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/test/unit/7.cfg b/test/unit/7.cfg
index cf62c82..ab8ddfe 100644
--- a/test/unit/7.cfg
+++ b/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()) 
diff --git a/test/unit/7.sh b/test/unit/7.sh
index b4dab07..5aaf636 100755
--- a/test/unit/7.sh
+++ b/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




More information about the sr-dev mailing list