First commit merge

This commit is contained in:
kbe
2025-10-09 16:37:02 +02:00
parent 915ef14fc5
commit 5aae456ab3
20 changed files with 2584 additions and 2 deletions

70
config/default.json Normal file
View File

@@ -0,0 +1,70 @@
{
"sip": {
"host": "0.0.0.0",
"port": 5060,
"transport": "udp",
"publicIp": null
},
"rtpProxy": {
"enabled": true,
"host": "rtpproxy",
"port": 7722
},
"dispatcher": {
"asteriskServers": [
{
"host": "asterisk1",
"port": 5060,
"weight": 1
},
{
"host": "asterisk2",
"port": 5060,
"weight": 1
}
]
},
"logging": {
"level": "info",
"file": "logs/sbc.log",
"maxSize": "10m",
"maxFiles": 5
},
"security": {
"maxForwards": 10,
"enableUAFilter": true,
"blockedUserAgents": [
"friendly-scanner",
"sip-scan",
"sip-scaner",
"sipvicious",
"sip-sip"
],
"allowedUserAgents": [
"zoiper",
"telephone",
"linphone",
"twinkle",
"csipsimple",
"sipdroid",
"3cx",
"asterisk",
"kamailio",
"freebox",
"bria",
"x-lite",
"counterpath"
],
"specialNumbers": [
"3179",
"8000",
"*600",
"888"
]
},
"registry": {
"defaultExpires": 3600,
"maxExpires": 3600,
"minExpires": 60
}
}

62
config/drachtio.conf.xml Normal file
View File

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<sip>
<contact>
<!-- Listen on all interfaces -->
<sip:udp:*:5060;transport=udp/>
<sip:tcp:*:5060;transport=tcp/>
<sip:tls:*:5061;transport=tls/>
</contact>
</sip>
<admin>
<port>9022</port>
<secret>cymru</secret>
<!-- Uncomment to restrict access to specific IPs -->
<!-- <access-list>127.0.0.1,192.168.1.0/24</access-list> -->
</admin>
<logging>
<level>debug</level>
<sofia-level>9</sofia-level>
<!-- Uncomment to log to file -->
<!-- <file>/var/log/drachtio/drachtio.log</file> -->
</logging>
<cdr>
<enabled>true</enabled>
<!-- Uncomment to send CDRs to Homer -->
<!-- <homer>udp://homer.example.com:9060</homer> -->
<!-- Uncomment to send CDRs to Splunk -->
<!-- <splunk>hep://splunk.example.com:9060</splunk> -->
</cdr>
<!-- Spam protection -->
<spam>
<!-- Reject calls from known spammer User-Agents -->
<reject>
<user-agent>friendly-scanner</user-agent>
<user-agent>sip-scan</user-agent>
<user-agent>sipcli</user-agent>
<user-agent>VaxSIPUserAgent</user-agent>
<user-agent>VOIP</user-agent>
<user-agent>Internet</user-agent>
</reject>
</spam>
<!-- Prometheus metrics (uncomment to enable) -->
<!--
<metrics>
<prometheus>9090</prometheus>
</metrics>
-->
<!-- TLS certificates (uncomment and update paths for TLS) -->
<!--
<tls>
<certificate>/etc/ssl/certs/drachtio.crt</certificate>
<private-key>/etc/ssl/private/drachtio.key</private-key>
<ca-chain>/etc/ssl/certs/ca-bundle.crt</ca-chain>
</tls>
-->
</configuration>