Skip to content

Commit

Permalink
etc/: 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 ab9bfb5 commit 92c432b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions etc/kamailio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ request_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 @@ -626,7 +626,7 @@ route[REQINIT] {
exit;
}
if (!pike_check_req()) {
xlog("L_ALERT","ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
xlog("L_ALERT", "ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
$sht(ipban=>$si) = 1;
exit;
}
Expand All @@ -639,12 +639,12 @@ route[REQINIT] {
}

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

if(is_method("OPTIONS") && uri==myself && $rU==$null) {
sl_send_reply("200","Keepalive");
sl_send_reply("200", "Keepalive");
exit;
}

Expand Down Expand Up @@ -693,7 +693,7 @@ route[WITHINDLG] {
exit;
}
}
sl_send_reply("404","Not here");
sl_send_reply("404", "Not here");
exit;
}

Expand Down Expand Up @@ -821,15 +821,15 @@ route[AUTH] {
# if caller is not local subscriber, then check if it calls
# a local destination, otherwise deny, not an open relay here
if (from_uri!=myself && uri!=myself) {
sl_send_reply("403","Not relaying");
sl_send_reply("403", "Not relaying");
exit;
}

#!else

# authentication not enabled - do not relay at all to foreign networks
if(uri!=myself) {
sl_send_reply("403","Not relaying");
sl_send_reply("403", "Not relaying");
exit;
}

Expand Down Expand Up @@ -1049,15 +1049,15 @@ failure_route[MANAGE_FAILURE] {
#!ifdef WITH_BLOCK3XX
# block call 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;
}
#!endif

#!ifdef WITH_BLOCK401407
# block call redirect based on 401, 407 replies.
if (t_check_status("401|407")) {
t_reply("404","Not found");
t_reply("404", "Not found");
exit;
}
#!endif
Expand Down
2 changes: 1 addition & 1 deletion etc/sip-router.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ route[INIT]
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_reply("483","Too Many Hops");
sl_reply("483", "Too Many Hops");
drop;
}

Expand Down

0 comments on commit 92c432b

Please sign in to comment.