Fixed the resubscription process when expires comes to 0.
commit81ac55bfd40d6fc04dfe3ac97db4ed6359a6d6be
authorAnibal Avelar <aavelar@cofradia.org>
Mon, 25 May 2009 05:18:32 +0000 (25 00:18 -0500)
committerAnibal Avelar <aavelar@cofradia.org>
Mon, 25 May 2009 05:18:32 +0000 (25 00:18 -0500)
treeb9b0cfc084773b729985c56066630075ad20ec5a
parent7d3b916ec6158860134b1d086c748fb85f7f136e
Fixed the resubscription process when expires comes to 0.
On OCS2007 and LCS2005 the server is sending continuously messages
(BENOTIFY, NOTIFY or 200 ok) to update the status for each contact
subscribed previously.

Each message contains the header
  subscription-state: active;expires=time

where the time is decresing between 200 to 600 segs each new update.
We need to resubscription before te time comes to 0 or the subscriptions
is terminated (the server doesn't send more updates).

Also, was added some extra headers on the INVITE request, trying to be
compatible with the CHOWA client and others.
src/sipe.c