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
This commit is contained in:
parent
71cfdccb5b
commit
09d88cdfe2
1 changed files with 57 additions and 1 deletions
|
|
@ -43,6 +43,20 @@ class BaseApplicationHandler(abc.ABC):
|
|||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
async def jingle_preflight_info(
|
||||
self,
|
||||
client: SatXMPPEntity,
|
||||
session: dict,
|
||||
info_type: str,
|
||||
info_data: dict|None = None
|
||||
) -> None:
|
||||
"""Called when we have new information during preflight
|
||||
|
||||
Notably used by XEP-0353 to signal ringing
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
async def jingle_preflight_cancel(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue