[OpenSIPS-Users] pua_send_publish feature or bug?

Damien Sandras dsandras at seconix.com
Fri Nov 18 16:47:54 CET 2011


Hi to all,

When using the FIFO to send a publish request, it publishes a status 
with <basic> = closed wjhen it expires.

I think it should not do that if there are other presence documents in 
the same NOTIFY. Am I wrong ?

Thanks,

Damien

eg :
NOTIFY sip:751 at 172.30.201.176:5180 SIP/2.0
CSeq: 20 NOTIFY
Via: SIP/2.0/UDP 172.30.8.76;branch=z9hG4bK5a94.1ac1f35.0
User-Agent: OpenSIPS (1.8.0-dev0-notls (i386/linux))
From: <sip:752 at 172.30.8.76>;tag=bc6952e80abe0dafb649f68ff0a5ee95-f487
Call-ID: b09bfff8-6310-e111-9777-001d09da9a20 at scorpion
To: <sip:751 at 172.30.8.76>;tag=400b00f9-6310-e111-9777-001d09da9a20
Contact: <sip:172.30.8.76:5060>
Subscription-State: active;expires=300
Event: presence
Content-Length: 815
Content-Type: application/pidf+xml
Max-Forwards: 70

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf" 
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" 
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" 
entity="pres:752 at 172.30.8.76"> <tuple id="T7925C187"> <status> 
<basic>open</basic> </status> <contact 
priority="1">sip:752 at 172.30.8.76</contact> <note>Calendar Busy</note> 
</tuple> <dm:person id="pid2"> <rpid:activities> <rpid:busy/> 
</rpid:activities> </dm:person>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" 
xmlns:im="urn:ietf:params:xml:ns:pidf:im" id="snom370-0004133A3415">
<status>
<basic>open</basic>
<im:im>Out of office</im:im>
</status>
<contact priority="1.00">sip:752 at 172.30.8.76</contact>
<note xml:lang="en">Out of office</note>
</tuple>
</presence>


and when it expires :
NOTIFY sip:751 at 172.30.201.176:5180 SIP/2.0
CSeq: 21 NOTIFY
Via: SIP/2.0/UDP 172.30.8.76;branch=z9hG4bK6a94.3ec76cc7.0
User-Agent: OpenSIPS (1.8.0-dev0-notls (i386/linux))
From: <sip:752 at 172.30.8.76>;tag=bc6952e80abe0dafb649f68ff0a5ee95-f487
Call-ID: b09bfff8-6310-e111-9777-001d09da9a20 at scorpion
To: <sip:751 at 172.30.8.76>;tag=400b00f9-6310-e111-9777-001d09da9a20
Contact: <sip:172.30.8.76:5060>
Subscription-State: active;expires=170
Event: presence
Content-Length: 670
Content-Type: application/pidf+xml
Max-Forwards: 70

<?xml version="1.0"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf" 
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" 
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" 
entity="pres:752 at 172.30.8.76"><tuple xmlns="urn:ietf:params:xml:ns:pidf" 
id="T7925C187"><status xmlns="urn:ietf:params:xml:ns:pidf"> 
<basic>closed</basic> </status></tuple>
<tuple xmlns="urn:ietf:params:xml:ns:pidf" 
xmlns:im="urn:ietf:params:xml:ns:pidf:im" id="snom370-0004133A3415">
<status>
<basic>open</basic>
<im:im>Out of office</im:im>
</status>
<contact priority="1.00">sip:752 at 172.30.8.76</contact>
<note xml:lang="en">Out of office</note>
</tuple>
</presence>




More information about the Users mailing list