Fix #193: Pidgin Status changes stop working (III)
commit7ba6310cf0981e44ff00bcc69156e18b046667ec
authorStefan Becker <chemobejk@gmail.com>
Wed, 29 May 2013 19:44:56 +0000 (29 22:44 +0300)
committerStefan Becker <chemobejk@gmail.com>
Wed, 29 May 2013 19:44:56 +0000 (29 22:44 +0300)
tree28b2205521610588341cdd05e185e6de49818a03
parent0c7047724e69caa81762a2d1bff38cb8e7a356c0
Fix #193: Pidgin Status changes stop working (III)

The previous commit only worked, because the SUBSCRIBE message was
invalid in another way and generated an error message. It looked that it
worked in testing, though...

Add the missing "Supported: eventlist" header. But now we're back at
square 1, because the server terminates our old subscription again.

After studying [MS-PRES] and [MS-SIP] it seems that we should only send
the SUBSCRIBE message to the added buddy URI for the case when the
server tells us to re-subscribe. Sending the initial single SUBSCRIBE to
self URI seems to fix the termination problem.
src/core/sipe-buddy.c
src/core/sipe-notify.c
src/core/sipe-subscriptions.c
src/core/sipe-subscriptions.h