[svn-commits] dlee: testsuite/asterisk/trunk r3925 - /asterisk/trunk/lib/python/asterisk/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jul 18 15:14:21 CDT 2013
Author: dlee
Date: Thu Jul 18 15:14:19 2013
New Revision: 3925
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3925
Log:
AutoBahn bug workaround.
With AuthBahn WebSocket client, we must specify the subprotocol that the
server specifies.
See https://github.com/tavendo/AutobahnPython/pull/147
Modified:
asterisk/trunk/lib/python/asterisk/ari.py
Modified: asterisk/trunk/lib/python/asterisk/ari.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/ari.py?view=diff&rev=3925&r1=3924&r2=3925
==============================================================================
--- asterisk/trunk/lib/python/asterisk/ari.py (original)
+++ asterisk/trunk/lib/python/asterisk/ari.py Thu Jul 18 15:14:19 2013
@@ -96,7 +96,7 @@
(host, port,
urllib.urlencode({'app': apps, 'api_key': '%s:%s' % userpass}))
logger.info("WebSocketClientFactory(url=%s)" % url)
- WebSocketClientFactory.__init__(self, url)
+ WebSocketClientFactory.__init__(self, url, debug = True, protocols=['ari'])
self.on_event = on_event
self.timeout_secs = timeout_secs
self.protocol = self.__build_protocol
More information about the svn-commits
mailing list