Browse Source

etc/: add a space between comma and quote

Дилян Палаузов 2 years ago
parent
commit
92c432b0f5
2 changed files with 10 additions and 10 deletions
  1. 9 9
      etc/kamailio.cfg
  2. 1 1
      etc/sip-router.cfg

+ 9 - 9
etc/kamailio.cfg

@@ -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;
 	}
 
@@ -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;
 		}
@@ -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;
 	}
 
@@ -693,7 +693,7 @@ route[WITHINDLG] {
 			exit;
 		}
 	}
-	sl_send_reply("404","Not here");
+	sl_send_reply("404", "Not here");
 	exit;
 }
 
@@ -821,7 +821,7 @@ 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;
 	}
 
@@ -829,7 +829,7 @@ route[AUTH] {
 
 	# 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;
 	}
 
@@ -1049,7 +1049,7 @@ 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
@@ -1057,7 +1057,7 @@ failure_route[MANAGE_FAILURE] {
 #!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

+ 1 - 1
etc/sip-router.cfg

@@ -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;
 	}