diff libervia/backend/plugins/plugin_xep_0234.py @ 4115:0da563780ffc

plugin XEP-0167, XEP-0353: handle ringing: - add a `jingle_preflight_info` method in the Jingle Application model to handle this kind of information - XEP-0353 is calling `jingle_preflight_info` when a `ringing` message is received - XEP-0167 use this information to send a `ringing` info to frontends
author Goffi <goffi@goffi.org>
date Wed, 16 Aug 2023 18:33:28 +0200
parents bc60875cb3b8
children 5a0bddfa34ac
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0234.py	Wed Aug 16 18:28:32 2023 +0200
+++ b/libervia/backend/plugins/plugin_xep_0234.py	Wed Aug 16 18:33:28 2023 +0200
@@ -464,6 +464,15 @@
             session["file_accepted"] = True
         return accepted
 
+    async def jingle_preflight_info(
+        self,
+        client: SatXMPPEntity,
+        session: dict,
+        info_type: str,
+        info_data: dict|None = None
+    ) -> None:
+        pass
+
     async def jingle_preflight_cancel(
         self,
         client: SatXMPPEntity,