hai,<br>
<br>
We are trying to setup xcap server
(<a href="http://download.dns-hosting.info/XCAP/">http://download.dns-hosting.info/XCAP/</a>) with no presence
functionality. we would like to use this server to store, retrieve,
modify the contact/group list documents at the server.<br>
<br>
We have followed the instructions given for installation in the site(<a href="http://download.dns-hosting.info/XCAP/">http://download.dns-hosting.info/XCAP/</a>).<br>
<br>
<span style="text-decoration: underline; font-weight: bold;">Installation instructions</span><br>
<span style="text-decoration: underline; font-weight: bold;"><br>
Setup php</span> (Skipped this part as we are not using any
authentication and also commented authentication check code in
index.php(given below) file of xcap-server)<br>
<span style="text-decoration: underline; font-weight: bold;"><span style="text-decoration: underline;"><span style="font-weight: bold;"><br>
</span></span>Setup Apache web server(no ssl support)</span><br>
Create a virtual host for Apache server as follows:<br>
&lt;VirtualHost <a href="http://192.168.3.209:80">192.168.3.209:80</a>&gt;<br>
&nbsp;&nbsp;&nbsp; ServerName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://192.168.3.209">192.168.3.209</a><br>
&nbsp;&nbsp;&nbsp; DocumentRoot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/www/xcap-root<br>
&nbsp;&nbsp;&nbsp; RewriteEngine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On<br>
&nbsp;&nbsp;&nbsp; RewriteRule&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /xcap-root/(.*) /xcap-root/index.php<br>
&nbsp;&nbsp;&nbsp; ProxyVia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On<br>
#&nbsp;&nbsp;&nbsp; SSLEngine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On<br>
#&nbsp;&nbsp;&nbsp; SSLCertificateFile&nbsp;&nbsp;&nbsp; /path/to/server.crt<br>
#&nbsp;&nbsp;&nbsp; SSLCertificateKeyFile /path/to//server.key<br>
#&nbsp;&nbsp;&nbsp; SetEnvIf User-Agent &quot;.*MSIE.*&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nokeepalive ssl-unclean-shutdown<br>
&lt;/VirtualHost&gt;<br>
<br>
Enable php as scripting language and add index.php to the list of index files.<br>
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so<br>
&lt;IfModule mod_dir.c&gt;<br>
&nbsp;&nbsp;&nbsp; DirectoryIndex index.php<br>
&lt;/IfModule&gt;<br>
<br>
Make sure the user under which the Apache server runs has the rights to<br>
write into the root directory of the virtual host:<br>
chmod -R g+w /var/www/xcap-root<br>
chown -R apache /var/www/xcap-root<br>
&nbsp;<br>
<span style="text-decoration: underline;">Setup SIP User Agent</span> (Skipped this part, as we are facing problems in setup of ser as presence agent)<br>
<br>
<span style="font-weight: bold;">Setup XCAP server</span><br>
Create a file index.php under the xcap-root directory and change the<br>
database connection details to the place where SER subscriber table is<br>
located and add the IP addresses of the SER PA server in the trusted list:<br>
&lt;?<br>
include(&quot;xcap-lib.php&quot;);<br>
$XCAPServer = new XCAPServer();<br>
<br>
$XCAPServer-&gt;AuthOptions = array(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'dsn'&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; =&gt; &quot;mysql://ser:passwd@db/ser&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'table'&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; =&gt; &quot;subscriber&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'usernamecol' =&gt; &quot;username&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'passwordcol' =&gt; &quot;password&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'cryptType'&nbsp;&nbsp; =&gt; &quot;none&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<br>
<br>
$XCAPServer-&gt;trustedPeers = array('<a href="http://21.23.228.49">21.23.228.49</a>','<a href="http://21.23.228.46">21.23.228.46</a>');<br>
<br>
#if ($XCAPServer-&gt;authenticate() &amp;&amp; $XCAPServer-&gt;authorize()) {<br>
&nbsp;&nbsp;&nbsp; if ($_SERVER['REQUEST_METHOD'] == &quot;GET&quot;) {<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$XCAPServer-&gt;getFile();<br>
&nbsp;&nbsp;&nbsp; } else if ($_SERVER['REQUEST_METHOD'] == &quot;PUT&quot;) {<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$XCAPServer-&gt;putFile();<br>
&nbsp;&nbsp;&nbsp; } else if ($_SERVER['REQUEST_METHOD'] == &quot;DELETE&quot;) {<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$XCAPServer-&gt;deleteFile();<br>
&nbsp;&nbsp;&nbsp; }<br>
#}<br>
?&gt;<br>
<br>
In effect, we are configuring apache server to work as xcap server.<br>
<br>
How to ADD/RETRIEVE a contact list file to/from the XCAP server?<br>
<br>
Any help is greatly appreciated.<br><br>
Thanks<br>
Vinay G<br>