Skip to content

Commit

Permalink
test/: typos a/an
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Dec 16, 2022
1 parent 521bf3d commit e24de68
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions test/unit/12.cfg
Expand Up @@ -44,7 +44,7 @@ request_route {
if(is_present_hf("Expires")) {
xlog("Expires header field present\n");
if($(hdr(Expires){s.int}) > 0) {
xlog("this is an registration\n");
xlog("this is a registration\n");
}
if($(hdr(Expires){s.int}) == 0) {
xlog("this is an unregistration\n");
Expand All @@ -53,7 +53,7 @@ request_route {
if(is_present_hf("Contact")) {
xlog("Contact header field present\n");
if ($(hdr(Contact){param.value,expires}{s.int}) > 0) {
xlog("this is an registration\n");
xlog("this is a registration\n");
}
if ($(ct{param.value,expires}{s.int}) == 0) {
xlog("this is an unregistration\n");
Expand Down
2 changes: 1 addition & 1 deletion test/unit/12.sh
Expand Up @@ -75,7 +75,7 @@ if [ "$ret" -eq 0 ] ; then
grep "Contact header field present" $TMPFILE > /dev/null
ret=$?
if [ "$ret" -eq 0 ] ; then
grep "this is an registration" $TMPFILE > /dev/null
grep "this is a registration" $TMPFILE > /dev/null
ret=$?
if [ "$ret" -eq 0 ] ; then
grep "this is an unregistration" $TMPFILE > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion test/unit/19.sh
Expand Up @@ -33,7 +33,7 @@ UAS=5070
UAC=5080


# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "DELETE FROM location WHERE ruid=\"kamailio-unit-uid\""
$MYSQL "INSERT INTO location (ruid,username,contact,socket,user_agent,cseq,q) VALUES (\"kamailio-unit-uid\", \"foo\",\"sip:foo@localhost:$UAS\",\"udp:127.0.0.1:$UAS\",\"kamailio_test\",1,-1);"

Expand Down
2 changes: 1 addition & 1 deletion test/unit/20.sh
Expand Up @@ -30,7 +30,7 @@ fi ;
CFG="20.cfg"
TMPFILE=`mktemp -t kamailio-test.XXXXXXXXXX`

# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "INSERT INTO location (ruid, username,contact,socket,user_agent,cseq,q) VALUES (\"kamailio-test-uid\",\"foo\",\"sip:foo@127.0.0.1\",\"udp:127.0.0.1:5060\",\"kamailio_test\",1,-1);"

sipp -sn uas -bg -i 127.0.0.1 -m 1 -f 10 -p 5060 > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion test/unit/21.cfg
@@ -1,7 +1,7 @@
#
# simple quick-start config script
# Please refer to the Core CookBook at http://www.kamailio.org/wiki/
# for a explanation of possible statements, functions and parameters.
# for an explanation of possible statements, functions and parameters.
#

# ----------- global configuration parameters ------------------------
Expand Down
2 changes: 1 addition & 1 deletion test/unit/21.sh
Expand Up @@ -30,7 +30,7 @@ fi ;

CFG=21.cfg

# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "INSERT INTO subscriber (username, domain, password) VALUES (\"alice\",\"localhost\",\"alice\");"

$BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG -E -e -dd > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion test/unit/25.sh
Expand Up @@ -46,7 +46,7 @@ fi ;

CFG=25.cfg

# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "insert into location (ruid,username,contact,socket,user_agent,cseq,q) values (\"ul-ruid-aa\",\"49721123456789\",\"sip:123456789@127.0.0.1\",\"udp:127.0.0.1:5060\",\"kamailio_test\",1,-1);"

$MYSQL "insert into location (ruid,username,contact,socket,user_agent,cseq,q) values (\"ul-ruid-bb\",\"49721123456788\",\"sip:123456788@127.0.0.1\",\"udp:127.0.0.1:5060\",\"kamailio_test\",1,-1);"
Expand Down
2 changes: 1 addition & 1 deletion test/unit/35.sh
Expand Up @@ -34,7 +34,7 @@ UAC=5080
IP="127.0.0.31"
MASK=27

# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@localhost:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);"
$MYSQL "INSERT INTO trusted (src_ip, proto) VALUES (\"127.0.0.1\",\"any\");"

Expand Down
2 changes: 1 addition & 1 deletion test/unit/40.sh
Expand Up @@ -34,7 +34,7 @@ if ! (check_sipp && check_kamailio && check_module "db_mysql" && check_mysql); t
exit 0
fi ;

# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@127.0.0.1:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);"

# start
Expand Down
2 changes: 1 addition & 1 deletion test/unit/41.sh
Expand Up @@ -37,7 +37,7 @@ if ! (check_sipp && check_kamailio && check_module "db_mysql" && check_mysql); t
exit 0
fi ;

# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@127.0.0.1:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);"

$MYSQL "INSERT INTO usr_preferences (uuid, attribute, type, value) VALUES (\"foobar\", \"679\", 0, \"foobar!!!!!\");"
Expand Down
2 changes: 1 addition & 1 deletion test/unit/45.sh
Expand Up @@ -33,7 +33,7 @@ UAS=5070
UAC=5080


# add an registrar entry to the db;
# add a registrar entry to the db;
$MYSQL "INSERT INTO location (username,contact,socket,user_agent,cseq,q) VALUES (\"foo\",\"sip:foo@127.0.0.1:$UAS\",\"udp:127.0.0.1:$UAS\",\"ser_test\",1,-1);"

$BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG &> /dev/null
Expand Down
2 changes: 1 addition & 1 deletion test/unit/46.sh
Expand Up @@ -64,7 +64,7 @@ test_module_int()
return $ret
}

# add an registrar entry to the db
# add a registrar entry to the db
cp $CFG ${CFG}.bak

echo "loadmodule \"db_mysql/db_mysql.so\"" >>$CFG
Expand Down
2 changes: 1 addition & 1 deletion test/unit/5.cfg
Expand Up @@ -5,7 +5,7 @@
# by Anca Vamanu <anca@voice-system.ro>
#
# Please refer to the Core CookBook at http://www.kamailio.org/dokuwiki/doku.php
# for a explanation of possible statements, functions and parameters.
# for an explanation of possible statements, functions and parameters.
#


Expand Down

0 comments on commit e24de68

Please sign in to comment.