Skip to content

Commit

Permalink
Add "member" argument to manager.queueStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
dmchr committed Apr 26, 2012
1 parent b309ed9 commit d56d774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manager.py
Expand Up @@ -764,13 +764,15 @@ def queues(self):
#return self.collectDeferred(message, 'QueueStatusEnd')
return self.sendDeferred(message).addCallback(self.errorUnlessResponse)

def queueStatus(self, queue=None):
def queueStatus(self, queue=None, member=None):
"""Retrieve information about active queues via multiple events"""
message = {
'action': 'queuestatus'
}
if queue is not None:
message.update({'queue': queue})
if member is not None:
message.update({'member': member})
return self.collectDeferred(message, 'QueueStatusComplete')

def redirect(self, channel, context, exten, priority, extraChannel=None):
Expand Down

0 comments on commit d56d774

Please sign in to comment.