comparison libervia/backend/plugins/plugin_xep_0166/__init__.py @ 4112:bc60875cb3b8

plugin XEP-0166, XEP-0167, XEP-0234, XEP-0353: call events management to prepare for UI: - XEP-0166: add `jingle_preflight` and `jingle_preflight_cancel` methods to prepare a jingle session, principally used by XEP-0353 to create and cancel a session - XEP-0167: preflight methods implementation, workflow split in more methods/signals to handle UI and call events (e.g.: retract or reject a call) - XEP-0234: implementation of preflight methods as they are now mandatory - XEP-0353: handle various events using the new preflight methods rel 423
author Goffi <goffi@goffi.org>
date Wed, 09 Aug 2023 00:07:37 +0200
parents a8ac5e1e5848
children 79ec7d7beef3
comparison
equal deleted inserted replaced
4111:a8ac5e1e5848 4112:bc60875cb3b8
783 ) 783 )
784 self.sendError(client, "item-not-found", None, request, "unknown-session") 784 self.sendError(client, "item-not-found", None, request, "unknown-session")
785 return 785 return
786 786
787 try: 787 try:
788 # session may have been already created in a jingle_preflight, in this
789 # case we re-use it.
788 session = self.get_session(client, sid) 790 session = self.get_session(client, sid)
789 except exceptions.NotFound: 791 except exceptions.NotFound:
790 # XXX: we store local_jid using request['to'] because for a component the 792 # XXX: we store local_jid using request['to'] because for a component the
791 # jid used may not be client.jid (if a local part is used). 793 # jid used may not be client.jid (if a local part is used).
792 session = self.create_session( 794 session = self.create_session(