<div>Hi,</div>
<div>I looked at the codes.</div>
<div>The send_full_notify() api in the rls/notif.c sends the notify msg. </div>
<div>That api is called in the rls_handle_subscribe().</div>
<div>It is checking the rls_presentity table if the list has presence states.</div>
<div>The rls_presentity table is written in the rls_handle_notify() which is called if the server receives a notify msg.</div>
<div>The server recieves a subscribe(list) msg , sends a 200 msg, and a notify msg.</div>
<div>I do not think the notify msg will never have the presence states. </div>
<div>Is this a bug in the codes or am I missing something?</div>
<div> </div>
<div>Thanks.</div>
<div>Jeon</div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Mon, Oct 27, 2008 at 10:49 AM, Yoo Chan Jeon <span dir="ltr"><<a href="mailto:yoojeon@gmail.com">yoojeon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Thanks Anca.</div>
<div> </div>
<div>I copied the xml file to the xcap.doc column. I put the username(list), doc_type(4), and domain(domain) </div>
<div>
<div>I published the joe, bob and tom's state. </div>
<div>I sent a subscribe msg to the <a href="mailto:list@domain" target="_blank">list@domain</a>.</div>
<div>I received the notify msg with the following xml message body.</div>
<div>I got a list of uri, but the xml body did not have a each uri's state.</div>
<div>I checekd the presentity database. it has the joe, bob, and tom presentity state.</div>
<div>What am I missing?</div>
<div> </div></div>
<div> </div>
<div>
<div class="Ih2E3d"> <?xml version="1.0" encoding="UTF-8"?><br></div> <list uri="sip:list@domain" xmlns="urn:ietf:params:xml:ns:rlmi" version="1" fullState="true"><br>
<resource uri="sip: <a href="mailto:joe@domain" target="_blank">joe@domain"</a>> </div>
<div> <resource uri="sip: bob@domain"></div>
<div> <resource uri="sip: tom<a href="mailto:tom@domain%22" target="_blank">@domain"</a>> </div>
<div> </list></div>
<div><br>Thanks.</div>
<div>Jeon</div>
<div>
<div></div>
<div class="Wj3C7c">
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Thu, Oct 23, 2008 at 7:08 AM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@voice-system.ro" target="_blank">anca@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Jeon,<br><br>The column was changed from type text to type blob because there was a problem with postgres db. However the text is not transformed into binary but written as text and extracted as text.<br>
And yes, you should put the whole xml in the doc column.<br><br>regards,<br>Anca<br><br>Yoo Chan Jeon wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi, Anca<br> Thanks for your information.<br>I was busy doing other issues in the presence server.<br>Now I am back to this issue.<br>I checked the xcap data structure, and source codes.<br>The xcap doc column's type is a BLOB in the database. But I looked at the codes. It seems to save the doc as a string not a BLOB.<br>
I am still confused.<br>How do I save the xml sample you wrote to the doc column? I mean the list.<br>Should I put the whole xml to the doc column in the xcap table?<br> Thanks.<br> Jeon<br><br></div>
<div> On Thu, Oct 2, 2008 at 9:38 AM, Anca Vamanu <<a href="mailto:anca@voice-system.ro" target="_blank">anca@voice-system.ro</a> <mailto:<a href="mailto:anca@voice-system.ro" target="_blank">anca@voice-system.ro</a>>> wrote:<br>
<br> Hi Jeon,<br><br> If you want to simulate an xcap server for rls you can do that by<br> doing the following:<br> 1. set integrated_xcap_server parameter in rls module to 1.<br> 2. write the list in xcap table , putting value '4' in 'doc_type'<br>
column.<br> You should complete only columns: username, domain, doc and<br> doc_type, because these are the only ones used by the rls server.<br> The list must have the format described in RFC 4826<br> <<a href="http://www.ietf.org/rfc/rfc4826.txt" target="_blank">http://www.ietf.org/rfc/rfc4826.txt</a>>. For the example that you<br>
gave it would look something like this:<br><br> <?xml version="1.0" encoding="UTF-8"?><br> <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"><br> <list name="SIMPLE Buddy List"><br>
<display-name>SIMPLE Buddy List</display-name><br></div> <entry uri="sip: joe@domain <mailto:<a href="mailto:joe@domain" target="_blank">joe@domain</a> <mailto:<a href="mailto:joe@domain" target="_blank">joe@domain</a>>>">
<div><br> <display-name>joe</display-name><br> </entry><br></div> <entry uri="sip: bob@domain <mailto:<a href="mailto:joe@domain" target="_blank">joe@domain</a> <mailto:<a href="mailto:joe@domain" target="_blank">joe@domain</a>>>">
<div><br> <display-name>bob</display-name><br> </entry><br></div> <entry uri="sip:tom@domain <mailto:<a href="mailto:tom@domain" target="_blank">tom@domain</a> <mailto:<a href="mailto:tom@domain" target="_blank">tom@domain</a>>>">
<div><br> <display-name>tom</display-name><br> </entry><br> </list></resource-lists><br><br> regards,<br> Anca Vamanu<br><br> Yoo Chan Jeon wrote:<br><br><br> Hi,<br> I just want to know how RLS handles SUBSCRIBE messages without<br>
using XCAP.<br> I assume that the server already has the list information.<br> I want send the SUBSRIBE message with resource list format:<br><br> SUBSCRIBE sip:list@domain<br> .<br> .<br>
supported:eventlist<br> Accept:application/rlmi+xml<br> Accept:multipart/related<br> I added rls, presence, presence_xml, and pua modlues in the<br> configuration file.<br> I do not have any problems to run the server.<br>
Which database should I add list@doamin <mailto:<a href="mailto:list@doamin" target="_blank">list@doamin</a><br> <mailto:<a href="mailto:list@doamin" target="_blank">list@doamin</a>>> to?<br><br> How do I add the resource list?<br>
What kind of format do I need to add a list if I want to add<br></div> joe@domain <mailto:<a href="mailto:joe@domain" target="_blank">joe@domain</a> <mailto:<a href="mailto:joe@domain" target="_blank">joe@domain</a>>>, bob@domain<br>
<mailto:<a href="mailto:bob@domain" target="_blank">bob@domain</a> <mailto:<a href="mailto:bob@domain" target="_blank">bob@domain</a>>>, tom@domain<br> <mailto:<a href="mailto:tom@domain" target="_blank">tom@domain</a> <mailto:<a href="mailto:tom@domain" target="_blank">tom@domain</a>>> ?
<div><br><br> Do you have some kind of examples?<br><br> Thanks you.<br> Jeon<br><br> ------------------------------------------------------------------------<br><br> _______________________________________________<br>
Users mailing list<br></div> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>>
<div><br> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br> <br><br><br></div></blockquote><br></blockquote></div>
<br></div></div></blockquote></div><br>