summary refs log tree commit diff
path: root/synapse/rest/voip.py
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-23 19:17:24 +0200
committerDavid Baker <dbkr@matrix.org>2014-09-23 19:17:24 +0200
commitc96ab4fcbb8b7cb61fffe46ef010ea2766d1dc63 (patch)
treed58ae4660e86f6d4430d11853441db3717158a1a /synapse/rest/voip.py
parentAdd support for TURN servers as per the TURN REST API (http://tools.ietf.org/... (diff)
downloadsynapse-c96ab4fcbb8b7cb61fffe46ef010ea2766d1dc63.tar.xz
The config is not hierarchical
Diffstat (limited to '')
-rw-r--r--synapse/rest/voip.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/voip.py b/synapse/rest/voip.py
index cba9b27e3b..1989a322cf 100644
--- a/synapse/rest/voip.py
+++ b/synapse/rest/voip.py
@@ -30,9 +30,9 @@ class VoipRestServlet(RestServlet):
     def on_GET(self, request):
         auth_user = yield self.auth.get_user_by_req(request)
 
-        turnUri = self.hs.config.voip.turn_uri
-        turnSecret = self.hs.config.voip.turn_shared_secret
-        userLifetime = self.hs.config.voip.turn_user_lifetime
+        turnUri = self.hs.config.turn_uri
+        turnSecret = self.hs.config.turn_shared_secret
+        userLifetime = self.hs.config.turn_user_lifetime
         if not turnUri or not turnSecret or not userLifetime:
             defer.returnValue( (200, {"uris": []}) )