Skip to content

Commit

Permalink
AutoBahn bug workaround.
Browse files Browse the repository at this point in the history
With AuthBahn WebSocket client, we must specify the subprotocol that the
server specifies.

See crossbario/autobahn-python#147


git-svn-id: https://origsvn.digium.com/svn/testsuite/asterisk/trunk@3925 a5964663-950a-4945-9369-5dd0b5cb08c1
  • Loading branch information
leedm777 committed Jul 18, 2013
1 parent 94205ea commit 23944a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/asterisk/ari.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, host, apps, on_event, userpass, port=DEFAULT_PORT,
(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
Expand Down

0 comments on commit 23944a4

Please sign in to comment.