|
@@ -73,15 +73,23 @@ dns_try_ipv6=yes
|
|
# Try onle IPv6:
|
|
# Try onle IPv6:
|
|
dns_cache_flags=6
|
|
dns_cache_flags=6
|
|
|
|
|
|
-#!ifdef WITH_TLS
|
|
|
|
|
|
+#!ifdef WITH_XMLRPC
|
|
|
|
+#!ifndef WITH_TCP
|
|
#!define WITH_TCP
|
|
#!define WITH_TCP
|
|
-enable_tls=yes
|
|
|
|
|
|
+#!endif
|
|
|
|
+#!ifndef TCP_PROCESSES
|
|
|
|
+# Number of TCP Processes
|
|
|
|
+#!define TCP_PROCESSES 3
|
|
|
|
+#!endif
|
|
#!endif
|
|
#!endif
|
|
|
|
|
|
#!ifdef WITH_TCP
|
|
#!ifdef WITH_TCP
|
|
# life time of TCP connection when there is no traffic
|
|
# life time of TCP connection when there is no traffic
|
|
# - a bit higher than registration expires to cope with UA behind NAT
|
|
# - a bit higher than registration expires to cope with UA behind NAT
|
|
tcp_connection_lifetime=3615
|
|
tcp_connection_lifetime=3615
|
|
|
|
+#!ifdef TCP_PROCESSES
|
|
|
|
+tcp_children=TCP_PROCESSES
|
|
|
|
+#!endif
|
|
#!else
|
|
#!else
|
|
disable_tcp=yes
|
|
disable_tcp=yes
|
|
#!endif
|
|
#!endif
|
|
@@ -286,9 +294,9 @@ modparam("dispatcher", "ds_probing_mode", 1)
|
|
# - processing of any incoming SIP request starts with this route
|
|
# - processing of any incoming SIP request starts with this route
|
|
|
|
|
|
route {
|
|
route {
|
|
-#!ifdef WITH_DEBUG
|
|
|
|
|
|
+##!ifdef WITH_DEBUG
|
|
xlog("L_ERR", "$rm ($fu ($si:$sp) to $tu, $ci)\n");
|
|
xlog("L_ERR", "$rm ($fu ($si:$sp) to $tu, $ci)\n");
|
|
-#!endif
|
|
|
|
|
|
+##!endif
|
|
|
|
|
|
# per request initial checks
|
|
# per request initial checks
|
|
route(REQINIT);
|
|
route(REQINIT);
|
|
@@ -411,8 +419,18 @@ route[subscribe]
|
|
######################################################################
|
|
######################################################################
|
|
#!ifdef WITH_XMLRPC
|
|
#!ifdef WITH_XMLRPC
|
|
route[XMLRPC] {
|
|
route[XMLRPC] {
|
|
- # allow XMLRPC from localhost
|
|
|
|
- if ((method=="POST" || method=="GET") && (src_ip==127.0.0.1)) {
|
|
|
|
|
|
+ if ((method=="POST" || method=="GET")
|
|
|
|
+#!ifdef XMLRPC_WHITELIST_1
|
|
|
|
+&& ((src_ip == XMLRPC_WHITELIST_1)
|
|
|
|
+#!ifdef XMLRPC_WHITELIST_2
|
|
|
|
+ || (src_ip == XMLRPC_WHITELIST_2)
|
|
|
|
+#!endif
|
|
|
|
+#!ifdef XMLRPC_WHITELIST_3
|
|
|
|
+ || (src_ip == XMLRPC_WHITELIST_3)
|
|
|
|
+#!endif
|
|
|
|
+)
|
|
|
|
+#!endif
|
|
|
|
+) {
|
|
# close connection only for xmlrpclib user agents (there is a bug in
|
|
# close connection only for xmlrpclib user agents (there is a bug in
|
|
# xmlrpclib: it waits for EOF before interpreting the response).
|
|
# xmlrpclib: it waits for EOF before interpreting the response).
|
|
if ($hdr(User-Agent) =~ "xmlrpclib")
|
|
if ($hdr(User-Agent) =~ "xmlrpclib")
|
|
@@ -463,8 +481,11 @@ route[REGISTER] {
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ xlog("L_ERR", "Auth succeeded\n");
|
|
|
|
+ setdebug("9");
|
|
# We need to check if this user is registered or not
|
|
# We need to check if this user is registered or not
|
|
if (!impu_registered("location")) {
|
|
if (!impu_registered("location")) {
|
|
|
|
+ xlog("L_ERR", "Not REGISTERED\n");
|
|
save("location");
|
|
save("location");
|
|
if ($avp(saa_return_code) == 1) {
|
|
if ($avp(saa_return_code) == 1) {
|
|
isc_match_filter_reg("0","location");
|
|
isc_match_filter_reg("0","location");
|