-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js.example
38 lines (29 loc) · 1.38 KB
/
config.js.example
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
'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 sip servers to send to
targets: [
{
address: 'ip-address-server1', //ip address of server
port: 6060, //sip port (optional: defaults to 5060 if not provided)
optionsPing: true, //send OPTIONS request to test if server is up (optional: defaults to false)
enabled: true //if false, skip this destination (note: you can edit while running and it will take affect)
},
{
address: 'ip-address-server2', //ip address of server
optionsPing: true, //send OPTIONS request to test if server is up (optional: defaults to false)
enabled: true
}
],
optionsPingInterval: 60000, //interval in millisseconds between OPTIONS ping to a server when server is up
pingIntervalWhenOffline: 5000, //ping interval in millseconds when server is offline
proxyWhenAllTargetsOffline: false, //if true, when all targets appear down try proxying to one anyways rather than return failure
authorizedSources: ['68.64.80.0/24'] // array of CIDRs for servers that are allowed to send to us
} ;