I'm currently writing a module using PUA to publish presence informations
from abroad network.
To filter requests, I first used extra headers, then decided to add
parameters in URIs. (ex. sip:[EMAIL PROTECTED];param=value)

It works fine except with the presence removal notification :
when i remove presence (no body, sip-if-match set, expires to 0), the
presence server notify subcribers without pidf body so the subcribers keep
seeing presentity as the last state defined before removal.

I tried to use uri parameters in another presence user agent (coded with
java/jain-sip), and the presence server works fine even during removals :
the presence server notify subscribers including a pidf body with the basic
status set to closed.

I tried a lot of things, but not solved it yet...


Here is the request made with PUA :

PUBLISH sip:[EMAIL PROTECTED];proto=purple SIP/2.0
Via: SIP/2.0/UDP 10.26.52.122;branch=z9hG4bKc22d.4ba39eb1.0
To: sip:[EMAIL PROTECTED];proto=purple
From: sip:[EMAIL PROTECTED]
;proto=purple;tag=533cb9e91f4b999cf76861cbb9ed54ed-3543
CSeq: 10 PUBLISH
Call-ID: 684f4ef0
Content-Length: 0
User-Agent: OpenSER (1.3.0-notls (i386/linux))
Max-Forwards: 69
Event: presence
Expires: 0
SIP-If-Match: a.1203416202.32215.6.0


This is the request made with jain-sip :

PUBLISH sip:[EMAIL PROTECTED];proto=purple SIP/2.0
Call-ID: [EMAIL PROTECTED]
CSeq: 3 PUBLISH
From: "Test" <sip:[EMAIL PROTECTED]>;tag=62f0ee98;proto=purple
To: "Test" <sip:[EMAIL PROTECTED]>;proto=purple
Max-Forwards: 69
Contact: "Test" <sip:[EMAIL PROTECTED]:5060>
Event: presence
Expires: 0
SIP-If-Match: a.1203416202.32219.7.0
Via: SIP/2.0/UDP 10.24.238.150:5060
;branch=z9hG4bKf93fc73f21f7ead8cad74ca65b7ad093
Content-Length: 0
_______________________________________________
Devel mailing list
[email protected]
http://lists.openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to