[OpenSER-Devel] Presence problem with parametized uri

Eric PTAK eric.ptak.fr at gmail.com
Tue Feb 19 17:36:39 CET 2008


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:user at domain;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:user at sip.awl.test;proto=purple SIP/2.0
Via: SIP/2.0/UDP 10.26.52.122;branch=z9hG4bKc22d.4ba39eb1.0
To: sip:user at sip.awl.test;proto=purple
From: sip:user at sip.awl.test
;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:test at sip.awl.test;proto=purple SIP/2.0
Call-ID: e5ee0e34031e1ea6771c9304ca3fe5d3 at 10.24.238.150
CSeq: 3 PUBLISH
From: "Test" <sip:test at sip.awl.test>;tag=62f0ee98;proto=purple
To: "Test" <sip:test at sip.awl.test>;proto=purple
Max-Forwards: 69
Contact: "Test" <sip:test at 10.24.238.150: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openser.org/pipermail/devel/attachments/20080219/8e5bdd25/attachment.htm 


More information about the Devel mailing list