|
@@ -202,54 +202,6 @@ Restart nginx to get the new configuration:
|
202
|
202
|
invoke-rc.d nginx restart
|
203
|
203
|
```
|
204
|
204
|
|
205
|
|
-
|
206
|
|
-## Install [Turn server](https://github.com/andyet/otalk-server/tree/master/restund)
|
207
|
|
-```sh
|
208
|
|
-apt-get install make gcc
|
209
|
|
-wget http://creytiv.com/pub/re-0.4.7.tar.gz
|
210
|
|
-tar zxvf re-0.4.7.tar.gz
|
211
|
|
-ln -s re-0.4.7 re
|
212
|
|
-cd re-0.4.7
|
213
|
|
-sudo make install PREFIX=/usr
|
214
|
|
-cd ..
|
215
|
|
-wget http://creytiv.com/pub/restund-0.4.2.tar.gz
|
216
|
|
-wget https://raw.github.com/andyet/otalk-server/master/restund/restund-auth.patch
|
217
|
|
-tar zxvf restund-0.4.2.tar.gz
|
218
|
|
-cd restund-0.4.2/
|
219
|
|
-patch -p1 < ../restund-auth.patch
|
220
|
|
-sudo make install PREFIX=/usr
|
221
|
|
-cp debian/restund.init /etc/init.d/restund
|
222
|
|
-chmod +x /etc/init.d/restund
|
223
|
|
-cd /etc
|
224
|
|
-wget https://raw.github.com/andyet/otalk-server/master/restund/restund.conf
|
225
|
|
-```
|
226
|
|
-
|
227
|
|
-Configure addresses and ports as desired, and the password to be configured in prosody:
|
228
|
|
-```
|
229
|
|
-realm jitsi.example.com
|
230
|
|
-# share this with your prosody server
|
231
|
|
-auth_shared YOURSECRET4
|
232
|
|
-
|
233
|
|
-# modules
|
234
|
|
-module_path /usr/lib/restund/modules
|
235
|
|
-turn_relay_addr [turn ip address]
|
236
|
|
-```
|
237
|
|
-
|
238
|
|
-Configure prosody to use it in `/etc/prosody/prosody.cfg.lua`. Add to your virtual host:
|
239
|
|
-```
|
240
|
|
-turncredentials_secret = "YOURSECRET4";
|
241
|
|
-turncredentials = {
|
242
|
|
- { type = "turn", host = "turn.address.ip.configured", port = 3478, transport = "tcp" }
|
243
|
|
-}
|
244
|
|
-```
|
245
|
|
-
|
246
|
|
-Add turncredentials module in the "modules_enabled" section
|
247
|
|
-
|
248
|
|
-Reload prosody if needed
|
249
|
|
-```
|
250
|
|
-prosodyctl restart
|
251
|
|
-```
|
252
|
|
-
|
253
|
205
|
## Running behind NAT
|
254
|
206
|
In case of videobridge being installed on a machine behind NAT, add the following extra lines to the file `~/.sip-communicator/sip-communicator.properties` (in the home of user running the videobridge):
|
255
|
207
|
```
|