<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Sun, 2011-04-10 at 12:01 +0200, Daniel-Constantin Mierla wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,

can you send the patches using 'diff  -u' (unified format) and attached 
as a file? It is easier to get it and apply it.

If you work on a source tree downloaded from git, you can do as well: 
'git diff modules_k/xcap_server/'

Thanks,
Daniel

On 4/8/11 11:58 PM, Peter Dunkley wrote:
&gt; Hello,
&gt;
&gt; I've been testing with a commercial presence and XCAP client and have
&gt; discovered a bug in the XCAP Server module.
&gt;
&gt; The HTTP responses sent by the XCAP Server module contain a &quot;SIP-ETag:&quot;
&gt; header.  &quot;SIP-ETag:&quot; is the correct header for SIP, but HTTP responses are
&gt; supposed to have an &quot;ETag:&quot; header.  See RFC 2616 section 14.19.
&gt;
&gt; Some clients can do a partial match and work with &quot;SIP-ETag:&quot;, but the one
&gt; I have been testing with is strict and requires the correct header field
&gt; name.
&gt;
&gt; This was a simple fix and I have included a diff below.
&gt;
&gt; Regards,
&gt;
&gt; Peter
&gt;
&gt;
&gt; # diff xcap_server-3.1.3/ xcap_server/
&gt; Common subdirectories: xcap_server-3.1.3/doc and xcap_server/doc
&gt; diff xcap_server-3.1.3/xcap_server.c xcap_server/xcap_server.c
&gt; 553,554c553,554
&gt; &lt;        etag.s = etag_hdr.s + 10; /* 'SIP-ETag: ' */
&gt; &lt;        etag.len = etag_hdr.len - 12; /* 'SIP-ETag: '  '\r\n' */
&gt; ---
&gt;&gt;        etag.s = etag_hdr.s + 6; /* 'ETag: ' */
&gt;&gt;        etag.len = etag_hdr.len - 8; /* 'ETag: '  '\r\n' */
&gt; 657c657
&gt; &lt;                        &quot;SIP-ETag: %.*s\r\n&quot;, s.len, s.s);
&gt; ---
&gt;&gt;                        &quot;ETag: %.*s\r\n&quot;, s.len, s.s);
&gt; 956,957c956,957
&gt; &lt;                etag.s = etag_hdr.s + 10; /* 'SIP-ETag: ' */
&gt; &lt;                etag.len = etag_hdr.len - 12; /* 'SIP-ETag: '  '\r\n' */
&gt; ---
&gt;&gt;                etag.s = etag_hdr.s + 6; /* 'ETag: ' */
&gt;&gt;                etag.len = etag_hdr.len - 8; /* 'ETag: '  '\r\n' */
&gt; 1050c1050
&gt; &lt;                        &quot;SIP-ETag: sr-%d-%d-%d\r\n&quot;, xcaps_init_time,
&gt; my_pid(),
&gt; ---
&gt;&gt;                        &quot;ETag: sr-%d-%d-%d\r\n&quot;, xcaps_init_time, my_pid(),
&gt;

</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>