﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
93	Refresh PUBLISH should have SIP-If-Match header	ibc	vadim	"When Qutecom sends a refresh PUBLISH it should use the header SIP-If-Match with the value received in SIP-ETag header in the 200 OK reveiced for the initial PUBLISH.

For example, this would be the correct behaviour:

------------------------------------
PUBLISH sip:30000@domain.org SIP/2.0 
Via: SIP/2.0/UDP 10.134.16.124:6060;rport;branch=z9hG4bKbyhpbiir 
Max-Forwards: 70 
To: ""Pepe"" <sip:30000@domain.org> 
From: ""Pepe"" <sip:30000@domain.org>;tag=zztby 
Call-ID: ntyulbtfdujwidf@ibc-laptop 
CSeq: 367 PUBLISH 
Content-Type: application/pidf+xml 
Event: presence 
Expires: 3600 
User-Agent: Twinkle/1.4.2 
Content-Length: 203 
 
<?xml version=""1.0"" encoding=""UTF-8""?>
<presence xmlns=""urn:ietf:params:xml:ns:pidf"" entity=""sip:30000@domain.org""><tuple id=""jfbqop""><status><basic>open</basic></status></tuple></presence>



SIP/2.0 200 OK 
Via: SIP/2.0/UDP 10.134.16.124:6060;received=222.111.253.254;rport=27431;branch=z9hG4bKbyhpbiir 
To: ""Pepe"" <sip:30000@domain.org>;tag=8c4b55287642370d0ef93b43077c07bb.dfc3 
From: ""Pepe"" <sip:30000@domain.org>;tag=zztby 
Call-ID: ntyulbtfdujwidf@ibc-laptop 
CSeq: 367 PUBLISH 
Expires: 25 
SIP-ETag: a.1242204589.7347.1.0 
Server: OpenSIPS (1.6.0dev0-notls (x86_64/linux)) 
Content-Length: 0



### Refresh PUBLISH later:

PUBLISH sip:30000@domain.org SIP/2.0 
Via: SIP/2.0/UDP 10.134.16.124:6060;rport;branch=z9hG4bKwilljvvc 
Max-Forwards: 70 
To: ""Pepe"" <sip:30000@domain.org> 
From: ""Pepe"" <sip:30000@domain.org>;tag=lrtie 
Call-ID: avfpqrukcwbbgwy@ibc-laptop 
CSeq: 749 PUBLISH 
Event: presence 
Expires: 3600 
SIP-If-Match: a.1242204589.7347.1.0 
User-Agent: Twinkle/1.4.2 
Content-Length: 0 



U 2009/05/13 10:50:25.429502 222.111.32.19:5060 -> 222.111.253.254:27431
SIP/2.0 200 OK 
Via: SIP/2.0/UDP 10.134.16.124:6060;received=222.111.253.254;rport=27431;branch=z9hG4bKpghliigp 
To: ""Pepe"" <sip:30000@domain.org>;tag=8c4b55287642370d0ef93b43077c07bb.7d0a 
From: ""Pepe"" <sip:30000@domain.org>;tag=lrtie 
Call-ID: avfpqrukcwbbgwy@ibc-laptop 
CSeq: 749 PUBLISH 
Expires: 25 
SIP-ETag: a.1242204589.7348.1.1 
Server: OpenSIPS (1.6.0dev0-notls (x86_64/linux)) 
Content-Length: 0 
------------------------------------

"	defect	new	minor		phapi	2.2			
