add ui to show active calls

This commit is contained in:
liamcottle
2024-05-23 23:24:26 +12:00
parent d4750c992a
commit 4c953ced2b
3 changed files with 105 additions and 1 deletions

10
web.py
View File

@@ -175,6 +175,14 @@ class ReticulumWebChat:
"audio_calls": audio_calls,
})
# hangup all calls
@routes.get("/api/v1/calls/hangup-all")
async def index(request):
self.audio_call_manager.hangup_all()
return web.json_response({
"message": "All calls have been hungup",
})
# get call
@routes.get("/api/v1/calls/{audio_call_link_hash}")
async def index(request):
@@ -325,7 +333,7 @@ class ReticulumWebChat:
audio_call.hangup()
return web.json_response({
"message": "call has been hungup",
"message": "Call has been hungup",
})
# announce