-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
41 lines (38 loc) · 684 Bytes
/
config.js
File metadata and controls
41 lines (38 loc) · 684 Bytes
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
const os = require('os');
const util = require('./util');
var config = module.exports = {};
config.options = {
port: 5060,
address: '0.0.0.0',
udp: true,
tcp: true,
publicAddress: 'localhost',
logger: {
send: function(message, address) {
util.log('[OUT]', message);
},
recv: function(message, address) {
util.log('[INC]', message);
}
}
};
config.realm = os.hostname();
config.peers = {
'elijah': {
type: 'user',
password: 'password1'
},
'steve': {
type: 'user',
password: 'password2'
},
'442039051010': {
type: 'trunk',
contacts: [
{
type: 'user',
peer: 'elijah'
}
]
}
}