@@ -30,7 +30,7 @@ echo -e "debug=3" > $CFG
ret=$?
sleep 1
-killall -9 $BIN
+$KILL
rm -f $CFG
@@ -73,7 +73,7 @@ ret=`mysql -B -u openserro --password=openserro openser -e "select COUNT(*) from
cd ../test
mv $CFG.bak $CFG
@@ -88,7 +88,7 @@ fi ;
rm $TMPFILE
exit $ret
@@ -104,7 +104,7 @@ Printing tree for domain 0
fi ;
# cleanup database
$MYSQL "delete from route_tree where id = 1;"
@@ -76,7 +76,7 @@ Printing tree for domain other
@@ -36,7 +36,7 @@ echo "modparam(\"$DB_ALL_MOD\", \"db_url\", \"text://`pwd`/../scripts/dbtext/kam
rm $CFG
@@ -39,7 +39,7 @@ echo "modparam(\"$DB_ALL_MOD\", \"db_url\", \"postgres://openserro:openserro@loc
rm -f dispatcher.list
@@ -54,7 +54,7 @@ if [ "$ret" -eq 0 ] ; then
# cleanup
./$DBCTL drop $tmp_name > /dev/null
@@ -41,10 +41,7 @@ ret=$?
# clean up:
-rm pgid.out
-rm pid.out
-
@@ -44,7 +44,7 @@ ret=$?
killall -9 sipp > /dev/null 2>&1
-killall -9 $BIN > /dev/null 2>&1
+$KILL > /dev/null 2>&1
$MYSQL "DELETE FROM location WHERE ((contact = \"sip:foo@localhost:$UAS\") and (user_agent = \"ser_test\"));"
exit $ret;
@@ -43,7 +43,7 @@ echo "modparam(\"dispatcher\", \"list_file\", \"`pwd`/../test/dispatcher.list\")
killall -9 sipp &> /dev/null
-killall -9 $BIN &> /dev/null
+$KILL &> /dev/null
$MYSQL "DELETE FROM location WHERE ((contact = \"sip:foo@localhost\") and (user_agent = \"ser_test\"));"
@@ -48,7 +48,7 @@ if [ "$ret" -eq 0 ] ; then
fi;
#cleanup
-killall -9 $BIN &> /dev/null;
+$KILL &> /dev/null;
killall -9 sipp &> /dev/null;
$MYSQL "DELETE FROM subscriber WHERE((username = \"alice\") and (domain = \"localhost\"));"
@@ -67,7 +67,7 @@ fi ;
ret=`$PSQL "select COUNT(*) from location where username='1000';" | tail -n 1`
mv $CFG.tmp $CFG
@@ -88,7 +88,7 @@ Printing tree for domain 0
$PSQL "delete from route_tree where id = 1;
@@ -111,7 +111,7 @@ fi;
# cleanup:
$MYSQL "delete from location where (user_agent = \"ser_test\");"
$MYSQL "delete from userblacklist where username='49721123456786';"
@@ -117,7 +117,7 @@ if [ ! "$ret" -eq 0 ] ; then
killall -9 sipp
@@ -48,7 +48,7 @@ fi;
#cleanup:
@@ -62,7 +62,7 @@ if [ ! "$ret" -eq 0 ] ; then
@@ -65,7 +65,7 @@ if [ ! "$ret" -eq 0 ] ; then
@@ -62,7 +62,7 @@ if [ "$ret" -eq 0 ] ; then
@@ -46,7 +46,7 @@ done
$MYSQL "delete from location where user_agent = '___test___'"
@@ -47,7 +47,7 @@ done
$PSQL "delete from location where user_agent = '___test___'"
@@ -57,7 +57,7 @@ if [ ! $ret -eq 0 ] ; then
if [ $ret -eq 0 ] ; then
@@ -47,7 +47,7 @@ echo "loadmodule \"db_mysql/db_mysql.so\"" >> $CFG
@@ -64,7 +64,7 @@ fi;
$MYSQL "DELETE FROM trusted WHERE (src_ip=\"127.0.0.1\");"
@@ -62,7 +62,7 @@ if [ $ret -eq 0 ]; then
@@ -77,7 +77,7 @@ if [ $ret -eq 0 ] ; then
@@ -40,7 +40,7 @@ echo "modparam(\"$DB_ALL_MOD\", \"db_url\", \"unixodbc://openserro:openserro@loc
@@ -40,7 +40,7 @@ fi ;
@@ -30,6 +30,6 @@ CFG=5.cfg
@@ -32,6 +32,6 @@ CFG=7.cfg
@@ -2,4 +2,5 @@ DB_ALL_MOD="acc|alias_db|auth_db|avpops|dialog|dialplan|dispatcher|domain|domain
CTLRC="kamctlrc"
CTL="kamctl"
DBCTL="kamdbctl"
-BIN="kamailio"
+BIN="kamailio"
+KILL="killall -15 kamailio"