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