From 9c50164e5a3ca7c8c8b67693b3f7c614195616f8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 10 Oct 2018 15:52:20 +0100 Subject: [PATCH] talk: Return channels as a list Signed-off-by: Michael Tremer --- src/backend/talk.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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): -- 2.47.3