filetransfer: do not process incoming invite in "ms-text-format" header
commitf4e1bc5a4eef7aaf4806e8b5b936aff2f38518c4
authorJakub Adam <jakub.adam@ktknet.cz>
Mon, 6 Jun 2011 22:31:08 +0000 (7 00:31 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Mon, 6 Jun 2011 22:33:13 +0000 (7 00:33 +0200)
treecd797d31c72b9d6bee9d0acf3f1a359f0646a992
parent8e04b90c6a1435580562c58a2f3f017c650b8bb6
filetransfer: do not process incoming invite in "ms-text-format" header

There was problem sending files between two SIPE instances when
Forefront Security is running on OCS, because it seems FS does not
understand ms-text-format header.

We should not place "Supported: ms-text-format" to the invitation
replies and force the sender to resend the invite once again in
plaintext. Otherwise when receiver accepted the transfer, Forefront sent
CANCEL to the sender and kept receiver waiting for the file forever.

This was affecting only the first attempt to make a filetransfer,
second try, when session is already established, was processed
correctly.

We still must place "ms-text-format" header in SIP INVITEs, as MSOC
uses it to display notification in toast. Without it communicator
incorrectly displays two separate toasts "invite to conversation" and
"incoming file transfer".
src/core/sipe-incoming.c