summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-10-24 10:57:38 +0100
committerMark Haines <mark.haines@matrix.org>2014-10-24 10:57:38 +0100
commitbe6d41ffe517d9c40aaa1ad60e2fd7e4f9d7c8b6 (patch)
tree9e9c76fbdec89acdbc6d8145f372556b73ca5b83
parentAdded pylint config file: ignore missing-docstring messages. (diff)
parentCoturn's timestamps are in seconds, not milliseconds (diff)
downloadsynapse-be6d41ffe517d9c40aaa1ad60e2fd7e4f9d7c8b6.tar.xz
Merge branch 'master' into develop
-rw-r--r--synapse/rest/voip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/voip.py b/synapse/rest/voip.py
index 2e4627606f..0d0243a249 100644
--- a/synapse/rest/voip.py
+++ b/synapse/rest/voip.py
@@ -36,7 +36,7 @@ class VoipRestServlet(RestServlet):
         if not turnUris or not turnSecret or not userLifetime:
             defer.returnValue( (200, {}) )
 
-        expiry = self.hs.get_clock().time_msec() + userLifetime
+        expiry = (self.hs.get_clock().time_msec() + userLifetime) / 1000
         username = "%d:%s" % (expiry, auth_user.to_string())
          
         mac = hmac.new(turnSecret, msg=username, digestmod=hashlib.sha1)