Browse Source

updated documentation for presence modules

Vaclav Kubart 19 years ago
parent
commit
3d0e12b7d0
3 changed files with 12 additions and 3 deletions
  1. 7 1
      doc/presence/examples.xml
  2. 1 1
      doc/presence/install.xml
  3. 4 1
      doc/presence/presence_book.xml

+ 7 - 1
doc/presence/examples.xml

@@ -62,7 +62,7 @@ mhomed=yes  # usefull for multihomed hosts, small performance penalty
 
 # ------------------ module loading ----------------------------------
 
-# Uncomment this if you want to use SQL database
+loadmodule "/usr/lib/ser/modules/xcap.so"
 loadmodule "/usr/lib/ser/modules/sl.so"
 loadmodule "/usr/lib/ser/modules/avp.so"
 loadmodule "/usr/lib/ser/modules/avpops.so"
@@ -208,6 +208,7 @@ route{
 			}
 			else { # renewal subscription
 				if (!handle_rls_subscription("0")) {
+					lookup_user("To");
 					handle_subscription("registrar");
 				}
 				break;
@@ -288,6 +289,9 @@ RLS module are NOT able to authenticate the user.
 be needed password for registration. You can put that piece of code into
 handling PUBLISH or MESSAGE for their authentication too.
 </para>
+<para>To have this configuration working you have to have initialized database
+with presence tables, silo, domain, etc.
+</para>
 <example><title>Full configuration</title>
 <programlisting><![CDATA[
 debug=3         # debug level (cmd line: -dddddddddd)
@@ -303,6 +307,7 @@ mhomed=yes  # usefull for multihomed hosts, small performance penalty
 
 # ------------------ module loading ----------------------------------
 
+loadmodule "/usr/lib/ser/modules/xcap.so"
 loadmodule "/usr/lib/ser/modules/sl.so"
 loadmodule "/usr/lib/ser/modules/avp.so"
 loadmodule "/usr/lib/ser/modules/avpops.so"
@@ -537,6 +542,7 @@ route{
 				# FIXME: better will be test like existing_rls_subscription() 
 				#        and existing_subscription("registrar")
 				if (!handle_rls_subscription("0")) {
+					lookup_user("To");
 					handle_subscription("registrar");
 				}
 				break;

+ 1 - 1
doc/presence/install.xml

@@ -53,7 +53,7 @@ no prefix parameter given - default value is used: /usr/local/)
 
 	<listitem><para>Compile and install SER with presence modules</para>
 	<para><userinput>cd ..</userinput></para>
-	<para><userinput>make install include_modules="pa rls mysql" prefix=/base/ser/directory</userinput></para>
+	<para><userinput>make install include_modules="dialog pa rls presence_b2b xcap mysql xmlrpc" prefix=/base/ser/directory</userinput></para>
 	</listitem>
 </orderedlist>
 </para>

+ 4 - 1
doc/presence/presence_book.xml

@@ -9,7 +9,7 @@ http://www.sagehill.net/docbookxsl/ValidXinclude.htm -->
 
 
 <article>
-	<title>SER presence handbook</title>
+	<title>SER presence handbook (v. 5) </title>
 	
 	<include xmlns="http://www.w3.org/2001/XInclude" href="intro.xml"/>
 	<include xmlns="http://www.w3.org/2001/XInclude" href="xcap.xml"/>
@@ -18,6 +18,9 @@ http://www.sagehill.net/docbookxsl/ValidXinclude.htm -->
 	<include xmlns="http://www.w3.org/2001/XInclude" href="../../modules/pa/doc/pa.xml"/>
 	<include xmlns="http://www.w3.org/2001/XInclude" href="../../modules/rls/doc/rls.xml"/>
 	<include xmlns="http://www.w3.org/2001/XInclude" href="../../modules/presence_b2b/doc/presence_b2b.xml"/>
+	<include xmlns="http://www.w3.org/2001/XInclude" href="../../modules/xcap/doc/xcap.xml"/>
+<!--	<include xmlns="http://www.w3.org/2001/XInclude"
+href="../../modules/xcap/doc/xcap.xml"/> -->
 <!--	</section>-->
 	<include xmlns="http://www.w3.org/2001/XInclude" href="examples.xml"/>