Browse code

etc/kamailio.cfg: small polishings

- drop silently traffic from scanners
- removed fork=yes (it is default value)

Daniel-Constantin Mierla authored on 09/02/2016 07:36:24
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 #!KAMAILIO
2 2
 #
3
-# Kamailio (OpenSER) SIP Server v4.3 - default configuration script
3
+# Kamailio (OpenSER) SIP Server v4.4 - default configuration script
4 4
 #     - web: http://www.kamailio.org
5 5
 #     - git: http://sip-router.org
6 6
 #
... ...
@@ -11,10 +11,10 @@
11 11
 #
12 12
 # Several features can be enabled using '#!define WITH_FEATURE' directives:
13 13
 #
14
-# *** To run in debug mode: 
14
+# *** To run in debug mode:
15 15
 #     - define WITH_DEBUG
16 16
 #
17
-# *** To enable mysql: 
17
+# *** To enable mysql:
18 18
 #     - define WITH_MYSQL
19 19
 #
20 20
 # *** To enable authentication execute:
... ...
@@ -147,8 +147,8 @@ memlog=5
147 147
 
148 148
 log_facility=LOG_LOCAL0
149 149
 
150
-fork=yes
151
-children=4
150
+# number of SIP routing processes
151
+children=8
152 152
 
153 153
 /* uncomment the next line to disable TCP (default on) */
154 154
 #disable_tcp=yes
... ...
@@ -160,13 +160,12 @@ children=4
160 160
 /* add local domain aliases */
161 161
 #alias="sip.mydomain.com"
162 162
 
163
-/* uncomment and configure the following line if you want Kamailio to 
163
+/* uncomment and configure the following line if you want Kamailio to
164 164
    bind on a specific interface/port/proto (default bind on all available) */
165 165
 #listen=udp:10.0.0.10:5060
166 166
 
167
-/* port to listen to
168
- * - can be specified more than once if needed to listen on many ports */
169
-port=5060
167
+/* port to listen to */
168
+#port=5060
170 169
 
171 170
 #!ifdef WITH_TLS
172 171
 enable_tls=yes
... ...
@@ -333,7 +332,7 @@ modparam("acc", "detect_direction", 0)
333 333
 /* account triggers (flags) */
334 334
 modparam("acc", "log_flag", FLT_ACC)
335 335
 modparam("acc", "log_missed_flag", FLT_ACCMISSED)
336
-modparam("acc", "log_extra", 
336
+modparam("acc", "log_extra",
337 337
 	"src_user=$fU;src_domain=$fd;src_ip=$si;"
338 338
 	"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
339 339
 modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)
... ...
@@ -561,8 +560,9 @@ route[REQINIT] {
561 561
 			exit;
562 562
 		}
563 563
 	}
564
-	if($ua =~ "friendly-scanner") {
565
-		sl_send_reply("200", "OK");
564
+	if($ua =~ "friendly-scanner|sipcli") {
565
+		# silent drop for scanners - uncomment next line if want to reply
566
+		# sl_send_reply("200", "OK");
566 567
 		exit;
567 568
 	}
568 569
 #!endif
... ...
@@ -712,7 +712,7 @@ route[PRESENCE] {
712 712
 	}
713 713
 	exit;
714 714
 #!endif
715
-	
715
+
716 716
 	# if presence enabled, this part will not be executed
717 717
 	if (is_method("PUBLISH") || $rU==$null) {
718 718
 		sl_send_reply("404", "Not here");