From: Michael Tremer Date: Wed, 10 Oct 2018 14:52:20 +0000 (+0100) Subject: talk: Return channels as a list X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c50164e5a3ca7c8c8b67693b3f7c614195616f8;p=ipfire.org.git talk: Return channels as a list Signed-off-by: Michael Tremer --- diff --git a/src/backend/talk.py b/src/backend/talk.py index 53ec4106..5103ab38 100644 --- a/src/backend/talk.py +++ b/src/backend/talk.py @@ -40,8 +40,13 @@ class Freeswitch(Object): (direction = %s AND callee_num = %s) ORDER BY created_epoch", "inbound", account.sip_id, "outbound", account.sip_id) + channels = [] + for row in res: - yield Channel(self, data=row) + c = Channel(self, data=row) + channels.append(c) + + return channels class SIPRegistration(object):