· 7 years ago · May 17, 2018, 10:18 AM
1{
2 "webPort": 8000,
3 "audioCodec": "PCMU",
4 "stunServer": "stun.sipnet.ru:3478",
5 "dataStorageDays": 100,
6 "bitrix24": {
7 "portal_link": "",
8 "client_id": "",
9 "client_secret": "",
10 "grant_type": "",
11 "redirect_uri": ""
12 },
13 "repository": "https://raw.githubusercontent.com/komunikator/mars/master/package.json",
14 "webAccounts": [
15 {
16 "username": "admin",
17 "password": "admin"
18 },
19 {
20 "username": "user_XXXXXXXXXX"
21 }
22 ],
23 "trustedNet": {
24 "tokenURL": "https://net.trusted.ru/idp/sso/oauth/token",
25 "profileURL": "https://net.trusted.ru/trustedapp/rest/person/profile/get",
26 "redirect_uri": "/auth/trusted",
27 "client_id": "TRUSTED_LOGIN_CLIENT_ID",
28 "client_secret": "TRUSTED_LOGIN_CLIENT_SECRET"
29 },
30 "maxCalls": 10,
31 "ringingTimeout": "30",
32 "serviceName": "MARS",
33 "activeAccount": 0,
34 "def_tts": "yandex",
35 "ivona_speech": {
36 "accessKey": "",
37 "secretKey": "",
38 "language": "ru-RU",
39 "name": "Tatyana",
40 "gender": "Female"
41 },
42 "recognize": {
43 "type": "yandex",
44 "options": {
45 "developer_key": "",
46 "model": "general"
47 }
48 },
49 "sipAccounts": {
50 "qwasderw2342342asd32423431": {
51 "host": "10.255.250.2:5060",
52 "password": "suk208",
53 "expires": 60,
54 "user": "208",
55 "disable": 0
56 }
57 },
58 "b24accounts": {
59 "test1": {
60 "disable": 1,
61 "clientId": "APP_CLIENT_ID",
62 "clientSecret": "APP_CLIENT_SECRET",
63 "portalLink": "LINK_MY_PORTAL_BITRIX24",
64 "redirectUri": "MY_DOMAIN:PORT"
65 }
66 },
67 "levels": {
68 "[all]": "trace",
69 "http": "error"
70 },
71 "replaceConsole": "false",
72 "appenders": [
73 {
74 "type": "console",
75 "category": [
76 "console",
77 "server",
78 "ua",
79 "call",
80 "task",
81 "error",
82 "http",
83 "rotation",
84 "sip_proxy"
85 ]
86 },
87 {
88 "type": "file",
89 "filename": "logs/error.log",
90 "maxLogSize": 1048576,
91 "backups": 3,
92 "category": "error"
93 },
94 {
95 "type": "file",
96 "filename": "logs/server.log",
97 "maxLogSize": 1048576,
98 "backups": 3,
99 "category": "server"
100 },
101 {
102 "type": "file",
103 "filename": "logs/ua.log",
104 "maxLogSize": 1048576,
105 "backups": 10,
106 "category": "ua"
107 },
108 {
109 "type": "file",
110 "filename": "logs/sip.log",
111 "maxLogSize": 1048576,
112 "backups": 10,
113 "category": "sip"
114 },
115 {
116 "type": "file",
117 "filename": "logs/call.log",
118 "maxLogSize": 1048576,
119 "backups": 10,
120 "category": "call"
121 },
122 {
123 "type": "file",
124 "filename": "logs/remoteClient.log",
125 "maxLogSize": 1048576,
126 "backups": 10,
127 "category": "remoteClient"
128 },
129 {
130 "type": "file",
131 "filename": "logs/task.log",
132 "maxLogSize": 1048576,
133 "backups": 10,
134 "category": "task"
135 },
136 {
137 "type": "file",
138 "filename": "logs/http.log",
139 "maxLogSize": 1048576,
140 "backups": 10,
141 "category": "http"
142 },
143 {
144 "type": "file",
145 "filename": "logs/cdr.log",
146 "maxLogSize": 1048576,
147 "backups": 10,
148 "category": "cdr"
149 },
150 {
151 "type": "file",
152 "filename": "logs/rotation.log",
153 "maxLogSize": 1048576,
154 "backups": 10,
155 "category": "rotation"
156 },
157 {
158 "type": "file",
159 "filename": "logs/sip_proxy.log",
160 "maxLogSize": 1048576,
161 "backups": 10,
162 "category": "sip_proxy"
163 }
164 ],
165 "sipServer": {
166 "sipServerPort": "5060",
167 "ws": {
168 "port": 8506
169 },
170 "tls": {
171 "key": "server_localhost.key",
172 "crt": "server_localhost.crt"
173 },
174 "sipClients": [
175 {
176 "user": "1",
177 "password": "1"
178 },
179 {
180 "user": "2",
181 "password": "2"
182 },
183 {
184 "user": "3",
185 "password": "3"
186 }
187 ]
188 }
189}