Module: sip-router Branch: mariuszbihlei/p_usrloc Commit: 74546cd9f98da0a1d945c735a2dc9dbece2121f6 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=74546cd9...
Author: Marius Zbihlei marius.zbihlei@1and1.ro Committer: Marius Zbihlei marius.zbihlei@1and1.ro Date: Tue Jan 18 12:47:55 2011 +0200
test/unit Update p_usrloc test (it executes correctly now and performs cleaning)
---
test/unit/50.cfg | 2 +- test/unit/50.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/test/unit/50.cfg b/test/unit/50.cfg index 5970842..a23dc08 100644 --- a/test/unit/50.cfg +++ b/test/unit/50.cfg @@ -31,7 +31,7 @@ modparam("p_usrloc", "alg_location", 1) modparam("p_usrloc", "reg_db_table", "locdb")
loadmodule "registrar" -modparam("registrar", "min_expires", 5) +modparam("registrar", "min_expires", 60) modparam("p_usrloc", "timer_interval", 2)
#------------------------- request routing logic ------------------- diff --git a/test/unit/50.sh b/test/unit/50.sh index 0b9fd4d..5c0979a 100755 --- a/test/unit/50.sh +++ b/test/unit/50.sh @@ -40,9 +40,9 @@ sleep 1
# register two contacts echo "adding new contacts" -sipsak -U -C sip:foobar@localhost -s sip:49721123456789@localhost -H localhost &> /dev/null -sipsak -U -C sip:foobar1@localhost -s sip:49721123456789@localhost -H localhost &> /dev/null -sipsak -U -C sip:foobar2@localhost -s sip:49721123456790@localhost -H localhost &> /dev/null +sipsak -U -C sip:foobar@localhost -s sip:49721123456789@localhost -H localhost -x 30 &> /dev/null +sipsak -U -C sip:foobar1@localhost -s sip:49721123456789@localhost -H localhost -x 30 &> /dev/null +sipsak -U -C sip:foobar2@localhost -s sip:49721123456790@localhost -H localhost -x 30 &> /dev/null ret=$?
if [ ! "$ret" -eq 0 ]; then @@ -71,7 +71,6 @@ if [ "$ret" -eq 0 ]; then fi; fi;
- if [ "$ret" -eq 0 ]; then echo "check if the contact is registered" sipsak -U -C empty -s sip:49721123456789@127.0.0.1 -H localhost -q "Contact: sip:foobar@localhost" #&> /dev/null