Hello,
The proper way to send Publish messages is described in RFC 3903 (see section 4.1 for event refreshing event state publication). If you don't include a Sip-If-Match header it is not considered a refresh of the previous state and thus it does not rewrite the open state previously published.
regards,
Anca
Hildebrando Trannin wrote:
Hi Anca,
Thanks for your answer. When I say that OFFLINE doesn't works is that I send a PUBLISH with the basic status CLOSED (after already sent others PUBLISH with status OPENED) and OpenSER doesn't send NOTIFY message to inform subscribers that that contact is now OFFLINE. According to your answer it happens because I'm not sending PUBLISH's with Sip-If-Match. Is it right? If no, how is the correct way to send PUBLISH? Just to complement, PUBLISH with expires = 0 that do UNPUBLISH is working fine.
Regards, Hildebrando Trannin
-----Mensagem original----- De: Anca-Maria Vamanu [mailto:anca@voice-system.ro] Enviada em: segunda-feira, 21 de maio de 2007 06:12 Para: Hildebrando Trannin Cc: users@openser.org Assunto: Re: [Users] Presence Problem - Publish Offline
Hello,
What happens here is that the presence module receives a first Publish from your aplication (that is a Publish with no Sip-If-Match header) having the basic status closed. In this situation, it does not send Notify to its watches to prevent descovering that the user is in fact online by tracking packets.
Hildebrando Trannin wrote:
Hi all,
I was testing OpenSER presence functionality using eyebeam and a softphone developed by my team. The OFFLINE state with eyebeam worked perfectly, but with my softphone it didn't work. I set force_active =
- XML sent by PUBLISH and OpenSER log are below. Can anyone help me?
I don't understand what you mean with the Offline state not working. Could you please give more details?
Thanks, Hildebrando
*PIDF XML:*
<?xml xmlns="urn:ietf:params:xml:ns:pidf"
entity="sip:hildebrando@voip.maritaca">
<presence>
<tuple id="">
<status>
<basic>closed</basic>
</status>
<note>offline</note>
</tuple>
</presence>
The basic difference between my application and eyebeam is that eyebeam uses *RPID XML *and I use *PIDF XML*.
*OPENSER LOG:*
3(26039) PRESENCE: update_presentity: The presentity status is offline; do not send notify
regards,
Anca Vamanu
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users