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>
<VirtualHost <a href="http://192.168.3.209:80">192.168.3.209:80</a>><br>
ServerName <a href="http://192.168.3.209">192.168.3.209</a><br>
DocumentRoot /var/www/xcap-root<br>
RewriteEngine On<br>
RewriteRule /xcap-root/(.*) /xcap-root/index.php<br>
ProxyVia On<br>
# SSLEngine On<br>
# SSLCertificateFile /path/to/server.crt<br>
# SSLCertificateKeyFile /path/to//server.key<br>
# SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown<br>
</VirtualHost><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>
<IfModule mod_dir.c><br>
DirectoryIndex index.php<br>
</IfModule><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>
<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>
<?<br>
include("xcap-lib.php");<br>
$XCAPServer = new XCAPServer();<br>
<br>
$XCAPServer->AuthOptions = array(<br>
'dsn' => "mysql://ser:passwd@db/ser",<br>
'table' => "subscriber",<br>
'usernamecol' => "username",<br>
'passwordcol' => "password",<br>
'cryptType' => "none",<br>
);<br>
<br>
$XCAPServer->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->authenticate() && $XCAPServer->authorize()) {<br>
if ($_SERVER['REQUEST_METHOD'] == "GET") {<br>
$XCAPServer->getFile();<br>
} else if ($_SERVER['REQUEST_METHOD'] == "PUT") {<br>
$XCAPServer->putFile();<br>
} else if ($_SERVER['REQUEST_METHOD'] == "DELETE") {<br>
$XCAPServer->deleteFile();<br>
}<br>
#}<br>
?><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>