Ticket #181 (assigned enhancement)

Opened 8 months ago

Last modified 2 months ago

Support reverse direct connection invitations by the contact for the p2p sessions started by us

Reported by: diederik Owned by: diederik
Priority: normal Milestone: kmess-2.0
Component: Protocol - P2P/DC Version: 1.5-pre2
Keywords: Cc:

Description

If KMess send an INVITE for a picture transfer, WLM may send an INVITE back to initiate a direct connection. KMess rejects these invitations currently, since it breaks the state machine based on the isUserStartedApp() value.

Steps to fix this:

  • Allow these messages if the user didn't initiate the session.
  • Fix all state problems by this change.
  • The data preparation ACK should be sent after the connection is established or assumed to be failed.

Change History

Changed 2 months ago by diederik

  • status changed from new to assigned

r3399 has basic support for this!

It seams the data preparation message is sent after the connection is authorized. If it happens earlier things might still break.

Changed 2 months ago by diederik

Note the opposite (sending a reverse invitation) is in ticket #178.

stuff to test:

  • how it works over an Internet connection.
  • what happens if the connection can't be made.
Note: See TracTickets for help on using tickets.