<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">

                                                                <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">


                                                                
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META HTTP-EQUIV="EXPIRESABSOLUTE" CONTENT="Tue, 01 Jun 1999 12:00:00 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<TITLE></TITLE>

<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
                                                        <BODY >
                                                                <DIV>
                                                                <DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Hi Samuel,<BR><BR>Did you manage to get message rules from 
im-rules file ?<BR>Do you know which path does SER check if you write the 
authorize_message command as in below ?<BR><BR>if 
(authorize_message("im-rules.xml")){<BR><BR>If you managed to make it work, 
which client do you use for this ? Did you make any change in the source 
?<BR><BR>Thanks,<BR>ilker<BR><BR>-----Original Message-----<BR>From: samuel [<A 
href="mailto:samu60@gmail.com">mailto:samu60@gmail.com</A>]<BR>Sent: Tuesday, 
May 16, 2006 10:53 AM<BR>To: &#304;lker Aktuna (Ko&#231;.net)<BR>Cc: Vaclav Kubart; 
serusers@iptel.org<BR>Subject: Re: [Serusers] PA error sending 
notifies<BR><BR>If you are using XCAP authentication for MESSAGEs, there's a 
function called authorize_message that needs to have as parameter the file name 
of the IM ruleset.<BR>For user sam, in xcap-root/im-rules/users/sam/im-rules.xml 
there are the rules for this function. The XML file is similar to the 
presence-rules but has important differences (correct me if I'm 
wrong,<BR>Vaclav!!!):<BR>*it only has a blacklist parameter (no whitelist!!) 
*the namespace is different (so be carefull in copy&amp;paste from 
the<BR>presence-rules!!!) and, as Vaclav poitned out "proprietary" from 
iptel.<BR><BR><BR>About the structure I have: x86 debian testing. Libraries 
versions I don't know exactly but the ones in the testing repository EXCEPT a 
library which I had to get for serweb from the stable version...but it's not 
affecting SER part.<BR><BR>Samuel.<BR>2006/5/16, &#304;lker Aktuna&nbsp;&nbsp; (Ko&#231;. 
net&nbsp; ) &lt;ilkera@koc.net&gt;:<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
Hi,<BR>&gt;<BR>&gt; What did&nbsp; you mean by following:<BR>&gt;<BR>&gt; 
&gt;Instead of<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; if (authorize_message("<A 
href="http://localhost/xcap">http://localhost/xcap</A>")) {<BR>&gt; &gt;<BR>&gt; 
&gt;there should be<BR>&gt; &gt;<BR>&gt; &gt;if 
(authorize_message("im-rules.xml")){<BR>&gt;<BR>&gt; Btw, did you receive my 
email with following questions :<BR>&gt;<BR>&gt; &gt;&gt; I have the same 
problem with notification and other presence<BR>&gt; &gt;&gt; messages<BR>&gt; 
with you.<BR>&gt; &gt;&gt; Can you tell me which Linux distribution you are 
using Ser on ?<BR>&gt; &gt;&gt; Also please include version numbers for 
libraries that are required<BR>&gt; &gt;&gt; by<BR>&gt; Ser.<BR>&gt; 
&gt;&gt;<BR>&gt; &gt;&gt; I am trying to find similarities between yours and my 
ser server.<BR>&gt;<BR>&gt; Regards,<BR>&gt; ilker<BR>&gt;<BR>&gt; -----Original 
Message-----<BR>&gt; From: serusers-bounces@iptel.org<BR>&gt; [<A 
href="mailto:serusers-bounces@iptel.org">mailto:serusers-bounces@iptel.org</A>] 
On Behalf Of samuel<BR>&gt; Sent: Monday, May 15, 2006 7:13 PM<BR>&gt; To: 
Vaclav Kubart<BR>&gt; Cc: serusers@iptel.org<BR>&gt; Subject: Re: [Serusers] PA 
error sending notifies<BR>&gt;<BR>&gt; Let's see if I can finish the e-mail 
before gmail decides it's<BR>&gt; enough...:P<BR>&gt;<BR>&gt; 006/5/15, samuel 
&lt;samu60@gmail.com&gt;:<BR>&gt; &gt; Following with the 
handbook...<BR>&gt;<BR>&gt; &gt;<BR>&gt; &gt; the authorize message in the 
sample confgi files has as parameter<BR>&gt; &gt; the xcap root while it should 
have the xml file containing the auth.rules.<BR>&gt;<BR>&gt;<BR>&gt; Instead 
of<BR>&gt;<BR>&gt; &gt;<BR>&gt; &gt; if (authorize_message("<A 
href="http://localhost/xcap">http://localhost/xcap</A>")) {<BR>&gt;<BR>&gt; 
there should be<BR>&gt;<BR>&gt; if 
(authorize_message("im-rules.xml")){<BR>&gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
&gt;<BR>&gt; &gt; 2006/5/15, samuel &lt;samu60@gmail.com&gt;:<BR>&gt; &gt; &gt; 
First of all, I have to thank you for the time you spent writing<BR>&gt; &gt; 
&gt; the handbook, it's really really helpfull....I wish all SER<BR>&gt; &gt; 
&gt; related parts had this docs..<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; I'll try 
to get familiar with the code of the notifications and<BR>&gt; &gt; &gt; I'll 
try to find something....which I don't thing so :P. I'll also<BR>&gt; &gt; &gt; 
merge the two functionalities (proxy + presence) in a unique<BR>&gt; &gt; &gt; 
config file to see if it works.<BR>&gt; &gt; &gt; I hope I can provide more info 
these following days.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; About the missing 
things in the presence handbook, probably the<BR>&gt; &gt; &gt; most important 
is the new xcap module because in the sample config<BR>&gt; &gt; &gt; files it's 
missing.<BR>&gt; &gt; &gt; Another thing is that in the XCAP structure 
description, the<BR>&gt; &gt; &gt; im-rules directory is missing, which might 
lead to<BR>&gt; &gt; &gt; misunderstandings. I downloaded the structure from the 
iptel's ftp<BR>&gt; &gt; &gt; and inside the im-rules there were several files 
corresponding to<BR>&gt; &gt; &gt; presence-rules which should be either removed 
or updated with the<BR>&gt; &gt; &gt; im-rules namespaces and removing the 
whitelist.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Thanks,<BR>&gt; &gt; &gt;<BR>&gt; 
&gt; &gt; Samuel.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; 
&gt; &gt;<BR>&gt; &gt; &gt; 2006/5/15, Vaclav Kubart 
&lt;vaclav.kubart@iptel.org&gt;:<BR>&gt; &gt; &gt; &gt; Hi,<BR>&gt; &gt; &gt; 
&gt; this problem I'm trying to solve with Ilker Aktuna. I try to<BR>&gt; &gt; 
&gt; &gt; simulate it on my machine and let you know. Or if you solve 
it,<BR>&gt; &gt; &gt; &gt; please<BR>&gt; let me know.<BR>&gt; &gt; &gt; &gt; 
:-)<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Please, could you tell me, 
what things you were missing in<BR>&gt; &gt; &gt; &gt; presence handbook? I'm 
trying to do it as useful as possible and<BR>&gt; &gt; &gt; &gt; whatever ideas 
are welcome...<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vaclav<BR>&gt; &gt; &gt; 
&gt;<BR>&gt; &gt; &gt; &gt; On Mon, May 15, 2006 at 01:38:02PM +0200, samuel 
wrote:<BR>&gt; &gt; &gt; &gt; &gt; Hi all,<BR>&gt; &gt; &gt; &gt; &gt;<BR>&gt; 
&gt; &gt; &gt; &gt; I recently had a few hours and start installing the 
presence<BR>&gt; &gt; &gt; &gt; &gt; staff and I have to say that I have it 
amost workign thanks to<BR>&gt; &gt; &gt; &gt; &gt; the presence handbook, the 
mailing list and, obviously, a<BR>&gt; &gt; &gt; &gt; &gt; little bit of code 
review..:P<BR>&gt; &gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &gt; I have two 
SER instances, the "proxy" and the "presence server"<BR>&gt; &gt; &gt; &gt; &gt; 
(both with last CVS code) co-located in the same host and I<BR>&gt; &gt; &gt; 
&gt; &gt; have an issue when the "presence server" tries to send the<BR>&gt; 
&gt; &gt; &gt; &gt; NOTIFY requests. Below there's an attched log showing 
the<BR>&gt; &gt; &gt; &gt; &gt; problem (on IP a.b.c.d I've got the two 
instances):<BR>&gt; &gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &gt; 3(30682) 
DEBUG notify.c:378: sending winfo notify<BR>&gt; &gt; &gt; &gt; &gt; 3(30682) 
DEBUG notify.c:383: winfo document created<BR>&gt; &gt; &gt; &gt; &gt; 3(30682) 
DEBUG notify.c:391: creating headers<BR>&gt; &gt; &gt; &gt; &gt; 3(30682) DEBUG 
notify.c:398: headers created<BR>&gt; &gt; &gt; &gt; &gt; 3(30682) 
DEBUG:tm:t_uac:<BR>&gt; &gt; &gt; &gt; &gt;<BR>&gt; 
next_hop=&lt;sip:a.b.c.d;transport=tcp;ftag=c77b3f33;lr=on&gt;<BR>&gt; &gt; &gt; 
&gt; &gt; 3(30682) t_uac: no socket found<BR>&gt; &gt; &gt; &gt; &gt; 3(30682) 
DEBUG notify.c:402: request sent with result -7<BR>&gt; &gt; &gt; &gt; &gt; 
3(30682) ERROR: notify.c:404: Can't send watcherinfo<BR>&gt; &gt; &gt; &gt; &gt; 
notification (-7)<BR>&gt; &gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &gt; This 
problem appears in other places, not only in the<BR>&gt; &gt; &gt; &gt; &gt; 
notifications for winfo so probably there's somthing in the<BR>&gt; &gt; &gt; 
&gt; &gt; selection of the outgoing socket directing to the local IP.<BR>&gt; 
&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; &gt; &gt;From the proxy part I just 
ust t_forward_nonack for the "SIMPLE"<BR>&gt; &gt; &gt; &gt; &gt; messages with 
record route....maybe adding the port in the<BR>&gt; &gt; &gt; &gt; &gt; record 
route should help?<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;</FONT> 
</P>
<!--445D5241795C-->
<br><br><a href="http://387555.sigclick.mailinfo.com/sigclick/010A000C/0406440E/05054B0B/62279138.jpg"><img src="http://387555.signature1.mailinfo.com/confirm2.6/010A000C/0406440E/05054B0B/62279138.jpg" border="0" nosend="1"></a><!--445D5241795C//--></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></BODY></HTML>