2
0
Эх сурвалжийг харах

dialog Update README, add section IDs for parameters and functions, fix a few typos

Olle E. Johansson 9 жил өмнө
parent
commit
f6e52017d6

+ 66 - 54
modules/dialog/README

@@ -22,6 +22,12 @@ Alex Balashov
 
 
    <[email protected]>
    <[email protected]>
 
 
+Edited by
+
+Olle E. Johansson
+
+   <[email protected]>
+
    Copyright © 2006 Voice Sistem SRL
    Copyright © 2006 Voice Sistem SRL
 
 
    Copyright © 2011 Carsten Bock, http://www.ng-voice.com
    Copyright © 2011 Carsten Bock, http://www.ng-voice.com
@@ -380,8 +386,8 @@ Chapter 1. Admin Guide
 
 
    Kamailio can behave as a stateful proxy through the TM module. However,
    Kamailio can behave as a stateful proxy through the TM module. However,
    "stateful" in this context refers to transaction state, not dialog
    "stateful" in this context refers to transaction state, not dialog
-   state. Certain applications benefit from the proxy's awareness of
-   "calls", not just SIP transactions.
+   state. Certain applications may benefit from an awareness of "calls" in
+   the proxy, not just SIP transactions.
 
 
    For example, a common need is to limit the number of calls that can be
    For example, a common need is to limit the number of calls that can be
    made concurrently by an endpoint, account, user group, etc. In order to
    made concurrently by an endpoint, account, user group, etc. In order to
@@ -391,14 +397,14 @@ Chapter 1. Admin Guide
    common application discussed for illustrative purposes; there are many
    common application discussed for illustrative purposes; there are many
    others.
    others.
 
 
-   The dialog module provides dialog awareness for the Kamailio proxy. Its
-   functionality is to keep track of the current dialogs, to offer
+   The dialog module provides dialog awareness for the Kamailio proxy.
+   It's functionality is to keep track of the current dialogs, to offer
    information about them (e.g. how many dialogs are active), and to
    information about them (e.g. how many dialogs are active), and to
    manage various characteristics of dialogs. The module exports several
    manage various characteristics of dialogs. The module exports several
-   functions that could be used directly from the configuration route
-   script.
+   functions that can be used directly from the configuration route script
+   as well as functions for the RPC interface.
 
 
-   This module also provides a foundational API on which to build more
+   This module also provides a API foundation on which to build more
    complex dialog-oriented functionality in other Kamailio modules.
    complex dialog-oriented functionality in other Kamailio modules.
 
 
 2. How it works
 2. How it works
@@ -418,7 +424,7 @@ Chapter 1. Admin Guide
 
 
    Dialog profiling is a mechanism that helps in classifying, sorting and
    Dialog profiling is a mechanism that helps in classifying, sorting and
    keeping track of certain types of dialogs. The classification criteria
    keeping track of certain types of dialogs. The classification criteria
-   can be any attributes desired by the user; they can come from SIP
+   can be any attributes desired by the administrator; it can be SIP
    message attributes, other pseudo-variables, custom values, etc. Dialogs
    message attributes, other pseudo-variables, custom values, etc. Dialogs
    can be dynamically added into one or more profile tables. Logically,
    can be dynamically added into one or more profile tables. Logically,
    each profile table can have a special meaning (like dialogs outside the
    each profile table can have a special meaning (like dialogs outside the
@@ -537,7 +543,7 @@ modparam("dialog", "enable_stats", 0)
    larger table is much faster but consumes more memory. The hash size
    larger table is much faster but consumes more memory. The hash size
    must be a power of two.
    must be a power of two.
 
 
-   IMPORTANT: If dialogs' information should be stored in a database, a
+   IMPORTANT: If dialog information should be stored in a database, a
    constant hash_size should be used, otherwise the restoring process will
    constant hash_size should be used, otherwise the restoring process will
    not take place. If you really want to modify the hash_size, you must
    not take place. If you really want to modify the hash_size, you must
    delete all table's rows before restarting the server.
    delete all table's rows before restarting the server.
@@ -661,8 +667,8 @@ modparam("dialog", "detect_spirals", 1)
 
 
 5.10. db_url (string)
 5.10. db_url (string)
 
 
-   If you want to store the information about the dialogs in a database, a
-   database URL must be specified.
+   In order to store information about dialogs in a database, a database
+   URL must be specified.
 
 
    Default value is "mysql://kamailio:kamailiorw@localhost/kamailio".
    Default value is "mysql://kamailio:kamailiorw@localhost/kamailio".
 
 
@@ -679,7 +685,7 @@ modparam("dialog", "db_url", "dbdriver://username:password@dbhost/dbname")
    The supported modes are:
    The supported modes are:
      * 0 - NO_DB - the memory content is not flushed into DB;
      * 0 - NO_DB - the memory content is not flushed into DB;
      * 1 - REALTIME - any dialog information changes will be reflected
      * 1 - REALTIME - any dialog information changes will be reflected
-       into the database immediatly.
+       into the database immediately.
      * 2 - DELAYED - the dialog information changes will be flushed into
      * 2 - DELAYED - the dialog information changes will be flushed into
        DB periodically, based on a timer routine.
        DB periodically, based on a timer routine.
      * 3 - SHUTDOWN - the dialog information will be flushed into DB only
      * 3 - SHUTDOWN - the dialog information will be flushed into DB only
@@ -694,12 +700,13 @@ modparam("dialog", "db_mode", 1)
 
 
 5.12. db_update_period (integer)
 5.12. db_update_period (integer)
 
 
-   The interval (seconds) at which to update dialogs' information, if you
-   chose to store the dialogs' info at a given interval. Too short an
-   interval will generate intensive database operations, while an
-   excessively long one will miss dialogs with a short lifetime.
+   The interval (seconds) at which to update dialogs' information, if the
+   server is configured to store the dialog information at a given
+   interval. Too short an interval will generate intensive database
+   operations, while an excessively long one will miss dialogs with a
+   short lifetime.
 
 
-   Default value is "60".
+   Default value is "60" seconds.
 
 
    Example 1.12. Set db_update_period parameter
    Example 1.12. Set db_update_period parameter
 ...
 ...
@@ -724,8 +731,8 @@ modparam("dialog", "db_fetch_rows", 500)
 
 
 5.14. db_skip_load (integer)
 5.14. db_skip_load (integer)
 
 
-   Set db_skip_load to 1, to skip the loading of dialogs from the database
-   alltogether.
+   Set db_skip_load to 1, to skip the loading of dialog data from the
+   database.
 
 
    Default value is "0" ( not skipped ).
    Default value is "0" ( not skipped ).
 
 
@@ -736,8 +743,7 @@ modparam("dialog", "db_skip_load", 1)
 
 
 5.15. table_name (string)
 5.15. table_name (string)
 
 
-   If you want to store the information about the dialogs in a database a
-   table name must be specified.
+   Database table name used for storing dialog information.
 
 
    Default value is "dialog".
    Default value is "dialog".
 
 
@@ -748,7 +754,7 @@ modparam("dialog", "table_name", "my_dialog")
 
 
 5.16. callid_column (string)
 5.16. callid_column (string)
 
 
-   The column name in the database to store the dialogs' callid.
+   The column name in the database to store the dialog call-id.
 
 
    Default value is "callid".
    Default value is "callid".
 
 
@@ -759,7 +765,8 @@ modparam("dialog", "callid_column", "callid_c_name")
 
 
 5.17. from_uri_column (string)
 5.17. from_uri_column (string)
 
 
-   The column name in the database to store the caller's sip address.
+   The column name in the database to store the caller's SIP address
+   (URI).
 
 
    Default value is "from_uri".
    Default value is "from_uri".
 
 
@@ -770,8 +777,8 @@ modparam("dialog", "from_uri_column", "from_uri_c_name")
 
 
 5.18. from_tag_column (string)
 5.18. from_tag_column (string)
 
 
-   The column name in the database to store the From tag from the INVITE
-   request.
+   The column name in the database to store the From header tag from the
+   INVITE request.
 
 
    Default value is "from_tag".
    Default value is "from_tag".
 
 
@@ -782,7 +789,8 @@ modparam("dialog", "from_tag_column", "from_tag_c_name")
 
 
 5.19. to_uri_column (string)
 5.19. to_uri_column (string)
 
 
-   The column name in the database to store the callee's sip address.
+   The column name in the database to store the callee's SIP address
+   (URI).
 
 
    Default value is "to_uri".
    Default value is "to_uri".
 
 
@@ -793,8 +801,8 @@ modparam("dialog", "to_uri_column", "to_uri_c_name")
 
 
 5.20. to_tag_column (string)
 5.20. to_tag_column (string)
 
 
-   The column name in the database to store the To tag from the 200 OK
-   response to the INVITE request, if present.
+   The column name in the database to store the To header tag from the 200
+   OK response to the INVITE request, if present.
 
 
    Default value is "to_tag".
    Default value is "to_tag".
 
 
@@ -805,13 +813,13 @@ modparam("dialog", "to_tag_column", "to_tag_c_name")
 
 
 5.21. from_cseq_column (string)
 5.21. from_cseq_column (string)
 
 
-   The column name in the database to store the cseq from caller side.
+   The column name in the database to store the Cseq from caller side.
 
 
    Default value is "caller_cseq".
    Default value is "caller_cseq".
 
 
    Example 1.21. Set from_cseq_column parameter
    Example 1.21. Set from_cseq_column parameter
 ...
 ...
-modparam("dialog", "from_cseq_column", "column_name")
+modparam("dialog", "from_cseq_column", "from_cseq")
 ...
 ...
 
 
 5.22. to_cseq_column (string)
 5.22. to_cseq_column (string)
@@ -822,7 +830,7 @@ modparam("dialog", "from_cseq_column", "column_name")
 
 
    Example 1.22. Set to_cseq_column parameter
    Example 1.22. Set to_cseq_column parameter
 ...
 ...
-modparam("dialog", "to_cseq_column", "column_name")
+modparam("dialog", "to_cseq_column", "to_cseq")
 ...
 ...
 
 
 5.23. from_route_column (string)
 5.23. from_route_column (string)
@@ -834,7 +842,7 @@ modparam("dialog", "to_cseq_column", "column_name")
 
 
    Example 1.23. Set from_route_column parameter
    Example 1.23. Set from_route_column parameter
 ...
 ...
-modparam("dialog", "from_route_column", "column_name")
+modparam("dialog", "from_route_column", "rroute_from")
 ...
 ...
 
 
 5.24. to_route_column (string)
 5.24. to_route_column (string)
@@ -846,7 +854,7 @@ modparam("dialog", "from_route_column", "column_name")
 
 
    Example 1.24. Set to_route_column parameter
    Example 1.24. Set to_route_column parameter
 ...
 ...
-modparam("dialog", "to_route_column", "column_name")
+modparam("dialog", "to_route_column", "rroute_to")
 ...
 ...
 
 
 5.25. from_contact_column (string)
 5.25. from_contact_column (string)
@@ -857,7 +865,7 @@ modparam("dialog", "to_route_column", "column_name")
 
 
    Example 1.25. Set from_contact_column parameter
    Example 1.25. Set from_contact_column parameter
 ...
 ...
-modparam("dialog", "from_contact_column", "column_name")
+modparam("dialog", "from_contact_column", "from_contact_uri")
 ...
 ...
 
 
 5.26. to_contact_column (string)
 5.26. to_contact_column (string)
@@ -868,7 +876,7 @@ modparam("dialog", "from_contact_column", "column_name")
 
 
    Example 1.26. Set to_contact_column parameter
    Example 1.26. Set to_contact_column parameter
 ...
 ...
-modparam("dialog", "to_contact_column", "column_name")
+modparam("dialog", "to_contact_column", "to_contact_uri")
 ...
 ...
 
 
 5.27. from_sock_column (string)
 5.27. from_sock_column (string)
@@ -880,7 +888,7 @@ modparam("dialog", "to_contact_column", "column_name")
 
 
    Example 1.27. Set from_sock_column parameter
    Example 1.27. Set from_sock_column parameter
 ...
 ...
-modparam("dialog", "from_sock_column", "column_name")
+modparam("dialog", "from_sock_column", "socket_from")
 ...
 ...
 
 
 5.28. to_sock_column (string)
 5.28. to_sock_column (string)
@@ -892,7 +900,7 @@ modparam("dialog", "from_sock_column", "column_name")
 
 
    Example 1.28. Set to_sock_column parameter
    Example 1.28. Set to_sock_column parameter
 ...
 ...
-modparam("dialog", "to_sock_column", "column_name")
+modparam("dialog", "to_sock_column", "socket_to")
 ...
 ...
 
 
 5.29. h_id_column (string)
 5.29. h_id_column (string)
@@ -909,7 +917,7 @@ modparam("dialog", "h_id_column", "hash_id_c_name")
 
 
 5.30. h_entry_column (string)
 5.30. h_entry_column (string)
 
 
-   The column name in the database to store the dialogs' hash entry
+   The column name in the database to store the dialog's hash entry
    information.
    information.
 
 
    Default value is "hash_entry".
    Default value is "hash_entry".
@@ -921,7 +929,7 @@ modparam("dialog", "h_entry_column", "h_entry_c_name")
 
 
 5.31. state_column (string)
 5.31. state_column (string)
 
 
-   The column name in the database to store the dialogs' state
+   The column name in the database to store the dialog's state
    information.
    information.
 
 
    Default value is "state".
    Default value is "state".
@@ -933,7 +941,7 @@ modparam("dialog", "state_column", "state_c_name")
 
 
 5.32. start_time_column (string)
 5.32. start_time_column (string)
 
 
-   The column name in the database to store the dialogs' start time
+   The column name in the database to store the dialog's start time
    information.
    information.
 
 
    Default value is "start_time".
    Default value is "start_time".
@@ -945,7 +953,7 @@ modparam("dialog", "start_time_column", "start_time_c_name")
 
 
 5.33. timeout_column (string)
 5.33. timeout_column (string)
 
 
-   The column name in the database to store the dialogs' timeout.
+   The column name in the database to store the dialog's timeout.
 
 
    Default value is "timeout".
    Default value is "timeout".
 
 
@@ -956,7 +964,7 @@ modparam("dialog", "timeout_column", "timeout_c_name")
 
 
 5.34. sflags_column (string)
 5.34. sflags_column (string)
 
 
-   The column name in the database to store the script flags.
+   The column name in the database to store the dialog script flags.
 
 
    Default value is "sflags".
    Default value is "sflags".
 
 
@@ -979,8 +987,8 @@ modparam("dialog", "toroute_column", "timeout_route")
 
 
 5.36. vars_table_name (string)
 5.36. vars_table_name (string)
 
 
-   If you want to store the variables for a dialog in a database a table
-   name must be specified.
+   If you want to store the dialog variables ("$dlg_var(name)") for a
+   dialog in a database a table name must be specified.
 
 
    Default value is "dialog_vars".
    Default value is "dialog_vars".
 
 
@@ -991,7 +999,7 @@ modparam("dialog", "vars_table_name", "my_dialog_vars")
 
 
 5.37. vars_h_id_column (string)
 5.37. vars_h_id_column (string)
 
 
-   The column name in the database to store the dialogs' hash id
+   The column name in the database to store the dialog's hash id
    information (as a reference to the dialog table).
    information (as a reference to the dialog table).
 
 
    Default value is "hash_id".
    Default value is "hash_id".
@@ -1003,7 +1011,7 @@ modparam("dialog", "vars_h_id_column", "vars_h_id_name")
 
 
 5.38. vars_h_entry_column (string)
 5.38. vars_h_entry_column (string)
 
 
-   The column name in the database to store the dialogs' hash entry
+   The column name in the database to store the dialog's hash entry
    information (as a reference to the dialog table).
    information (as a reference to the dialog table).
 
 
    Default value is "hash_entry".
    Default value is "hash_entry".
@@ -1015,7 +1023,8 @@ modparam("dialog", "vars_h_entry_column", "vars_h_entry_name")
 
 
 5.39. vars_key_column (string)
 5.39. vars_key_column (string)
 
 
-   The column name in the database to store the keys of a variable.
+   The column name in the database to store the names (keys) of a dialog
+   variable.
 
 
    Default value is "dialog_key".
    Default value is "dialog_key".
 
 
@@ -1026,7 +1035,8 @@ modparam("dialog", "vars_key_column", "vars_key_name")
 
 
 5.40. vars_value_column (string)
 5.40. vars_value_column (string)
 
 
-   The column name in the database to store the keys of a variable.
+   The column name in the database to store the values of a dialog
+   variable.
 
 
    Default value is "dialog_value".
    Default value is "dialog_value".
 
 
@@ -1037,7 +1047,7 @@ modparam("dialog", "vars_value_column", "vars_value_name")
 
 
 5.41. profiles_with_value (string)
 5.41. profiles_with_value (string)
 
 
-   List of names for profiles with values.
+   List of names for profiles with values, separated with semi-colon ";".
 
 
    Default value is "empty".
    Default value is "empty".
 
 
@@ -1048,7 +1058,8 @@ modparam("dialog", "profiles_with_value", "caller ; my_profile")
 
 
 5.42. profiles_no_value (string)
 5.42. profiles_no_value (string)
 
 
-   List of names for profiles without values.
+   List of names for profiles without values, separated with semi-colon
+   ";".
 
 
    Default value is "empty".
    Default value is "empty".
 
 
@@ -1177,10 +1188,11 @@ modparam("dialog", "timeout_noreset", 1)
 
 
 5.51. timer_procs (int)
 5.51. timer_procs (int)
 
 
-   If set to 1, the dialog will run own timer process to execute dialog
-   timeout tasks.
+   If set to 1, the dialog module will start a separate dialog timer
+   process to execute dialog timeout tasks. The default is to use the core
+   timer process.
 
 
-   Default value is "0" (use core time process).
+   Default value is "0" (use core timer process).
 
 
    Example 1.51. Set timer_procs parameter
    Example 1.51. Set timer_procs parameter
 ...
 ...
@@ -1353,7 +1365,7 @@ if(dlg_isflagset("1"))
 
 
 6.6. dlg_setflag(flag)
 6.6. dlg_setflag(flag)
 
 
-   Set the dialog flag.
+   Set a dialog flag.
 
 
    Meaning of the parameters is as follows:
    Meaning of the parameters is as follows:
      * flag - index of the flag - can be pseudo-variable.
      * flag - index of the flag - can be pseudo-variable.

+ 5 - 0
modules/dialog/doc/dialog.xml

@@ -48,6 +48,11 @@
 			<surname>Balashov</surname>
 			<surname>Balashov</surname>
 			<email>[email protected]</email>
 			<email>[email protected]</email>
 		</editor>
 		</editor>
+		<editor>
+			<firstname>Olle E.</firstname>
+			<surname>Johansson</surname>
+			<email>[email protected]</email>
+		</editor>
 	</authorgroup>
 	</authorgroup>
 	<copyright>
 	<copyright>
 		<year>2006</year>
 		<year>2006</year>

+ 144 - 133
modules/dialog/doc/dialog_admin.xml

@@ -18,8 +18,8 @@
 	<para>
 	<para>
 	Kamailio can behave as a stateful proxy through the TM module.  However, 
 	Kamailio can behave as a stateful proxy through the TM module.  However, 
 	"stateful" in this context refers to <emphasis>transaction</emphasis> 
 	"stateful" in this context refers to <emphasis>transaction</emphasis> 
-	state, not dialog state.  Certain applications benefit from the proxy's
-	awareness of "calls", not just SIP transactions.
+	state, not dialog state.  Certain applications may benefit from an
+	awareness of "calls" in the proxy, not just SIP transactions.
 	</para>
 	</para>
 	<para>For example, a common need is to limit the number of calls that can 
 	<para>For example, a common need is to limit the number of calls that can 
 	be made concurrently by an endpoint, account, user group, etc.  In order 
 	be made concurrently by an endpoint, account, user group, etc.  In order 
@@ -29,14 +29,15 @@
 	common application discussed for illustrative purposes; there are many others.  
 	common application discussed for illustrative purposes; there are many others.  
 	</para>
 	</para>
 	<para>
 	<para>
-	The dialog module provides dialog awareness for the &kamailio; proxy. Its
+	The dialog module provides dialog awareness for the &kamailio; proxy. It's
 	functionality is to keep track of the current dialogs, to offer information
 	functionality is to keep track of the current dialogs, to offer information
 	about them (e.g. how many dialogs are active), and to manage various 
 	about them (e.g. how many dialogs are active), and to manage various 
-	characteristics of dialogs. The module exports several functions that could be 
-	used directly from the configuration route script.
+	characteristics of dialogs. The module exports several functions that can be 
+	used directly from the configuration route script as well as functions for
+	the RPC interface.
 	</para>
 	</para>
 	<para>
 	<para>
-	This module also provides a foundational API on which to build 
+	This module also provides a API foundation on which to build 
 	more complex dialog-oriented functionality in other &kamailio; modules.
 	more complex dialog-oriented functionality in other &kamailio; modules.
 	</para>
 	</para>
 	</section>
 	</section>
@@ -45,15 +46,15 @@
 	<title>How it works</title>
 	<title>How it works</title>
 	<para>
 	<para>
 	To create the dialog associated with an initial request, the flag
 	To create the dialog associated with an initial request, the flag
-	<quote>dlg_flag</quote> (<xref linkend="dlg-flag-id"/>) must be set before
+	<quote>dlg_flag</quote> (<xref linkend="dialog.p.flag"/>) must be set before
 	creating the corresponding transaction.
 	creating the corresponding transaction.
 	</para>
 	</para>
 	<para>
 	<para>
 	The dialog is automatically destroyed when a <quote>BYE</quote> is
 	The dialog is automatically destroyed when a <quote>BYE</quote> is
 	received. In case of no <quote>BYE</quote>, the dialog lifetime is
 	received. In case of no <quote>BYE</quote>, the dialog lifetime is
 	controlled via the default timeout (see <quote>default_timeout</quote>
 	controlled via the default timeout (see <quote>default_timeout</quote>
-	- <xref linkend="default-timeout-id"/>) and custom timeout (see
-	<quote>timeout_avp</quote> - <xref linkend="timeout-avp-id"/>). The
+	- <xref linkend="dialog.p.default_timeout"/>) and custom timeout (see
+	<quote>timeout_avp</quote> - <xref linkend="dialog.p.timeout_avp"/>). The
 	dialog timeout is reset each time a sequential request is processed.
 	dialog timeout is reset each time a sequential request is processed.
 	</para>
 	</para>
 	</section>
 	</section>
@@ -63,7 +64,7 @@
 	<para>
 	<para>
 	Dialog profiling is a mechanism that helps in classifying, sorting and
 	Dialog profiling is a mechanism that helps in classifying, sorting and
 	keeping track of certain types of dialogs.  The classification criteria
 	keeping track of certain types of dialogs.  The classification criteria
-	can be any attributes desired by the user;  they can come from SIP message
+	can be any attributes desired by the administrator;  it can be SIP message
 	attributes, other pseudo-variables, custom values, etc.  
 	attributes, other pseudo-variables, custom values, etc.  
 	Dialogs can be dynamically added into one or more profile
 	Dialogs can be dynamically added into one or more profile
 	tables.  Logically, each profile table can have a special meaning (like
 	tables.  Logically, each profile table can have a special meaning (like
@@ -150,7 +151,7 @@
 
 
 	<section>
 	<section>
 	<title>Parameters</title>
 	<title>Parameters</title>
-	<section>
+	<section id="dialog.p.enable_stats">
 		<title><varname>enable_stats</varname> (integer)</title>
 		<title><varname>enable_stats</varname> (integer)</title>
 		<para>
 		<para>
 		If statistics support should be enabled or not. Via statistics
 		If statistics support should be enabled or not. Via statistics
@@ -172,7 +173,7 @@ modparam("dialog", "enable_stats", 0)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.hash_size">
 		<title><varname>hash_size</varname> (integer)</title>
 		<title><varname>hash_size</varname> (integer)</title>
 		<para>
 		<para>
 		The size of the hash table internally used to keep the dialogs. A
 		The size of the hash table internally used to keep the dialogs. A
@@ -180,7 +181,7 @@ modparam("dialog", "enable_stats", 0)
 		must be a power of two.
 		must be a power of two.
 		</para>
 		</para>
 		<para>
 		<para>
-		IMPORTANT: If dialogs' information should be stored in a database,
+		IMPORTANT: If dialog information should be stored in a database,
 		a constant hash_size should be used, otherwise the restoring process
 		a constant hash_size should be used, otherwise the restoring process
 		will not take place. If you really want to modify the hash_size, you
 		will not take place. If you really want to modify the hash_size, you
 		must delete all table's rows before restarting the server.
 		must delete all table's rows before restarting the server.
@@ -200,7 +201,7 @@ modparam("dialog", "hash_size", 1024)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.rr_param">
 		<title><varname>rr_param</varname> (string)</title>
 		<title><varname>rr_param</varname> (string)</title>
 		<para>
 		<para>
 		Name of the Record-Route parameter used to store the dialog cookie.
 		Name of the Record-Route parameter used to store the dialog cookie.
@@ -222,7 +223,7 @@ modparam("dialog", "rr_param", "xyz")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section id="dlg-flag-id">
+	<section id="dialog.p.flag">
 		<title><varname>dlg_flag</varname> (integer)</title>
 		<title><varname>dlg_flag</varname> (integer)</title>
 		<para>
 		<para>
 		Flag to be used for marking if a dialog should be constructed for the
 		Flag to be used for marking if a dialog should be constructed for the
@@ -243,7 +244,7 @@ modparam("dialog", "dlg_flag", 4)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section id="timeout-avp-id">
+	<section id="dialog.p.timeout_avp">
 		<title><varname>timeout_avp</varname> (string)</title>
 		<title><varname>timeout_avp</varname> (string)</title>
 		<para>
 		<para>
 		The specification of an AVP that contains a custom timeout value (in seconds)
 		The specification of an AVP that contains a custom timeout value (in seconds)
@@ -265,7 +266,7 @@ modparam("dialog", "timeout_avp", "$avp(i:10)")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section id="default-timeout-id">
+	<section id="dialog.p.default_timeout">
 		<title><varname>default_timeout</varname> (integer)</title>
 		<title><varname>default_timeout</varname> (integer)</title>
 		<para>
 		<para>
 		The default dialog timeout (in seconds), in the absence of a custom
 		The default dialog timeout (in seconds), in the absence of a custom
@@ -286,7 +287,7 @@ modparam("dialog", "default_timeout", 21600)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.dlg_extra_hdrs">
 		<title><varname>dlg_extra_hdrs</varname> (string)</title>
 		<title><varname>dlg_extra_hdrs</varname> (string)</title>
 		<para>
 		<para>
 		A string containing the extra headers (full format, with EOH)
 		A string containing the extra headers (full format, with EOH)
@@ -307,7 +308,7 @@ modparam("dialog", "dlg_extra_hdrs", "Hint: credit expired\r\n")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.dlg_match_mode">
 		<title><varname>dlg_match_mode</varname> (integer)</title>
 		<title><varname>dlg_match_mode</varname> (integer)</title>
 		<para>
 		<para>
 		How the sequential requests should be matched against the known dialogs.
 		How the sequential requests should be matched against the known dialogs.
@@ -358,7 +359,7 @@ modparam("dialog", "dlg_match_mode", 1)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.detect_spirals">
 		<title><varname>detect_spirals</varname> (integer)</title>
 		<title><varname>detect_spirals</varname> (integer)</title>
 		<para>
 		<para>
 			Whether spirals (i.e., messages routed through the proxy multiple times)
 			Whether spirals (i.e., messages routed through the proxy multiple times)
@@ -382,10 +383,10 @@ modparam("dialog", "detect_spirals", 1)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.db_url">
 		<title><varname>db_url</varname> (string)</title>
 		<title><varname>db_url</varname> (string)</title>
 		<para>
 		<para>
-		If you want to store the information about the dialogs in a database,
+		In order to store information about dialogs in a database,
 		a database URL must be specified.
 		a database URL must be specified.
 		</para>
 		</para>
 		<para>
 		<para>
@@ -403,7 +404,7 @@ modparam("dialog", "db_url", "&exampledb;")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-<section>
+	<section id="dialog.p.db_mode">
 		<title><varname>db_mode</varname> (integer)</title>
 		<title><varname>db_mode</varname> (integer)</title>
 		<para>
 		<para>
 		Mode of synchronisation of dialog information from memory to an
 		Mode of synchronisation of dialog information from memory to an
@@ -419,7 +420,7 @@ modparam("dialog", "db_url", "&exampledb;")
 			</para></listitem>
 			</para></listitem>
 			<listitem><para>
 			<listitem><para>
 				<emphasis>1 - REALTIME</emphasis> - any dialog information
 				<emphasis>1 - REALTIME</emphasis> - any dialog information
-				changes will be reflected into the database immediatly.
+				changes will be reflected into the database immediately.
 			</para></listitem>
 			</para></listitem>
 			<listitem><para>
 			<listitem><para>
 				<emphasis>2 - DELAYED</emphasis> - the dialog information
 				<emphasis>2 - DELAYED</emphasis> - the dialog information
@@ -446,15 +447,17 @@ modparam("dialog", "db_mode", 1)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-<section>
+	<section id="dialog.p.update_period">
 		<title><varname>db_update_period</varname> (integer)</title>
 		<title><varname>db_update_period</varname> (integer)</title>
 		<para>
 		<para>
-			The interval (seconds) at which to update dialogs' information, if you chose to store the dialogs' info at a given interval.
-			Too short an interval will generate intensive database operations, while an excessively long one will miss dialogs with a short lifetime.
+			The interval (seconds) at which to update dialogs' information,
+			if the server is configured to store the dialog information at a given interval.
+			Too short an interval will generate intensive database operations,
+			while an excessively long one will miss dialogs with a short lifetime.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
-			Default value is <quote>60</quote>.
+			Default value is <quote>60</quote> seconds.
 		</emphasis>
 		</emphasis>
 		</para>
 		</para>
 		<example>
 		<example>
@@ -467,12 +470,15 @@ modparam("dialog", "db_update_period", 120)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-<section>
+	<section id="dialog.p.db_fetch_rows">
 		<title><varname>db_fetch_rows</varname> (integer)</title>
 		<title><varname>db_fetch_rows</varname> (integer)</title>
 		<para>
 		<para>
-			The number of the rows to be fetched at once from database when loading the dialog records at startup from the database.
-			This value can be used to tune the load time at startup. For 1MB of private memory (default), it should be below 400.
-			The database driver must support the fetch_result() capability. A value of 0 means the database fetch is not limited.
+			The number of the rows to be fetched at once from database 
+			when loading the dialog records at startup from the database.
+			This value can be used to tune the load time at startup. 
+			For 1MB of private memory (default), it should be below 400.
+			The database driver must support the fetch_result() capability. 
+			A value of 0 means the database fetch is not limited.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -489,10 +495,11 @@ modparam("dialog", "db_fetch_rows", 500)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-<section>
+	<section id="dialog.p.db_skip_load">
 		<title><varname>db_skip_load</varname> (integer)</title>
 		<title><varname>db_skip_load</varname> (integer)</title>
 		<para>
 		<para>
-			Set db_skip_load to 1, to skip the loading of dialogs from the database alltogether.
+			Set db_skip_load to 1, to skip the loading of dialog data
+			from the database.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -511,11 +518,10 @@ modparam("dialog", "db_skip_load", 1)
 
 
 
 
 
 
-	<section>
+	<section id="dialog.p.table_name">
 		<title><varname>table_name</varname> (string)</title>
 		<title><varname>table_name</varname> (string)</title>
 		<para>
 		<para>
-		If you want to store the information about the dialogs in a
-		database a table name must be specified.
+		Database table name used for storing dialog information.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -532,10 +538,10 @@ modparam("dialog", "table_name", "my_dialog")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.callid_column">
 		<title><varname>callid_column</varname> (string)</title>
 		<title><varname>callid_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the dialogs' callid.
+			The column name in the database to store the dialog call-id.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -552,11 +558,11 @@ modparam("dialog", "callid_column", "callid_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.from_uri_column">
 		<title><varname>from_uri_column</varname> (string)</title>
 		<title><varname>from_uri_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the caller's
 			The column name in the database to store the caller's
-			sip address.
+			SIP address (URI).
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -573,10 +579,10 @@ modparam("dialog", "from_uri_column", "from_uri_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.from_tag_column">
 		<title><varname>from_tag_column</varname> (string)</title>
 		<title><varname>from_tag_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the From tag from
+			The column name in the database to store the From header tag from
 			the INVITE request.
 			the INVITE request.
 		</para>
 		</para>
 		<para>
 		<para>
@@ -594,10 +600,10 @@ modparam("dialog", "from_tag_column", "from_tag_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.to_uri_column">
 		<title><varname>to_uri_column</varname> (string)</title>
 		<title><varname>to_uri_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the callee's sip address.
+			The column name in the database to store the callee's SIP address (URI).
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -615,10 +621,10 @@ modparam("dialog", "to_uri_column", "to_uri_c_name")
 	</section>
 	</section>
 
 
 
 
-	<section>
+	<section id="dialog.p.to_tag_column">
 		<title><varname>to_tag_column</varname> (string)</title>
 		<title><varname>to_tag_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the To tag from
+			The column name in the database to store the To header tag from
 			the 200 OK response to the INVITE request, if present.
 			the 200 OK response to the INVITE request, if present.
 		</para>
 		</para>
 		<para>
 		<para>
@@ -636,10 +642,10 @@ modparam("dialog", "to_tag_column", "to_tag_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.from_cseq_column">
 		<title><varname>from_cseq_column</varname> (string)</title>
 		<title><varname>from_cseq_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the cseq from caller
+			The column name in the database to store the Cseq from caller
 			side.
 			side.
 		</para>
 		</para>
 		<para>
 		<para>
@@ -651,13 +657,13 @@ modparam("dialog", "to_tag_column", "to_tag_c_name")
 		<title>Set <varname>from_cseq_column</varname> parameter</title>
 		<title>Set <varname>from_cseq_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "from_cseq_column", "column_name")
+modparam("dialog", "from_cseq_column", "from_cseq")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.to_cseq_column">
 		<title><varname>to_cseq_column</varname> (string)</title>
 		<title><varname>to_cseq_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the cseq from callee
 			The column name in the database to store the cseq from callee
@@ -672,13 +678,13 @@ modparam("dialog", "from_cseq_column", "column_name")
 		<title>Set <varname>to_cseq_column</varname> parameter</title>
 		<title>Set <varname>to_cseq_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "to_cseq_column", "column_name")
+modparam("dialog", "to_cseq_column", "to_cseq")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.from_route_column">
 		<title><varname>from_route_column</varname> (string)</title>
 		<title><varname>from_route_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the route records from
 			The column name in the database to store the route records from
@@ -693,13 +699,13 @@ modparam("dialog", "to_cseq_column", "column_name")
 		<title>Set <varname>from_route_column</varname> parameter</title>
 		<title>Set <varname>from_route_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "from_route_column", "column_name")
+modparam("dialog", "from_route_column", "rroute_from")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.to_route_column">
 		<title><varname>to_route_column</varname> (string)</title>
 		<title><varname>to_route_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the route records from
 			The column name in the database to store the route records from
@@ -714,13 +720,13 @@ modparam("dialog", "from_route_column", "column_name")
 		<title>Set <varname>to_route_column</varname> parameter</title>
 		<title>Set <varname>to_route_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "to_route_column", "column_name")
+modparam("dialog", "to_route_column", "rroute_to")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.from_contact_column">
 		<title><varname>from_contact_column</varname> (string)</title>
 		<title><varname>from_contact_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the caller's contact
 			The column name in the database to store the caller's contact
@@ -735,13 +741,13 @@ modparam("dialog", "to_route_column", "column_name")
 		<title>Set <varname>from_contact_column</varname> parameter</title>
 		<title>Set <varname>from_contact_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "from_contact_column", "column_name")
+modparam("dialog", "from_contact_column", "from_contact_uri")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.to_contact_column">
 		<title><varname>to_contact_column</varname> (string)</title>
 		<title><varname>to_contact_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the callee's contact
 			The column name in the database to store the callee's contact
@@ -756,13 +762,13 @@ modparam("dialog", "from_contact_column", "column_name")
 		<title>Set <varname>to_contact_column</varname> parameter</title>
 		<title>Set <varname>to_contact_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "to_contact_column", "column_name")
+modparam("dialog", "to_contact_column", "to_contact_uri")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-<section>
+	<section id="dialog.p.from_sock_column">
 		<title><varname>from_sock_column</varname> (string)</title>
 		<title><varname>from_sock_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the information about
 			The column name in the database to store the information about
@@ -777,13 +783,13 @@ modparam("dialog", "to_contact_column", "column_name")
 		<title>Set <varname>from_sock_column</varname> parameter</title>
 		<title>Set <varname>from_sock_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "from_sock_column", "column_name")
+modparam("dialog", "from_sock_column", "socket_from")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-<section>
+	<section id="dialog.p.to_sock_column">
 		<title><varname>to_sock_column</varname> (string)</title>
 		<title><varname>to_sock_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store information about the
 			The column name in the database to store information about the
@@ -798,13 +804,13 @@ modparam("dialog", "from_sock_column", "column_name")
 		<title>Set <varname>to_sock_column</varname> parameter</title>
 		<title>Set <varname>to_sock_column</varname> parameter</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-modparam("dialog", "to_sock_column", "column_name")
+modparam("dialog", "to_sock_column", "socket_to")
 ...
 ...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.h_id_column">
 		<title><varname>h_id_column</varname> (string)</title>
 		<title><varname>h_id_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the dialogs'
 			The column name in the database to store the dialogs'
@@ -825,10 +831,10 @@ modparam("dialog", "h_id_column", "hash_id_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.h_entry_column">
 		<title><varname>h_entry_column</varname> (string)</title>
 		<title><varname>h_entry_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the dialogs' hash
+			The column name in the database to store the dialog's hash
 			entry information.
 			entry information.
 		</para>
 		</para>
 		<para>
 		<para>
@@ -846,11 +852,11 @@ modparam("dialog", "h_entry_column", "h_entry_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.state_column">
 		<title><varname>state_column</varname> (string)</title>
 		<title><varname>state_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the
 			The column name in the database to store the
-			dialogs' state information.
+			dialog's state information.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -867,11 +873,11 @@ modparam("dialog", "state_column", "state_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.start_time_column">
 		<title><varname>start_time_column</varname> (string)</title>
 		<title><varname>start_time_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the
 			The column name in the database to store the
-			dialogs' start time information.
+			dialog's start time information.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -888,10 +894,10 @@ modparam("dialog", "start_time_column", "start_time_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.timeout_column">
 		<title><varname>timeout_column</varname> (string)</title>
 		<title><varname>timeout_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the dialogs' timeout.
+			The column name in the database to store the dialog's timeout.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -908,10 +914,10 @@ modparam("dialog", "timeout_column", "timeout_c_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.sflags_column">
 		<title><varname>sflags_column</varname> (string)</title>
 		<title><varname>sflags_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the script flags.
+			The column name in the database to store the dialog script flags.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -927,7 +933,7 @@ modparam("dialog", "sflags_column", "s_flags")
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
-	<section>
+	<section id="dialog.p.toroute_column">
 		<title><varname>toroute_column</varname> (string)</title>
 		<title><varname>toroute_column</varname> (string)</title>
 		<para>
 		<para>
 			The column name in the database to store the index of the
 			The column name in the database to store the index of the
@@ -948,11 +954,11 @@ modparam("dialog", "toroute_column", "timeout_route")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.vars_table_name">
 		<title><varname>vars_table_name</varname> (string)</title>
 		<title><varname>vars_table_name</varname> (string)</title>
 		<para>
 		<para>
-		If you want to store the variables for a dialog in a
-		database a table name must be specified.
+		If you want to store the dialog variables (<quote>$dlg_var(name)</quote>)
+		for a dialog in a database a table name must be specified.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -969,10 +975,10 @@ modparam("dialog", "vars_table_name", "my_dialog_vars")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.vars_h_id_column">
 		<title><varname>vars_h_id_column</varname> (string)</title>
 		<title><varname>vars_h_id_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the dialogs'
+			The column name in the database to store the dialog's
 			hash id information (as a reference to the dialog table).
 			hash id information (as a reference to the dialog table).
 		</para>
 		</para>
 		<para>
 		<para>
@@ -990,10 +996,10 @@ modparam("dialog", "vars_h_id_column", "vars_h_id_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.vars_h_entry_column">
 		<title><varname>vars_h_entry_column</varname> (string)</title>
 		<title><varname>vars_h_entry_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the dialogs'
+			The column name in the database to store the dialog's
 			hash entry information (as a reference to the dialog table).
 			hash entry information (as a reference to the dialog table).
 		</para>
 		</para>
 		<para>
 		<para>
@@ -1011,10 +1017,11 @@ modparam("dialog", "vars_h_entry_column", "vars_h_entry_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.vars_key_column">
 		<title><varname>vars_key_column</varname> (string)</title>
 		<title><varname>vars_key_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the keys of a variable.
+			The column name in the database to store the names (keys) of a dialog
+			variable.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -1031,10 +1038,11 @@ modparam("dialog", "vars_key_column", "vars_key_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.vars_value_column">
 		<title><varname>vars_value_column</varname> (string)</title>
 		<title><varname>vars_value_column</varname> (string)</title>
 		<para>
 		<para>
-			The column name in the database to store the keys of a variable.
+			The column name in the database to store the values of a 
+			dialog variable.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -1051,10 +1059,11 @@ modparam("dialog", "vars_value_column", "vars_value_name")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.profiles_with_value">
 		<title><varname>profiles_with_value</varname> (string)</title>
 		<title><varname>profiles_with_value</varname> (string)</title>
 		<para>
 		<para>
-			List of names for profiles with values.
+			List of names for profiles with values, separated
+			with semi-colon ";".
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -1071,10 +1080,11 @@ modparam("dialog", "profiles_with_value", "caller ; my_profile")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.profiles_no_value">
 		<title><varname>profiles_no_value</varname> (string)</title>
 		<title><varname>profiles_no_value</varname> (string)</title>
 		<para>
 		<para>
-			List of names for profiles without values.
+			List of names for profiles without values, separated	
+			with semi-colon ";".
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
@@ -1091,7 +1101,7 @@ modparam("dialog", "profiles_no_value", "inbound ; outbound")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.bridge_controller">
 		<title><varname>bridge_controller</varname> (string)</title>
 		<title><varname>bridge_controller</varname> (string)</title>
 		<para>
 		<para>
 			SIP address to be used in From header when initiating a call bridge.
 			SIP address to be used in From header when initiating a call bridge.
@@ -1111,7 +1121,7 @@ modparam("dialog", "bridge_controller", "sip:[email protected]")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.bridge_contact">
 		<title><varname>bridge_contact</varname> (string)</title>
 		<title><varname>bridge_contact</varname> (string)</title>
 		<para>
 		<para>
 			SIP address to be used in Contact header when doing a call bridge.
 			SIP address to be used in Contact header when doing a call bridge.
@@ -1131,16 +1141,16 @@ modparam("dialog", "bridge_contact", "sip:[email protected]:5060")
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.initial_cbs_inscript">
 		<title><varname>initial_cbs_inscript</varname> (int)</title>
 		<title><varname>initial_cbs_inscript</varname> (int)</title>
 		<para>
 		<para>
-            If the initial dialog callbacks (i.e., DLGCB_CREATED and
-            DLGCB_SPIRALED) should be executed in-script or post-script.
-            If dlg_manage() is not used, the setting of this parameter does
-            not matter; otherwise, initial callbacks will be executed
-            directly after dlg_manage() is called if this parameter is
-            enabled. If it is disabled, initial callback execution will be
-            postponed until configuration script execution completes.
+            	If the initial dialog callbacks (i.e., DLGCB_CREATED and
+            	DLGCB_SPIRALED) should be executed in-script or post-script.
+            	If dlg_manage() is not used, the setting of this parameter does
+            	not matter; otherwise, initial callbacks will be executed
+            	directly after dlg_manage() is called if this parameter is
+            	enabled. If it is disabled, initial callback execution will be
+            	postponed until configuration script execution completes.
 		</para>
 		</para>
 		<para>
 		<para>
 		The supported values are:
 		The supported values are:
@@ -1152,8 +1162,8 @@ modparam("dialog", "bridge_contact", "sip:[email protected]:5060")
 			</para></listitem>
 			</para></listitem>
 			<listitem><para>
 			<listitem><para>
 				<emphasis>1 - IN-SCRIPT</emphasis> - execute initial
 				<emphasis>1 - IN-SCRIPT</emphasis> - execute initial
-                callbacks during script execution, i.e., right after
-                dlg_manage() is called;
+                		callbacks during script execution, i.e., right after
+                		dlg_manage() is called;
 			</para></listitem>
 			</para></listitem>
 		</itemizedlist>
 		</itemizedlist>
 		<para>
 		<para>
@@ -1171,7 +1181,7 @@ modparam("dialog", "initial_cbs_inscript", 0)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.send_bye">
 		<title><varname>send_bye</varname> (int)</title>
 		<title><varname>send_bye</varname> (int)</title>
 		<para>
 		<para>
 			If set to 1, BYE requests will be sent out for each dialog that
 			If set to 1, BYE requests will be sent out for each dialog that
@@ -1193,7 +1203,7 @@ modparam("dialog", "send_bye", 1)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.wait_ack">
 		<title><varname>wait_ack</varname> (int)</title>
 		<title><varname>wait_ack</varname> (int)</title>
 		<para>
 		<para>
 			If set to 1, dialog will be keept a bit longer in memory
 			If set to 1, dialog will be keept a bit longer in memory
@@ -1216,7 +1226,7 @@ modparam("dialog", "wait_ack", 0)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.ka_timer">
 		<title><varname>ka_timer</varname> (int)</title>
 		<title><varname>ka_timer</varname> (int)</title>
 		<para>
 		<para>
 			Keep-alive timer step - how often to execute the callback to
 			Keep-alive timer step - how often to execute the callback to
@@ -1238,7 +1248,7 @@ modparam("dialog", "ka_timer", 10)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.ka_interval">
 		<title><varname>ka_interval</varname> (int)</title>
 		<title><varname>ka_interval</varname> (int)</title>
 		<para>
 		<para>
 			The interval between keep alives within dialog (SIP OPTIONS
 			The interval between keep alives within dialog (SIP OPTIONS
@@ -1270,10 +1280,10 @@ modparam("dialog", "ka_interval", 300)
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.p.timeout_noreset">
 		<title><varname>timeout_noreset</varname> (int)</title>
 		<title><varname>timeout_noreset</varname> (int)</title>
 		<para>
 		<para>
-           If set to 1, the dialog timeout won't be reset each
+           		If set to 1, the dialog timeout won't be reset each
 			time a sequential request is processed.
 			time a sequential request is processed.
 			It is an alternative to dlg_set_property("timeout-noreset") for all dialogs.
 			It is an alternative to dlg_set_property("timeout-noreset") for all dialogs.
 		</para>
 		</para>
@@ -1295,12 +1305,13 @@ modparam("dialog", "timeout_noreset", 1)
 	<section id="dialog.p.timer_procs">
 	<section id="dialog.p.timer_procs">
 		<title><varname>timer_procs</varname> (int)</title>
 		<title><varname>timer_procs</varname> (int)</title>
 		<para>
 		<para>
-			If set to 1, the dialog will run own timer process to execute
-			dialog timeout tasks.
+			If set to 1, the dialog module will start a separate 
+			dialog timer process to execute dialog timeout tasks.
+			The default is to use the core timer process.
 		</para>
 		</para>
 		<para>
 		<para>
 		<emphasis>
 		<emphasis>
-			Default value is <quote>0</quote> (use core time process).
+			Default value is <quote>0</quote> (use core timer process).
 		</emphasis>
 		</emphasis>
 		</para>
 		</para>
 		<example>
 		<example>
@@ -1368,7 +1379,7 @@ modparam("dialog", "lreq_callee_headers", "TH: dlh\r\n")
 
 
 	<section>
 	<section>
 	<title>Functions</title>
 	<title>Functions</title>
-	<section>
+	<section id="dialog.f.set_dlg_profile">
 		<title>
 		<title>
 		<function moreinfo="none">set_dlg_profile(profile,[value])</function>
 		<function moreinfo="none">set_dlg_profile(profile,[value])</function>
 		</title>
 		</title>
@@ -1407,7 +1418,7 @@ set_dlg_profile("caller","$fu");
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.unset_dlg_profile">
 		<title>
 		<title>
 		<function moreinfo="none">unset_dlg_profile(profile,[value])</function>
 		<function moreinfo="none">unset_dlg_profile(profile,[value])</function>
 		</title>
 		</title>
@@ -1445,7 +1456,7 @@ unset_dlg_profile("caller","$fu");
 	</section>
 	</section>
 
 
 
 
-	<section>
+	<section id="dialog.f.is_in_profile">
 		<title>
 		<title>
 		<function moreinfo="none">is_in_profile(profile,[value])</function>
 		<function moreinfo="none">is_in_profile(profile,[value])</function>
 		</title>
 		</title>
@@ -1490,7 +1501,7 @@ if (is_in_profile("caller","XX")) {
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.get_profile_size">
 		<title>
 		<title>
 		<function moreinfo="none">get_profile_size(profile,[value],size)</function>
 		<function moreinfo="none">get_profile_size(profile,[value],size)</function>
 		</title>
 		</title>
@@ -1538,7 +1549,7 @@ if(get_profile_size("caller","$fu","$avp(size)"))
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_isflagset">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_isflagset(flag)</function>
 		<function moreinfo="none">dlg_isflagset(flag)</function>
 		</title>
 		</title>
@@ -1570,12 +1581,12 @@ if(dlg_isflagset("1"))
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_setflag">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_setflag(flag)</function>
 		<function moreinfo="none">dlg_setflag(flag)</function>
 		</title>
 		</title>
 		<para>
 		<para>
-		Set the dialog flag.
+		Set a dialog flag.
 		</para>
 		</para>
 		<para>Meaning of the parameters is as follows:</para>
 		<para>Meaning of the parameters is as follows:</para>
 		<itemizedlist>
 		<itemizedlist>
@@ -1599,7 +1610,7 @@ dlg_setflag("1");
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_resetflag">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_resetflag(flag)</function>
 		<function moreinfo="none">dlg_resetflag(flag)</function>
 		</title>
 		</title>
@@ -1628,7 +1639,7 @@ redlg_setflag("1");
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_bye">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_bye(side)</function>
 		<function moreinfo="none">dlg_bye(side)</function>
 		</title>
 		</title>
@@ -1657,7 +1668,7 @@ dlg_bye("all");
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_refer">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_refer(side, address)</function>
 		<function moreinfo="none">dlg_refer(side, address)</function>
 		</title>
 		</title>
@@ -1690,7 +1701,7 @@ dlg_refer("caller", "sip:[email protected]");
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_manage">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_manage()</function>
 		<function moreinfo="none">dlg_manage()</function>
 		</title>
 		</title>
@@ -1723,7 +1734,7 @@ route {
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_bridge">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_bridge(from, to, op)</function>
 		<function moreinfo="none">dlg_bridge(from, to, op)</function>
 		</title>
 		</title>
@@ -1760,7 +1771,7 @@ dlg_bridge("sip:[email protected]", "sip:[email protected]",
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_get">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_get(callid, ftag, ttag)</function>
 		<function moreinfo="none">dlg_get(callid, ftag, ttag)</function>
 		</title>
 		</title>
@@ -1800,7 +1811,7 @@ if(dlg_get("abcdef", "123", "456"))
 		</example>
 		</example>
 	</section>
 	</section>
 	
 	
-	<section>
+	<section id="dialog.f.is_known_dlg">
 		<title>
 		<title>
 		<function moreinfo="none">is_known_dlg()</function>
 		<function moreinfo="none">is_known_dlg()</function>
 		</title>
 		</title>
@@ -1836,7 +1847,7 @@ if(!uri == myself) {
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_set_timeout">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_set_timeout(timeout [, h_entry, h_id])</function>
 		<function moreinfo="none">dlg_set_timeout(timeout [, h_entry, h_id])</function>
 		</title>
 		</title>
@@ -1880,7 +1891,7 @@ if(dlg_set_timeout("180", "123", "456"))
 		</example>
 		</example>
 	</section>
 	</section>
 
 
-	<section>
+	<section id="dialog.f.dlg_set_timeout_by_profile">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_set_timeout_by_profile(profile, [value], timeout)</function>
 		<function moreinfo="none">dlg_set_timeout_by_profile(profile, [value], timeout)</function>
 		</title>
 		</title>
@@ -1918,7 +1929,7 @@ dlg_set_timeout_by_profile("users", "abc123", "3");
 	</section>
 	</section>
 
 
 
 
-	<section>
+	<section id="dialog.f.dlg_set_property">
 		<title>
 		<title>
 		<function moreinfo="none">dlg_set_property(attr)</function>
 		<function moreinfo="none">dlg_set_property(attr)</function>
 		</title>
 		</title>
@@ -1950,14 +1961,14 @@ dlg_set_timeout_by_profile("users", "abc123", "3");
 			within dialog, with the scope of detecting if the destination is
 			within dialog, with the scope of detecting if the destination is
 			still in the call. If the keep alive request results in a local
 			still in the call. If the keep alive request results in a local
 			timeout or '481 Call Leg/Transaction Does Not Exist', then the
 			timeout or '481 Call Leg/Transaction Does Not Exist', then the
-            dialog is ended from the server.
+            		dialog is ended from the server.
 		</para>
 		</para>
 		<para>
 		<para>
-            If 'timeout-noreset' is set, dialog timeout won't be reset upon reception
-            of in-dialog messages (default behavior).
+            		If 'timeout-noreset' is set, dialog timeout won't be reset upon reception
+            		of in-dialog messages (default behavior).
 		</para>
 		</para>
 		<para>
 		<para>
-		This function can be used from ANY_ROUTE.
+			This function can be used from ANY_ROUTE.
 		</para>
 		</para>
 		<example>
 		<example>
 		<title><function>dlg_set_property</function> usage</title>
 		<title><function>dlg_set_property</function> usage</title>