-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.example.js
47 lines (38 loc) · 2.08 KB
/
config.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'use strict';
// copy to config.js and add your info
// =================================
module.exports = {
//drachtio server to connect to
drachtioServer: {
address: '127.0.0.1',
port: 9022,
secret: 'cymru'
},
//array of one or more freeswitch servers
targets: [
{
address: 'ip-address-server1', //IP address freeswitch event socket is listening on
port: 8021, //port freeswitch event socket is listening on
secret: 'ClueCon', //freeswitch secret
profile: 'external', //sofia sip profile to send SIP requests to
enabled: true //if false, skip this destination (note: you can edit while running and it will take affect)
},
{
address: 'ip-address-server2', //IP address freeswitch event socket is listening on
port: 8021, //port freeswitch event socket is listening on
secret: 'ClueCon', //freeswitch secret
profile: 'external', //sofia sip profile to send SIP requests to
enabled: true //if false, skip this destination (note: you can edit while running and it will take affect)
}
],
localAddress: '127.0.0.1', //optional: local address to bind client event socket to
maxTargets: 2, //optional: max number of servers to attempt to send a single request to
authorizedSources: ['68.64.80.0/24'], // optional: array of CIDRs for servers that are allowed to send to us
// optional: if provided, this enables the blacklist feature which
// detects SIP scanners and dynamically adds the source IP address to iptables.
// check blacklist-regex.json.example for examples of regex filters against SIP headers
blacklist: {
chain: 'LOGDROP', // iptables chain to add source addresses to. iptables should be configured to DROP anything from a source in this chain
realm: 'sip.acme.com' // optional: if specified a request targeted for any other domain also results in a blacklist
}
} ;