diff options
author | David Baker <dbkr@matrix.org> | 2014-10-21 18:57:13 +0100 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-10-21 18:57:13 +0100 |
commit | 51edfeb3d0fcde1c578cd6bc74c5b9ee961e9456 (patch) | |
tree | 6b9e2b27483741ce72ba42b82a61067bdec11398 /synapse/rest/voip.py | |
parent | use a tagged version of syutil rather than master (diff) | |
download | synapse-51edfeb3d0fcde1c578cd6bc74c5b9ee961e9456.tar.xz |
Coturn's timestamps are in seconds, not milliseconds
Diffstat (limited to '')
-rw-r--r-- | synapse/rest/voip.py | 2 |
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) |