Browse Source

all: fixed matrix doc generation and updates for &defaultdb;

Daniel-Constantin Mierla 13 years ago
parent
commit
0d9eec94ce

+ 1 - 1
modules/dialplan/doc/dialplan_admin.xml

@@ -113,7 +113,7 @@
 		<para>
 		<emphasis>
 			Default value is 
-				<quote>mysql://openser:openserrw@localhost/openser</quote>.
+				<quote>&defaultdb;</quote>.
 		</emphasis>
 		</para>
 		<example>

+ 71 - 1
modules/matrix/README

@@ -44,6 +44,14 @@ Henning Westerholt
 
               6.1. Database setup
 
+   2. Module parameter for database access.
+
+        1. db_url (String)
+        2. matrix_table (String)
+        3. matrix_first_col (string)
+        4. matrix_second_col (string)
+        5. matrix_res_col (string)
+
    List of Examples
 
    1.1. Set db_url parameter
@@ -54,6 +62,11 @@ Henning Westerholt
    1.6. matrix usage
    1.7. reload_matrix usage
    1.8. Example database content - matrix table
+   2.1. Set db_url parameter
+   2.2. Set matrix_table parameter
+   2.3. Set matrix_first_col parameter
+   2.4. Set matrix_second_col parameter
+   2.5. Set matrix_res_col parameter
 
 Chapter 1. Admin Guide
 
@@ -237,4 +250,61 @@ kamctl fifo reload_matrix
 +---------+--------------+---------+
 ...
 
-   <xi:include></xi:include>
+Chapter 2. Module parameter for database access.
+
+   Table of Contents
+
+   1. db_url (String)
+   2. matrix_table (String)
+   3. matrix_first_col (string)
+   4. matrix_second_col (string)
+   5. matrix_res_col (string)
+
+1. db_url (String)
+
+   URL to the database containing the data.
+
+   Default value is "mysql://openserro:openserro@localhost/openser".
+
+   Example 2.1. Set db_url parameter
+...
+modparam("matrix", "db_url", "dbdriver://username:password@dbhost/dbname")
+...
+
+2. matrix_table (String)
+
+   Name of the matrix table for the matrix module.
+
+   Default value is "matrix".
+
+   Example 2.2. Set matrix_table parameter
+...
+modparam("matrix", "matrix_table", "matrix")
+...
+
+3. matrix_first_col (string)
+
+   The row index in the matrix
+
+   Example 2.3. Set matrix_first_col parameter
+...
+modparam("matrix", "matrix_first_col", "first")
+...
+
+4. matrix_second_col (string)
+
+   The column index in the matrix
+
+   Example 2.4. Set matrix_second_col parameter
+...
+modparam("matrix", "matrix_second_col", "second")
+...
+
+5. matrix_res_col (string)
+
+   The resource contained in the matrix
+
+   Example 2.5. Set matrix_res_col parameter
+...
+modparam("matrix", "matrix_res_col", "res")
+...

+ 10 - 0
modules/matrix/doc/matrix_db.xml

@@ -1,3 +1,13 @@
+<?xml version="1.0" encoding='ISO-8859-1'?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+
+<!-- Include general documentation entities -->
+<!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
+%docentities;
+
+]>
+
 <!--
 WARNING:
 This file was autogenerated from the XML source file

+ 1 - 1
modules_k/drouting/doc/drouting_admin.xml

@@ -834,7 +834,7 @@
 		<programlisting format="linespecific">
 ...
 modparam("drouting", "db_url", 
-	"mysql://openser:openserrw@localhost/openser")
+	"&defaultdb;")
 ...
 </programlisting>
 		</example>

+ 1 - 1
modules_k/htable/doc/htable_admin.xml

@@ -304,7 +304,7 @@ modparam("htable", "htable", "c=&gt;size=4;autoexpire=7200;initval=1;")
 		<title>Set <varname>db_url</varname> parameter</title>
 		<programlisting format="linespecific">
 ...
-modparam("htable", "db_url", "mysql://openser:openserrw@localhost/openser")
+modparam("htable", "db_url", "&defaultdb;")
 ...
 </programlisting>
 		</example>

+ 1 - 1
modules_k/msilo/doc/msilo_admin.xml

@@ -101,7 +101,7 @@
 		<para>
 		<emphasis>
 			Default value is 
-			<quote>mysql://openser:openserrw@localhost/openser</quote>.
+			<quote>&defaultdb;</quote>.
 		</emphasis>
 		</para>
 		<example>

+ 1 - 1
modules_k/uac/doc/uac_admin.xml

@@ -368,7 +368,7 @@ modparam("uac","auth_password_avp","$avp(i:12)")
 				<programlisting format="linespecific">
 ...
 modparam("uac", "reg_db_url",
-    "mysql://openser:openserrw@localhost/openser")
+    "&defaultdb;")
 ...
 				</programlisting>
 			</example>

+ 2 - 2
modules_k/xcap_server/doc/xcap_server_admin.xml

@@ -121,7 +121,7 @@
 		<para>
 		<emphasis>
 			Default value is 
-			<quote>mysql://openser:openserrw@localhost/openser</quote>.
+			<quote>&defaultdb;</quote>.
 		</emphasis>
 		</para>
 		<example>
@@ -339,7 +339,7 @@ loadmodule "xcap_server.so"
 
 # ----- xcap_server params -----
 modparam("xcap_server", "db_url",
-	"mysql://openser:openserrw@localhost/openser")
+	"&defaultdb;")
 
 ...