Commit 54f3c68b authored by Jean-Pierre Thomasset's avatar Jean-Pierre Thomasset

2404 - add function to get list of mediaservers

parent da05bd05
......@@ -3,6 +3,7 @@ xivo-dao (2019.04.00) xivo-callisto; urgency=medium
* 2371 Fix agent api by porting the following fixes
* 2375 Add a CtiProfile to user when it's not set and a login is set
* 2352 Add api to create func key destination for agent
* 2404 New Routing strategy for inter-mds communication
-- Jean-Pierre Thomasset <jpthomasset@gmail.com> Fri, 22 Feb 2019 09:44:53 +0000
......
......@@ -748,3 +748,11 @@ def find_queue_penalties_settings(session):
res.append(tmp)
return res
@daosession
def find_all_mediaservers(session):
rows = (session.query(MediaServer)
.filter(MediaServer.voip_ip.isnot(None))
.all())
return rows
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment