Browse code

kamailio.cfg: xhttp left only in kamailio-oob.cfg

Daniel-Constantin Mierla authored on 02/01/2013 13:09:53
Showing 1 changed files
... ...
@@ -67,18 +67,6 @@
67 67
 #     - define WITH_XMLRPC
68 68
 #     - adjust route[XMLRPC] for access policy
69 69
 #
70
-# *** To enable the embedded http server:
71
-#     - define WITH_XHTTP
72
-#
73
-# *** To enable the RPC web interface execute:
74
-#     - enable xhttp
75
-#     - define WITH_XHTTP_RPC
76
-#
77
-# *** To enable the provisioning web interface execute:
78
-#     - enable mysql
79
-#     - enable xhttp
80
-#     - define WITH_XHTTP_PI
81
-#
82 70
 # *** To enable anti-flood detection execute:
83 71
 #     - adjust pike and htable=>ipban settings as needed (default is
84 72
 #       block if more than 16 requests in 2 seconds and ban for 300 seconds)
... ...
@@ -186,10 +174,6 @@ enable_tls=yes
186 186
 # - a bit higher than registration expires to cope with UA behind NAT
187 187
 tcp_connection_lifetime=3605
188 188
 
189
-#!ifdef WITH_XHTTP
190
-tcp_accept_no_cl=yes
191
-#!endif
192
-
193 189
 ####### Custom Parameters #########
194 190
 
195 191
 # These parameters can be modified runtime via RPC interface
... ...
@@ -298,18 +282,6 @@ loadmodule "xmlrpc.so"
298 298
 loadmodule "debugger.so"
299 299
 #!endif
300 300
 
301
-#!ifdef WITH_XHTTP
302
-loadmodule "xhttp.so"
303
-#!endif
304
-
305
-#!ifdef WITH_XHTTP_RPC
306
-loadmodule "xhttp_rpc.so"
307
-#!endif
308
-
309
-#!ifdef WITH_XHTTP_PI
310
-loadmodule "xhttp_pi.so"
311
-#!endif
312
-
313 301
 # ----------------- setting module-specific parameters ---------------
314 302
 
315 303
 
... ...
@@ -473,15 +445,6 @@ modparam("xmlrpc", "url_match", "^/RPC")
473 473
 modparam("debugger", "cfgtrace", 1)
474 474
 #!endif
475 475
 
476
-#!ifdef WITH_XHTTP_RPC
477
-modparam("xhttp_rpc", "xhttp_rpc_root", "http_rpc")
478
-#!endif
479
-
480
-#!ifdef WITH_XHTTP_PI
481
-modparam("xhttp_pi", "xhttp_pi_root", "http_pi")
482
-modparam("xhttp_pi", "framework", "/usr/local/etc/kamailio/pi_framework.xml")
483
-#!endif
484
-
485 476
 ####### Routing Logic ########
486 477
 
487 478
 
... ...
@@ -958,23 +921,3 @@ failure_route[MANAGE_FAILURE] {
958 958
 	}
959 959
 #!endif
960 960
 }
961
-
962
-#!ifdef WITH_XHTTP
963
-event_route[xhttp:request] {
964
-#!ifdef WITH_XHTTP_RPC
965
-	$var(xhttp_rpc_root) = $(hu{s.substr,0,9});
966
-	if ($var(xhttp_rpc_root) == "/http_rpc") {
967
-		dispatch_xhttp_rpc();
968
-	}
969
-#!endif
970
-#!ifdef WITH_XHTTP_PI
971
-	$var(xhttp_rpc_root) = $(hu{s.substr,0,8});
972
-	if ($var(xhttp_rpc_root) == "/http_pi") {
973
-		dispatch_xhttp_pi();
974
-	}
975
-#!endif
976
-	xhttp_reply("200", "OK", "text/html",
977
-		"<html><body>Wrong URL $hu</body></html>");
978
-}
979
-#!endif
980
-