<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am using SER 2.0 and OpenXCAP 0.9.7 
and</FONT><FONT face=Arial size=2>&nbsp;facing problem 
in&nbsp;implementing&nbsp;Presence Authorization using XCAP in my 
project.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><U>I have done the following:-</U></FONT></DIV>
<DIV><U><FONT face=Arial size=2></FONT></U>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><U>User A &nbsp;&nbsp;&nbsp; 
(User_A.pcap(attachment)):</U> </STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>1.Registered with SER.</FONT></DIV>
<DIV><FONT face=Arial size=2>2.Published A's info into SER.</FONT></DIV>
<DIV><FONT face=Arial size=2>3.Subscribed for it's 'presence.watcher 
info'</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>4.Transferred presence_rules.xml(which contains 
rules to allow B to see his presence status)&nbsp;to OpenXcap.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
<U><STRONG>Following debugging messages were printed (while transferring 
presence_rules file ) in OpenXcap:</STRONG></U></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
**************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Feb&nbsp; 6 
12:15:40 sips openxcap[2557]: [-] Starting factory 
&lt;twisted.web.xmlrpc._QueryFactory instance at 
0xb3cde68c&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Feb&nbsp; 6 
12:15:40 sips openxcap[2557]: [Uninitialized] error: Error while notifying 
OpenSER management interface for 'user' a@: Connection was refused by other 
side: 111: Connection refused.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Feb&nbsp; 6 12:15:40 sips openxcap[2557]: [Uninitialized] a@ from 172.16.7.187 
"PUT <A 
href="http://172.16.7.204/xcap-root/pres-rules/users/a/presence-rules.xml">http://172.16.7.204/xcap-root/pres-rules/users/a/presence-rules.xml</A><FONT 
size=1><FONT size=2>" 201 0 - 
unknown<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Feb&nbsp; 6 12:15:40 sips 
openxcap[2557]: [Uninitialized] Stopping factory 
&lt;twisted.web.xmlrpc._QueryFactory instance at 
0xb3cde68c&gt;</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
*************************************</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG><U>User B &nbsp;&nbsp;&nbsp; 
(User_B.pcap(attachment)):</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>5.Registered with SER.</FONT></DIV>
<DIV><FONT face=Arial size=2>6.Published B's info into SER.</FONT></DIV>
<DIV><FONT face=Arial size=2>7.Sent Subscribe request for A's presence 
status&nbsp;to SER.</FONT></DIV>
<DIV><FONT face=Arial size=2>8.Received 200 ok for subscribe 
request.</FONT></DIV>
<DIV><FONT face=Arial size=2>9.Received Notify request with status as 
pending</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>10.<STRONG>SER</STRONG> intimated User A about User 
B's subscription.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;<U><STRONG>Following debugging messages were printed&nbsp;in 
SER:</STRONG></U></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;***************************&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;5(5114) 
find_export_record: found &lt;xcap_query&gt; in module xcap 
[/home/ser/SER2.0/lib/ser/modules/xcap.so]<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;5(5114) curl error: 22<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;5(5114) XCAP problems for uri 
'http://172.16.7.204:8000/xcap-root/pres-rules/users/a/presence-rules.xml'</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
***************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>SER did not send User A's presence status to User 
B(Notify status was pending).</FONT></DIV>
<DIV><FONT face=Arial size=2>It seems to be SER did not interact 
with&nbsp;OpenXcap server.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is my Presence Authorization configuration 
settings in ser.cfg</FONT></DIV>
<DIV><FONT face=Arial 
size=2>**************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>modparam("pa", "use_db", 1)<BR>modparam("pa", 
"offline_winfo_timer", 600)<BR>#modparam("pa", "use_offline_winfo", 
1)<BR>modparam("pa", "offline_winfo_expiration", 600)<BR>modparam("pa", 
"db_url", "mysql://ser:heslo@127.0.0.1:3306/ser")<BR># mode of PA authorization: 
none, implicit or xcap<BR>modparam("pa", "auth", 
"<STRONG>xcap</STRONG>")<BR>modparam("pa", "winfo_auth", 
"none")<BR>modparam("pa", "use_callbacks", 1)<BR>modparam("pa", 
"accept_internal_subscriptions", 0)<BR>modparam("pa", 
"max_subscription_expiration", 120)<BR>modparam("pa", "timer_interval", 
1)<BR>modparam("pa", "watcherinfo_notify", 1)<BR>modparam("pa", 
"async_auth_queries", 1)<BR>modparam("pa", "pres_rules_file", 
"presence-rules.xml")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>modparam("xcap", "<STRONG>xcap_root</STRONG>", "<A 
href="http://172.16.7.204:8000/xcap-root">http://172.16.7.204:8000/xcap-root</A>")</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>modparam("usrloc", "db_mode", 1)</FONT></DIV>
<DIV><FONT face=Arial 
size=2>**************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please find the attached file NW_Captures.zip which 
contains&nbsp;two ethereal captures(User_A.pcap &amp; User_B.pcap).</FONT></DIV>
<DIV><FONT face=Arial size=2>Could you help me to resolve this 
problem?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Guhan</FONT></DIV></BODY></HTML>