Skip to content

Commit

Permalink
test/: add a space between comma and quote
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and henningw committed Dec 10, 2022
1 parent 92c432b commit dfddb4b
Show file tree
Hide file tree
Showing 29 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion test/misc/cfg/acc-test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ route{
log("LOG: Checking maxfwd\n");
if (!mf_process_maxfwd_header("10")) {
log("LOG: Too many hops\n");
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
break;
};

Expand Down
2 changes: 1 addition & 1 deletion test/misc/cfg/gen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ route{

if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
sl_send_reply("483", "To Many Hops");
drop();
};

Expand Down
2 changes: 1 addition & 1 deletion test/misc/cfg/mobile61.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route{
(src_ip=~'(dorian)|(ekina)|(terix)' & method=~'^inv') \
forward(centauri.fokus.gmd.de);
src_ip=~"^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$" \
log(1,"msg. from a private network\n"); route(1);
log(1, "msg. from a private network\n"); route(1);
src_ip==0.0.0.0/0 log(1, " droping msg\n"); drop;
}

Expand Down
4 changes: 2 additions & 2 deletions test/misc/cfg/nc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ loadmodule "/home/srouter/sip_router/modules/textops/textops.so"

route {
if (!search("^(From|f)\:.*sip\:[0-9]+@")) {
log(1," From non-nummerical\n");
log(1, " From non-nummerical\n");
sl_send_reply("400", "entry nummerical from check failed\n");
break;
};
log(1," From nummerical\n");
log(1, " From nummerical\n");
sl_send_reply("200", "entry nummerical from check ok\n");
}

2 changes: 1 addition & 1 deletion test/misc/cfg/ser.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ route{
if (src_ip=~'(dorian)|(ekina)|(terix)' & method=~'^inv')
forward(centauri.fokus.gmd.de);
if src_ip=~"^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$" {
log(1,"msg. from a private network\n");
log(1, "msg. from a private network\n");
route(1);
log(1, "after route(1)\n");
break;
Expand Down
2 changes: 1 addition & 1 deletion test/misc/cfg/stress.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ route{
append_branch("sip:bla@bat.iptel.org:5088");
append_branch("sip:blb@bat.iptel.org:5088");
t_on_negative("1");
t_relay_to("bat.iptel.org","5088");
t_relay_to("bat.iptel.org", "5088");
}

reply_route[1] {
Expand Down
2 changes: 1 addition & 1 deletion test/misc/cfg/test1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ route{
( uri=~"test\n" & ! src_ip=~"dorian") forward(dorian.fokus.gmd.de);

(src_ip==192.168.0.0/255.255.0.0 or dst_ip==127.0.0.1 and uri=~"s$") \
error("440","not forwarding"); log(2,"droping..."); drop;
error("440", "not forwarding"); log(2, "droping..."); drop;

src_ip==127.0.0.1 route(3); drop;
}
Expand Down
24 changes: 12 additions & 12 deletions test/misc/cfg/th-uri.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ loadmodule "modules/im/im.so"
loadmodule "modules/sms/sms.so"


modparam("sms","modems","Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=2;r=1] ")
modparam("sms","networks","D1[c=491710765000;m=10]")
modparam("sms","links","Falcom[D1] ")
#modparam("sms","domain","hope.fokus.gmd.de")
modparam("sms","max_sms_parts",3)
modparam("sms","use_contact",1)
modparam("sms","sms_report_type",2)
modparam("sms", "modems", "Falcom [d=/dev/ttyS1;b=9600;p=9254;m=new;l=2;r=1] ")
modparam("sms", "networks", "D1[c=491710765000;m=10]")
modparam("sms", "links", "Falcom[D1] ")
#modparam("sms", "domain", "hope.fokus.gmd.de")
modparam("sms", "max_sms_parts", 3)
modparam("sms", "use_contact", 1)
modparam("sms", "sms_report_type", 2)

route{
if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
sl_send_reply("483", "To Many Hops");
drop();
};

Expand All @@ -47,18 +47,18 @@ route{
log("MESSAGE received -> sending as sms\n");
if (sms_send_msg_to_net("D1"))
{
sl_send_reply("200","Accepted");
sl_send_reply("200", "Accepted");
}else{
sl_send_reply("502","Bad gateway");
sl_send_reply("502", "Bad gateway");
};
}else{
log("NON_Message request received for sms gateway->dropt!\n");
sl_send_reply("501","Not implemented");
sl_send_reply("501", "Not implemented");
};
break;
};


sl_send_reply("502","Not Implemented");
sl_send_reply("502", "Not Implemented");
#forward(uri:host,uri:port);
}
16 changes: 8 additions & 8 deletions test/misc/cfg/use_jab.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ loadmodule "modules/sl/sl.so"
loadmodule "modules/jabber/jabber.so"
#loadmodule "modules/cpl/cpl.so"

modparam("jabber","jaddress","gorn.fokus.gmd.de")
modparam("jabber","jport",5222)
modparam("jabber", "jaddress", "gorn.fokus.gmd.de")
modparam("jabber", "jport", 5222)

route{
sl_filter_ACK();

if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
sl_send_reply("483", "To Many Hops");
drop();
};

Expand All @@ -52,12 +52,12 @@ route{
log("SER : Error during running CPL script!\n");
}else{
if ( cpl_is_response_reject() ) {
sl_send_reply("603","I am not available!");
sl_send_reply("603", "I am not available!");
drop();
}else if ( cpl_is_response_redirect() ) {
log("SER : redirect\n");
cpl_update_contact();
sl_send_reply("302","Moved temporarily");
sl_send_reply("302", "Moved temporarily");
drop();
};
};
Expand All @@ -71,13 +71,13 @@ route{
log("MESSAGE received -> sending as JABBER\n");
if (jab_send_message())
{
sl_send_reply("202","Accepted");
sl_send_reply("202", "Accepted");
}else{
sl_send_reply("502","Bad gateway");
sl_send_reply("502", "Bad gateway");
};
}else{
log("NON_Message request received for JABBER gateway->dropt!\n");
sl_send_reply("501","Not implemented");
sl_send_reply("501", "Not implemented");
};
break;
};
Expand Down
2 changes: 1 addition & 1 deletion test/unit/11.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ modparam("usrloc", "db_url", DBURL)
request_route {

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/13.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
request_route {
# initial sanity checks
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
return;
};
cr_user_carrier("$fU", "$fd", "$avp(s:11)");
Expand Down
2 changes: 1 addition & 1 deletion test/unit/14.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ modparam("carrierroute", "config_file", "carrierroute.cfg")
request_route {
# initial sanity checks
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
return;
};
if (method == "REGISTER") {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/19.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ modparam("usrloc", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")
#-----------------------Routing configuration---------------------------------#
request_route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit();
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/20.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ modparam("db_mysql", "timeout_interval", 2)

request_route {
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit;
}

Expand Down
6 changes: 3 additions & 3 deletions test/unit/21.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ route{

if (is_method("ACK")) {
xlog("ACK\n");
sl_send_reply("200","OK");
sl_send_reply("200", "OK");
exit;
}

Expand All @@ -80,15 +80,15 @@ route{
www_challenge("localhost", "0");
} else {
if(check_to() && check_from()) {
sl_send_reply("200","OK");
sl_send_reply("200", "OK");
}
}
} else {
if (!proxy_authorize("localhost", "subscriber")) {
proxy_challenge("localhost", "0");
} else {
if(check_to() && check_from() && does_uri_exist()) {
sl_send_reply("200","OK");
sl_send_reply("200", "OK");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/22.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ modparam("usrloc", "db_url", "postgres://kamailio:kamailiorw@localhost/kamailio"
request_route {

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/25.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ request_route {
#xlog("user: $rU\n");

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/26.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
route{
# initial sanity checks
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
return;
}
if (msg:len > 4096) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/28.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ request_route {
# run incoming script
if ( !cpl_run_script("incoming", "force_stateful") ) {
# script execution failed
sl_send_reply("500","CPL script execution failed");
sl_send_reply("500", "CPL script execution failed");
exit;
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/30.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ loadmodule "carrierroute/carrierroute.so"
route{
# initial sanity checks
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/35.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ modparam("usrloc|permissions", "db_url", "mysql://kamailio:kamailiorw@localhost/
#-----------------------Routing configuration---------------------------------#
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit();
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/41.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ loadmodule "xlog/xlog.so"
modparam("usrloc", "db_mode", 3)
modparam("usrloc|avpops", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")

modparam("avpops","avp_table","usr_preferences")
modparam("avpops", "avp_table", "usr_preferences")
modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")

route{
Expand Down
2 changes: 1 addition & 1 deletion test/unit/45.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ modparam("memcached", "memory", 0)
#-----------------------Routing configuration---------------------------------#
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit();
}

Expand Down
12 changes: 6 additions & 6 deletions test/unit/5.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ modparam("usrloc", "db_mode", 0)
route{

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit;
}

Expand Down Expand Up @@ -226,7 +226,7 @@ route{
exit;
}
}
sl_send_reply("404","Not here");
sl_send_reply("404", "Not here");
}
exit;
}
Expand All @@ -251,7 +251,7 @@ route{
## exit;
## }
## if (!check_from()) {
## sl_send_reply("403","Forbidden auth ID");
## sl_send_reply("403", "Forbidden auth ID");
## exit;
## }
##
Expand Down Expand Up @@ -309,7 +309,7 @@ route{
##
##if (!check_to())
##{
## sl_send_reply("403","Forbidden auth ID");
## sl_send_reply("403", "Forbidden auth ID");
## exit;
##}

Expand All @@ -321,7 +321,7 @@ route{

if ($rU==NULL) {
# request with no Username in RURI
sl_send_reply("484","Address Incomplete");
sl_send_reply("484", "Address Incomplete");
exit;
}

Expand Down Expand Up @@ -409,7 +409,7 @@ failure_route[1] {
# uncomment the following lines if you want to block client
# redirect based on 3xx replies.
##if (t_check_status("3[0-9][0-9]")) {
##t_reply("404","Not found");
##t_reply("404", "Not found");
## exit;
##}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/50.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ modparam("registrar", "min_expires", 60)
route{

if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
sl_send_reply("483", "Too Many Hops");
exit;
}

Expand Down

0 comments on commit dfddb4b

Please sign in to comment.