Răsfoiți Sursa

ims_dialog: updated the docs to reflect the module rename

Daniel-Constantin Mierla 9 ani în urmă
părinte
comite
4d7067b5f1

+ 250 - 216
modules/ims_dialog/README

@@ -1,4 +1,4 @@
-dialog_ng Module
+IMS_DIALOG Module
 
 
 Bogdan-Andrei Iancu
 Bogdan-Andrei Iancu
 
 
@@ -6,7 +6,7 @@ Bogdan-Andrei Iancu
 
 
 Carsten Bock
 Carsten Bock
 
 
-   ng-voice.com
+   ng-voice GmbH
 
 
 Jason Penton
 Jason Penton
 
 
@@ -20,21 +20,15 @@ Edited by
 
 
 Bogdan-Andrei Iancu
 Bogdan-Andrei Iancu
 
 
-Edited by
-
 Carsten Bock
 Carsten Bock
 
 
-Edited by
-
 Jason Penton
 Jason Penton
 
 
-Edited by
-
 Richard Good
 Richard Good
 
 
-   Copyright © 2006 Voice Sistem SRL
+   Copyright © 2006 Voice Sistem SRL
 
 
-   Copyright © 2011 Carsten Bock, http://www.ng-voice.com
+   Copyright © 2011-2013 Carsten Bock, http://www.ng-voice.com
      __________________________________________________________________
      __________________________________________________________________
 
 
    Table of Contents
    Table of Contents
@@ -131,9 +125,12 @@ Richard Good
               1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
               1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
 
 
               1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
               1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
-              1.3. set_dlg_var (dlg, key, val)
-              1.4. get_dlg_var (dlg, key)
-              1.5. get_current_dialog ()
+              1.3. lookup_terminate_dlg (unsigned int h_entry, unsigned
+                      int h_id, hdrs)
+
+              1.4. set_dlg_var (dlg, key, val)
+              1.5. get_dlg_var (dlg, key)
+              1.6. get_current_dialog ()
 
 
    3. Frequently Asked Questions
    3. Frequently Asked Questions
 
 
@@ -157,6 +154,7 @@ Richard Good
    1.16. dlg_setflag usage
    1.16. dlg_setflag usage
    1.17. dlg_resetflag usage
    1.17. dlg_resetflag usage
    1.18. dlg_terminate usage
    1.18. dlg_terminate usage
+   1.19. dlg_get usage
 
 
 Chapter 1. Admin Guide
 Chapter 1. Admin Guide
 
 
@@ -247,14 +245,14 @@ Chapter 1. Admin Guide
 
 
 1. Overview
 1. Overview
 
 
-   The dialog_ng module provides dialog awareness to the Kamailio proxy. Its
-   functionality is to keep track of the current dialogs, to offer
+   The ims_dialog module provides dialog awareness to the Kamailio proxy.
+   Its functionality is to keep track of the current dialogs, to offer
    information about them (like how many dialogs are active) or to manage
    information about them (like how many dialogs are active) or to manage
    them. The module exports several functions that could be used directly
    them. The module exports several functions that could be used directly
-   from scripts. The dialog_ng module extends the original dialog module by
-   providing support for forked calling and early dialog termination. It
-   is the intention that the dialog_ng module will eventually replace the
-   dialog module.
+   from scripts. The ims_dialog module extends the original dialog module
+   by providing support for forked calling and early dialog termination.
+   It is the intention that the ims_dialog module will eventually replace
+   the dialog module.
 
 
    The module, via an internal API, also provide the foundation to build
    The module, via an internal API, also provide the foundation to build
    on top of it more complex dialog-based functionalities via other
    on top of it more complex dialog-based functionalities via other
@@ -263,14 +261,14 @@ Chapter 1. Admin Guide
 2. How it works
 2. How it works
 
 
    To create the dialog associated to an initial request, the flag
    To create the dialog associated to an initial request, the flag
-   “dlg_flag� ( Section 5.4, “ dlg_flag (integer) �) must be set before
+   "dlg_flag" ( Section 5.4, " dlg_flag (integer) ") must be set before
    creating the corresponding transaction.
    creating the corresponding transaction.
 
 
-   The dialog is automatically destroyed when a “BYE� is received. In case
-   of no “BYE�, the dialog lifetime is controlled via the default timeout
-   (see “default_timeout� - Section 5.6, “ default_timeout (integer) �)
-   and custom timeout (see “timeout_avp� - Section 5.5, “ timeout_avp
-   (string) �). The dialog timeout is reset each time a sequential request
+   The dialog is automatically destroyed when a "BYE" is received. In case
+   of no "BYE", the dialog lifetime is controlled via the default timeout
+   (see "default_timeout" - Section 5.6, " default_timeout (integer) ")
+   and custom timeout (see "timeout_avp" - Section 5.5, " timeout_avp
+   (string) "). The dialog timeout is reset each time a sequential request
    passes.
    passes.
 
 
 3. Dialog profiling
 3. Dialog profiling
@@ -335,12 +333,12 @@ Chapter 1. Admin Guide
    5.17. bridge_controller (string)
    5.17. bridge_controller (string)
    5.18. initial_cbs_inscript (string)
    5.18. initial_cbs_inscript (string)
 
 
-5.1.  enable_stats (integer)
+5.1. enable_stats (integer)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-5.2.  hash_size (integer)
+5.2. hash_size (integer)
 
 
    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
    larger table is much faster but consumes more memory. The hash size
    larger table is much faster but consumes more memory. The hash size
@@ -351,78 +349,78 @@ Chapter 1. Admin Guide
    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.
 
 
-   Default value is “4096�.
+   Default value is "4096".
 
 
    Example 1.1. Set hash_size parameter
    Example 1.1. Set hash_size parameter
 ...
 ...
-modparam("dialog_ng", "hash_size", 1024)
+modparam("ims_dialog", "hash_size", 1024)
 ...
 ...
 
 
-5.3.  rr_param (string)
+5.3. rr_param (string)
 
 
    Name of the Record-Route parameter to be added with the dialog cookie.
    Name of the Record-Route parameter to be added with the dialog cookie.
    It is used for the fast dialog matching of sequential requests.
    It is used for the fast dialog matching of sequential requests.
 
 
-   Default value is “did�.
+   Default value is "did".
 
 
    Example 1.2. Set rr_param parameter
    Example 1.2. Set rr_param parameter
 ...
 ...
-modparam("dialog_ng", "rr_param", "xyz")
+modparam("ims_dialog", "rr_param", "xyz")
 ...
 ...
 
 
-5.4.  dlg_flag (integer)
+5.4. dlg_flag (integer)
 
 
    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
    current request (this make sense only for initial requests).
    current request (this make sense only for initial requests).
 
 
-   Default value is “none�.
+   Default value is "none".
 
 
    Example 1.3. Set dlg_flag parameter
    Example 1.3. Set dlg_flag parameter
 ...
 ...
-modparam("dialog_ng", "dlg_flag", 4)
+modparam("ims_dialog", "dlg_flag", 4)
 ...
 ...
 
 
-5.5.  timeout_avp (string)
+5.5. timeout_avp (string)
 
 
    The specification of an AVP that contain a custom timeout (in seconds)
    The specification of an AVP that contain a custom timeout (in seconds)
    for the dialog. It may be used only in a request (initial or
    for the dialog. It may be used only in a request (initial or
    sequential) context
    sequential) context
 
 
-   Default value is “none�.
+   Default value is "none".
 
 
    Example 1.4. Set timeout_avp parameter
    Example 1.4. Set timeout_avp parameter
 ...
 ...
-modparam("dialog_ng", "timeout_avp", "$avp(i:10)")
+modparam("ims_dialog", "timeout_avp", "$avp(i:10)")
 ...
 ...
 
 
-5.6.  default_timeout (integer)
+5.6. default_timeout (integer)
 
 
    The default dialog timeout (in seconds) if no custom one is set.
    The default dialog timeout (in seconds) if no custom one is set.
 
 
-   Default value is “43200 (12 hours)�.
+   Default value is "43200 (12 hours)".
 
 
    Example 1.5. Set default_timeout parameter
    Example 1.5. Set default_timeout parameter
 ...
 ...
-modparam("dialog_ng", "default_timeout", 21600)
+modparam("ims_dialog", "default_timeout", 21600)
 ...
 ...
 
 
-5.7.  dlg_extra_hdrs (string)
+5.7. dlg_extra_hdrs (string)
 
 
    A string containing the extra headers (full format, with EOH) to be
    A string containing the extra headers (full format, with EOH) to be
    added in the requests generated by the module (like BYEs).
    added in the requests generated by the module (like BYEs).
 
 
-   Default value is “NULL�.
+   Default value is "NULL".
 
 
    Example 1.6. Set dlf_extra_hdrs parameter
    Example 1.6. Set dlf_extra_hdrs parameter
 ...
 ...
-modparam("dialog_ng", "dlg_extra_hdrs", "Hint: credit expired\r\n")
+modparam("ims_dialog", "dlg_extra_hdrs", "Hint: credit expired\r\n")
 ...
 ...
 
 
-5.8.  dlg_match_mode (integer)
+5.8. dlg_match_mode (integer)
 
 
    Deprecated - in the new dialog module we always match using DID ONLY
    Deprecated - in the new dialog module we always match using DID ONLY
 
 
-5.9.  detect_spirals (integer)
+5.9. detect_spirals (integer)
 
 
    Whether spirals (i.e., messages routed through the proxy multiple
    Whether spirals (i.e., messages routed through the proxy multiple
    times) should be detected or not.
    times) should be detected or not.
@@ -436,63 +434,63 @@ modparam("dialog_ng", "dlg_extra_hdrs", "Hint: credit expired\r\n")
 
 
    Example 1.7. Set detect_spirals parameter
    Example 1.7. Set detect_spirals parameter
 ...
 ...
-modparam("dialog_ng", "detect_spirals", 1)
+modparam("ims_dialog", "detect_spirals", 1)
 ...
 ...
 
 
-5.10.  db_url (string)
+5.10. db_url (string)
 
 
-   Db storage not yet supported by dialog_ng - this to be done in future.
+   Db storage not yet supported by ims_dialog - this to be done in future.
 
 
-5.11.  db_mode (integer)
+5.11. db_mode (integer)
 
 
-   Db storage not yet supported by dialog_ng - this to be done in future.
+   Db storage not yet supported by ims_dialog - this to be done in future.
 
 
-5.12.  db_update_period (integer)
+5.12. db_update_period (integer)
 
 
-   Db storage not yet supported by dialog_ng - this to be done in future.
+   Db storage not yet supported by ims_dialog - this to be done in future.
 
 
-5.13.  db_fetch_rows (integer)
+5.13. db_fetch_rows (integer)
 
 
-   Db storage not yet supported by dialog_ng - this to be done in future.
+   Db storage not yet supported by ims_dialog - this to be done in future.
 
 
-5.14.  table_name (string)
+5.14. table_name (string)
 
 
-   Db storage not yet supported by dialog_ng - this to be done in future.
+   Db storage not yet supported by ims_dialog - this to be done in future.
 
 
-5.15.  profiles_with_value (string)
+5.15. profiles_with_value (string)
 
 
    List of names for profiles with values.
    List of names for profiles with values.
 
 
-   Default value is “empty�.
+   Default value is "empty".
 
 
    Example 1.8. Set profiles_with_value parameter
    Example 1.8. Set profiles_with_value parameter
 ...
 ...
 modparam("dialog", "profiles_with_value", "caller ; my_profile")
 modparam("dialog", "profiles_with_value", "caller ; my_profile")
 ...
 ...
 
 
-5.16.  profiles_no_value (string)
+5.16. profiles_no_value (string)
 
 
    List of names for profiles without values.
    List of names for profiles without values.
 
 
-   Default value is “empty�.
+   Default value is "empty".
 
 
    Example 1.9. Set profiles_no_value parameter
    Example 1.9. Set profiles_no_value parameter
 ...
 ...
 modparam("dialog", "profiles_no_value", "inbound ; outbound")
 modparam("dialog", "profiles_no_value", "inbound ; outbound")
 ...
 ...
 
 
-5.17.  bridge_controller (string)
+5.17. bridge_controller (string)
 
 
    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.
 
 
-   Default value is “sip:[email protected]â€�.
+   Default value is "sip:[email protected]".
 
 
    Example 1.10. Set bridge_controller parameter
    Example 1.10. Set bridge_controller parameter
 ...
 ...
 modparam("dialog", "bridge_controller", "sip:[email protected]")
 modparam("dialog", "bridge_controller", "sip:[email protected]")
 ...
 ...
 
 
-5.18.  initial_cbs_inscript (string)
+5.18. initial_cbs_inscript (string)
 
 
    This has been deprecated since dlg_manage has been removed.
    This has been deprecated since dlg_manage has been removed.
 
 
@@ -512,7 +510,7 @@ modparam("dialog", "bridge_controller", "sip:[email protected]")
    6.12. dlg_get(callid, ftag, ttag)
    6.12. dlg_get(callid, ftag, ttag)
    6.13. is_known_dlg()
    6.13. is_known_dlg()
 
 
-6.1.  set_dlg_profile(profile,[value])
+6.1. set_dlg_profile(profile,[value])
 
 
    Inserts the current dialog into a profile. Note that if the profile
    Inserts the current dialog into a profile. Note that if the profile
    does not supports values, this will be silently discarded. Also, there
    does not supports values, this will be silently discarded. Also, there
@@ -528,13 +526,13 @@ modparam("dialog", "bridge_controller", "sip:[email protected]")
    This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, REPLY_ROUTE
    This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, REPLY_ROUTE
    and FAILURE_ROUTE.
    and FAILURE_ROUTE.
 
 
-   Example 1.11.  set_dlg_profile usage
+   Example 1.11. set_dlg_profile usage
 ...
 ...
 set_dlg_profile("inbound_call");
 set_dlg_profile("inbound_call");
 set_dlg_profile("caller","$fu");
 set_dlg_profile("caller","$fu");
 ...
 ...
 
 
-6.2.  unset_dlg_profile(profile,[value])
+6.2. unset_dlg_profile(profile,[value])
 
 
    Removes the current dialog from a profile.
    Removes the current dialog from a profile.
 
 
@@ -547,13 +545,13 @@ set_dlg_profile("caller","$fu");
    This function can be used from BRANCH_ROUTE, REPLY_ROUTE and
    This function can be used from BRANCH_ROUTE, REPLY_ROUTE and
    FAILURE_ROUTE.
    FAILURE_ROUTE.
 
 
-   Example 1.12.  unset_dlg_profile usage
+   Example 1.12. unset_dlg_profile usage
 ...
 ...
 unset_dlg_profile("inbound_call");
 unset_dlg_profile("inbound_call");
 unset_dlg_profile("caller","$fu");
 unset_dlg_profile("caller","$fu");
 ...
 ...
 
 
-6.3.  is_in_profile(profile,[value])
+6.3. is_in_profile(profile,[value])
 
 
    Checks if the current dialog belongs to a profile. If the profile
    Checks if the current dialog belongs to a profile. If the profile
    supports values, the check can be reinforced to take into account a
    supports values, the check can be reinforced to take into account a
@@ -570,7 +568,7 @@ unset_dlg_profile("caller","$fu");
    This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, REPLY_ROUTE
    This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, REPLY_ROUTE
    and FAILURE_ROUTE.
    and FAILURE_ROUTE.
 
 
-   Example 1.13.  is_in_profile usage
+   Example 1.13. is_in_profile usage
 ...
 ...
 if (is_in_profile("inbound_call")) {
 if (is_in_profile("inbound_call")) {
         log("this request belongs to a inbound call\n");
         log("this request belongs to a inbound call\n");
@@ -581,7 +579,7 @@ if (is_in_profile("caller","XX")) {
 }
 }
 ...
 ...
 
 
-6.4.  get_profile_size(profile,[value],size)
+6.4. get_profile_size(profile,[value],size)
 
 
    Returns the number of dialogs belonging to a profile. If the profile
    Returns the number of dialogs belonging to a profile. If the profile
    supports values, the check can be reinforced to take into account a
    supports values, the check can be reinforced to take into account a
@@ -599,7 +597,7 @@ if (is_in_profile("caller","XX")) {
    This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, REPLY_ROUTE
    This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, REPLY_ROUTE
    and FAILURE_ROUTE.
    and FAILURE_ROUTE.
 
 
-   Example 1.14.  get_profile_size usage
+   Example 1.14. get_profile_size usage
 ...
 ...
 if(get_profile_size("inbound_call","$avp(size)"))
 if(get_profile_size("inbound_call","$avp(size)"))
     xlog("currently there are $avp(size) inbound calls\n");
     xlog("currently there are $avp(size) inbound calls\n");
@@ -608,7 +606,7 @@ if(get_profile_size("caller","$fu","$avp(size)"))
     xlog("currently, the user $fu has $avp(size) active outgoing calls\n");
     xlog("currently, the user $fu has $avp(size) active outgoing calls\n");
 ...
 ...
 
 
-6.5.  dlg_isflagset(flag)
+6.5. dlg_isflagset(flag)
 
 
    Check if the dialog flag is set or not.
    Check if the dialog flag is set or not.
 
 
@@ -618,7 +616,7 @@ if(get_profile_size("caller","$fu","$avp(size)"))
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    ONREPLY_ROUTE and FAILURE_ROUTE.
    ONREPLY_ROUTE and FAILURE_ROUTE.
 
 
-   Example 1.15.  dlg_isflagset usage
+   Example 1.15. dlg_isflagset usage
 ...
 ...
 if(dlg_isflagset("1"))
 if(dlg_isflagset("1"))
 {
 {
@@ -626,7 +624,7 @@ if(dlg_isflagset("1"))
 }
 }
 ...
 ...
 
 
-6.6.  dlg_setflag(flag)
+6.6. dlg_setflag(flag)
 
 
    Set the dialog flag.
    Set the dialog flag.
 
 
@@ -636,12 +634,12 @@ if(dlg_isflagset("1"))
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    ONREPLY_ROUTE and FAILURE_ROUTE.
    ONREPLY_ROUTE and FAILURE_ROUTE.
 
 
-   Example 1.16.  dlg_setflag usage
+   Example 1.16. dlg_setflag usage
 ...
 ...
 dlg_setflag("1");
 dlg_setflag("1");
 ...
 ...
 
 
-6.7.  dlg_resetflag(flag)
+6.7. dlg_resetflag(flag)
 
 
    Reset the dialog flag.
    Reset the dialog flag.
 
 
@@ -651,14 +649,14 @@ dlg_setflag("1");
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    ONREPLY_ROUTE and FAILURE_ROUTE.
    ONREPLY_ROUTE and FAILURE_ROUTE.
 
 
-   Example 1.17.  dlg_resetflag usage
+   Example 1.17. dlg_resetflag usage
 ...
 ...
 redlg_setflag("1");
 redlg_setflag("1");
 ...
 ...
 
 
-6.8.  dlg_terminate
+6.8. dlg_terminate
 
 
-   Terminates a dialog. In dialog_ng module this function now includes
+   Terminates a dialog. In ims_dialog module this function now includes
    support for early as well as confirmed dialogs.
    support for early as well as confirmed dialogs.
 
 
    Meaning of the parameters is as follows:
    Meaning of the parameters is as follows:
@@ -669,36 +667,52 @@ redlg_setflag("1");
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
    ONREPLY_ROUTE and FAILURE_ROUTE.
    ONREPLY_ROUTE and FAILURE_ROUTE.
 
 
-   Example 1.18.  dlg_terminate usage
+   Example 1.18. dlg_terminate usage
 ...
 ...
 dlg_terminate("all", "Insufficient QoS");
 dlg_terminate("all", "Insufficient QoS");
 ...
 ...
 
 
-6.9.  dlg_refer(side, address)
+6.9. dlg_refer(side, address)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-6.10.  dlg_manage()
+6.10. dlg_manage()
 
 
-   This has been deprecated in dialog_ng. Instead set dialog flag for
+   This has been deprecated in ims_dialog. Instead set dialog flag for
    initial INVITE and Route-parameter-callback execution for within-dialog
    initial INVITE and Route-parameter-callback execution for within-dialog
    requests.
    requests.
 
 
-6.11.  dlg_bridge(from, to, op)
+6.11. dlg_bridge(from, to, op)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-6.12.  dlg_get(callid, ftag, ttag)
+6.12. dlg_get(callid, ftag, ttag)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   Search and set current dialog based on Call-ID, From-Tag and To-Tag
+   parameters.
 
 
-6.13.  is_known_dlg()
+   Meaning of the parameters is as follows:
+     * callid - SIP call-id.
+     * ftag - SIP From tag.
+     * ttag - SIP To tag.
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function can be used from BRANCH_ROUTE, REQUEST_ROUTE,
+   ONREPLY_ROUTE and FAILURE_ROUTE.
+
+   Example 1.19. dlg_get usage
+...
+if(dlg_get("abcdef", "123", "456"))
+{
+        dlg_bye("all");
+}
+...
+
+6.13. is_known_dlg()
+
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
 7. Exported statistics
 7. Exported statistics
 
 
@@ -708,30 +722,30 @@ dlg_terminate("all", "Insufficient QoS");
    7.4. expired_dialogs
    7.4. expired_dialogs
    7.5. failed_dialogs
    7.5. failed_dialogs
 
 
-7.1.  active_dialogs
+7.1. active_dialogs
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-7.2.  early_dialogs
+7.2. early_dialogs
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-7.3.  processed_dialogs
+7.3. processed_dialogs
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-7.4.  expired_dialogs
+7.4. expired_dialogs
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-7.5.  failed_dialogs
+7.5. failed_dialogs
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
 8. MI Commands
 8. MI Commands
 
 
@@ -743,11 +757,11 @@ dlg_terminate("all", "Insufficient QoS");
    8.6. profile_list_dlgs
    8.6. profile_list_dlgs
    8.7. dlg_bridge
    8.7. dlg_bridge
 
 
-8.1.  dlg_list
+8.1. dlg_list
 
 
    Lists the description of a dialog or of all dialogs (calls). If only
    Lists the description of a dialog or of all dialogs (calls). If only
    one dialogs is to be listed, the dialog identifiers are to be passed as
    one dialogs is to be listed, the dialog identifiers are to be passed as
-   parameter (callid and fromtag). In dialog_ng module this also now also
+   parameter (callid and fromtag). In ims_dialog module this also now also
    lists all dlg_out entries for early dialogs.
    lists all dlg_out entries for early dialogs.
 
 
    Name: dlg_list
    Name: dlg_list
@@ -767,21 +781,21 @@ dlg_terminate("all", "Insufficient QoS");
                 [email protected]
                 [email protected]
                 AAdfeEFF33
                 AAdfeEFF33
 
 
-8.2.  dlg_list_ctx
+8.2. dlg_list_ctx
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-8.3.  dlg_end_dlg
+8.3. dlg_end_dlg
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-8.4.  dlg_terminate_dlg
+8.4. dlg_terminate_dlg
 
 
    Terminates a singe dialog, identified by the call_id, ftag, ttag. In
    Terminates a singe dialog, identified by the call_id, ftag, ttag. In
-   dialog_ng module this dialog can be terminated in the early or confirmed
-   states.
+   ims_dialog module this dialog can be terminated in the early or
+   confirmed states.
 
 
    Name: dlg_terminate_dlg
    Name: dlg_terminate_dlg
 
 
@@ -797,20 +811,20 @@ dlg_terminate("all", "Insufficient QoS");
                 [email protected]
                 [email protected]
                 AAdfeEFF33 ftag-1234 t-tag1234
                 AAdfeEFF33 ftag-1234 t-tag1234
 
 
-8.5.  profile_get_size
+8.5. profile_get_size
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-8.6.  profile_list_dlgs
+8.6. profile_list_dlgs
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-8.7.  dlg_bridge
+8.7. dlg_bridge
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
 9. Exported RPC Functions
 9. Exported RPC Functions
 
 
@@ -823,45 +837,45 @@ dlg_terminate("all", "Insufficient QoS");
    9.7. dlg.profile_list
    9.7. dlg.profile_list
    9.8. dlg.bridge_dlg
    9.8. dlg.bridge_dlg
 
 
-9.1.  dlg.list
+9.1. dlg.list
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.2.  dlg.list_ctx
+9.2. dlg.list_ctx
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.3.  dlg.dlg_list
+9.3. dlg.dlg_list
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.4.  dlg.dlg_list_ctx
+9.4. dlg.dlg_list_ctx
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.5.  dlg.end_dlg
+9.5. dlg.end_dlg
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.6.  dlg.profile_get_size
+9.6. dlg.profile_get_size
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.7.  dlg.profile_list
+9.7. dlg.profile_list
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-9.8.  dlg.bridge_dlg
+9.8. dlg.bridge_dlg
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
 10. Exported pseudo-variables
 10. Exported pseudo-variables
 
 
@@ -872,35 +886,35 @@ dlg_terminate("all", "Insufficient QoS");
    10.5. $dlg_ctx(...)
    10.5. $dlg_ctx(...)
    10.6. $dlg_var(key)
    10.6. $dlg_var(key)
 
 
-10.1.  $DLG_count
+10.1. $DLG_count
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-10.2.  $DLG_status
+10.2. $DLG_status
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-10.3.  $DLG_lifetime
+10.3. $DLG_lifetime
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-10.4.  $dlg(...)
+10.4. $dlg(...)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-10.5.  $dlg_ctx(...)
+10.5. $dlg_ctx(...)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
-10.6.  $dlg_var(key)
+10.6. $dlg_var(key)
 
 
-   This function is currently not supported by the dialog_ng module. To be
-   incorporated in the future.
+   This function is currently not supported by the ims_dialog module. To
+   be incorporated in the future.
 
 
 Chapter 2. Developer Guide
 Chapter 2. Developer Guide
 
 
@@ -910,19 +924,25 @@ Chapter 2. Developer Guide
 
 
         1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
         1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
         1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
         1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
-        1.3. set_dlg_var (dlg, key, val)
-        1.4. get_dlg_var (dlg, key)
-        1.5. get_current_dialog ()
+        1.3. lookup_terminate_dlg (unsigned int h_entry, unsigned int
+                h_id, hdrs)
+
+        1.4. set_dlg_var (dlg, key, val)
+        1.5. get_dlg_var (dlg, key)
+        1.6. get_current_dialog ()
 
 
 1. Available Functions
 1. Available Functions
 
 
    1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
    1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
    1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
    1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
-   1.3. set_dlg_var (dlg, key, val)
-   1.4. get_dlg_var (dlg, key)
-   1.5. get_current_dialog ()
+   1.3. lookup_terminate_dlg (unsigned int h_entry, unsigned int h_id,
+          hdrs)
+
+   1.4. set_dlg_var (dlg, key, val)
+   1.5. get_dlg_var (dlg, key)
+   1.6. get_current_dialog ()
 
 
-1.1.  register_dlgcb (dialog, type, cb, param, free_param_cb)
+1.1. register_dlgcb (dialog, type, cb, param, free_param_cb)
 
 
    Register a new callback to the dialog.
    Register a new callback to the dialog.
 
 
@@ -964,14 +984,14 @@ Chapter 2. Developer Guide
           + DLGCB_SPIRALED - called when the dialog matches a spiraling
           + DLGCB_SPIRALED - called when the dialog matches a spiraling
             request - it's a per dialog type.
             request - it's a per dialog type.
           + DLGCB_DESTROY
           + DLGCB_DESTROY
-     * dialog_cb cb - callback function to be called. Prototype is: “void
+     * dialog_cb cb - callback function to be called. Prototype is: "void
        (dialog_cb) (struct dlg_cell* dlg, int type, struct dlg_cb_params *
        (dialog_cb) (struct dlg_cell* dlg, int type, struct dlg_cb_params *
-       params); �
+       params); "
      * void *param - parameter to be passed to the callback function.
      * void *param - parameter to be passed to the callback function.
      * param_free callback_param_free - callback function to be called to
      * param_free callback_param_free - callback function to be called to
-       free the param. Prototype is: “void (param_free_cb) (void *param);�
+       free the param. Prototype is: "void (param_free_cb) (void *param);"
 
 
-1.2.  terminate_dlg (str callid, str ftag, str ttag, hdrs)
+1.2. terminate_dlg (str callid, str ftag, str ttag, hdrs)
 
 
    Terminate a Dialog identified by callid, ftag and ttag in early or
    Terminate a Dialog identified by callid, ftag and ttag in early or
    confirmed state.
    confirmed state.
@@ -983,7 +1003,20 @@ Chapter 2. Developer Guide
      * str* hdrs - string containg extra headers (full format) to be added
      * str* hdrs - string containg extra headers (full format) to be added
        to the BYE requests of the dialog.
        to the BYE requests of the dialog.
 
 
-1.3.  set_dlg_var (dlg, key, val)
+1.3. lookup_terminate_dlg (unsigned int h_entry, unsigned int h_id, hdrs)
+
+   Terminate a Dialog identified by h_entry and h_id (similar to
+   dlg_end_dlg command via XMLRPC).
+
+   Meaning of parameters is as follows:
+     * unsigned int h_entry - Number of the table, where to find the
+       dialog
+     * unsigned int h_id - Number of the entry in the table, where to find
+       the dialog terminate.
+     * str* hdrs - string containg extra headers (full format) to be added
+       to the BYE requests of the dialog.
+
+1.4. set_dlg_var (dlg, key, val)
 
 
    Add a variable to the dialog structure
    Add a variable to the dialog structure
 
 
@@ -992,7 +1025,7 @@ Chapter 2. Developer Guide
      * str* key - Name of the variable.
      * str* key - Name of the variable.
      * str* val - Value of the variable.
      * str* val - Value of the variable.
 
 
-1.4.  get_dlg_var (dlg, key)
+1.5. get_dlg_var (dlg, key)
 
 
    Retrieves a variable attached to the dialog structure
    Retrieves a variable attached to the dialog structure
 
 
@@ -1000,62 +1033,63 @@ Chapter 2. Developer Guide
      * struct dlg_cell* dlg - dialog to get the variable from.
      * struct dlg_cell* dlg - dialog to get the variable from.
      * str* key - Name of the variable.
      * str* key - Name of the variable.
 
 
-1.5.  get_current_dialog ()
+1.6. get_current_dialog ()
 
 
    Get the current dialog for a message, if exists
    Get the current dialog for a message, if exists
 
 
 Chapter 3. Frequently Asked Questions
 Chapter 3. Frequently Asked Questions
 
 
-   3.1. What happend with “use_tight_match� parameter?
-   3.2. Why is there a dialog_ng module and a dialog module?
+   3.1. What happend with "use_tight_match" parameter?
+   3.2. Why is there a ims_dialog module and a dialog module?
    3.3. Where can I find more about Kamailio?
    3.3. Where can I find more about Kamailio?
    3.4. Where can I post a question about this module?
    3.4. Where can I post a question about this module?
    3.5. How can I report a bug?
    3.5. How can I report a bug?
 
 
    3.1.
    3.1.
 
 
-       What happend with “use_tight_match� parameter?
+   What happend with "use_tight_match" parameter?
 
 
-       The parameter was removed with version 1.3 as the option of tight
-       matching became mandatory and not configurable. Now, the tight matching
-       is done all the time (when using DID matching).
+   The parameter was removed with version 1.3 as the option of tight
+   matching became mandatory and not configurable. Now, the tight matching
+   is done all the time (when using DID matching).
 
 
    3.2.
    3.2.
 
 
-       Why is there a dialog_ng module and a dialog module?
+   Why is there a ims_dialog module and a dialog module?
 
 
-       The dialog_ng module addresses shortcomings in the intial dialog module
-       design. It makes some large changes to the API and therefore must be
-       introduced slowly. It is currently in the early development stages.
-       Eventually the dialog_ng module should replace the dialog module.
+   The ims_dialog module addresses shortcomings in the intial dialog
+   module design. It makes some large changes to the API and therefore
+   must be introduced slowly. It is currently in the early development
+   stages. Eventually the ims_dialog module should replace the dialog
+   module.
 
 
    3.3.
    3.3.
 
 
-       Where can I find more about Kamailio?
+   Where can I find more about Kamailio?
 
 
-       Take a look at http://www.kamailio.org/.
+   Take a look at http://www.kamailio.org/.
 
 
    3.4.
    3.4.
 
 
-       Where can I post a question about this module?
+   Where can I post a question about this module?
 
 
-       First at all check if your question was already answered on one of our
-       mailing lists:
-         * User Mailing List -
-           http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-         * Developer Mailing List -
-           http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
+   First at all check if your question was already answered on one of our
+   mailing lists:
+     * User Mailing List -
+       http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
+     * Developer Mailing List -
+       http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
 
 
-       E-mails regarding any stable Kamailio release should be sent to
-       <[email protected]> and e-mails regarding development
-       versions should be sent to <[email protected]>.
+   E-mails regarding any stable Kamailio release should be sent to
+   <[email protected]> and e-mails regarding development
+   versions should be sent to <[email protected]>.
 
 
-       If you want to keep the mail private, send it to
-       <[email protected]>.
+   If you want to keep the mail private, send it to
+   <[email protected]>.
 
 
    3.5.
    3.5.
 
 
-       How can I report a bug?
+   How can I report a bug?
 
 
-       Please follow the guidelines provided at:
-       http://sip-router.org/tracker.
+   Please follow the guidelines provided at:
+   http://sip-router.org/tracker.

+ 1 - 1
modules/ims_dialog/doc/Makefile

@@ -1,4 +1,4 @@
-docs = dialog_ng.xml
+docs = ims_dialog.xml
 
 
 docbook_dir = ../../../docbook
 docbook_dir = ../../../docbook
 include $(docbook_dir)/Makefile.module
 include $(docbook_dir)/Makefile.module

+ 7 - 7
modules/ims_dialog/doc/ims_dialog.xml

@@ -10,7 +10,7 @@
 
 
 <book xmlns:xi="http://www.w3.org/2001/XInclude">
 <book xmlns:xi="http://www.w3.org/2001/XInclude">
     <bookinfo>
     <bookinfo>
-        <title>dialog_ng Module</title>
+        <title>IMS_DIALOG Module</title>
         <productname class="trade">&kamailioname;</productname>
         <productname class="trade">&kamailioname;</productname>
         <authorgroup>
         <authorgroup>
             <author>
             <author>
@@ -81,7 +81,7 @@
                     <email>[email protected]</email>
                     <email>[email protected]</email>
                 </address>
                 </address>
             </editor>
             </editor>
-                
+
         </authorgroup>
         </authorgroup>
         <copyright>
         <copyright>
             <year>2006</year>
             <year>2006</year>
@@ -93,9 +93,9 @@
         </copyright>
         </copyright>
     </bookinfo>
     </bookinfo>
     <toc></toc>
     <toc></toc>
-	
-    <xi:include href="dialog_ng_admin.xml"/>
-    <xi:include href="dialog_ng_devel.xml"/>
-    <xi:include href="dialog_ng_faq.xml"/>
-	
+
+    <xi:include href="ims_dialog_admin.xml"/>
+    <xi:include href="ims_dialog_devel.xml"/>
+    <xi:include href="ims_dialog_faq.xml"/>
+
 </book>
 </book>

+ 79 - 82
modules/ims_dialog/doc/ims_dialog_admin.xml

@@ -10,19 +10,19 @@
 <!-- Module User's Guide -->
 <!-- Module User's Guide -->
 
 
 <chapter>
 <chapter>
-	
+
     <title>&adminguide;</title>
     <title>&adminguide;</title>
-	
+
     <section>
     <section>
         <title>Overview</title>
         <title>Overview</title>
         <para>
         <para>
-	The dialog_ng module provides dialog awareness to the &kamailio; proxy. Its
+	The ims_dialog module provides dialog awareness to the &kamailio; proxy. Its
 	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 (like how many dialogs are active) or to manage them. The module
 	about them (like how many dialogs are active) or to manage them. The module
 	exports several functions that could be used directly from scripts.
 	exports several functions that could be used directly from scripts.
-        The dialog_ng module extends the original dialog module by providing support
+        The ims_dialog module extends the original dialog module by providing support
         for forked calling and early dialog termination.  It is the intention that
         for forked calling and early dialog termination.  It is the intention that
-        the dialog_ng module will eventually replace the dialog module.
+        the ims_dialog module will eventually replace the dialog module.
         </para>
         </para>
         <para>
         <para>
 	The module, via an internal API, also provide the foundation to build on
 	The module, via an internal API, also provide the foundation to build on
@@ -40,19 +40,17 @@
 	creating the corresponding transaction.
 	creating the corresponding transaction.
         </para>
         </para>
         <para>
         <para>
-	The dialog is automatically destroyed when a 
+	The dialog is automatically destroyed when a
             <quote>BYE</quote> is
             <quote>BYE</quote> is
-	received. In case of no 
+	received. In case of no
             <quote>BYE</quote>, the dialog lifetime is
             <quote>BYE</quote>, the dialog lifetime is
-	controlled via the default timeout (see 
+	controlled via the default timeout (see
             <quote>default_timeout</quote>
             <quote>default_timeout</quote>
-	- 
+	-
             <xref linkend="default-timeout-id"/>) and custom timeout (see
             <xref linkend="default-timeout-id"/>) and custom timeout (see
-            <quote>timeout_avp</quote> - 
+            <quote>timeout_avp</quote> -
             <xref linkend="timeout-avp-id"/>). The
             <xref linkend="timeout-avp-id"/>). The
 	dialog timeout is reset each time a sequential request passes.
 	dialog timeout is reset each time a sequential request passes.
-       
-        
         </para>
         </para>
     </section>
     </section>
 
 
@@ -143,7 +141,7 @@
                 <varname>enable_stats</varname> (integer)
                 <varname>enable_stats</varname> (integer)
             </title>
             </title>
             <para>
             <para>
-		This function is currently not supported by the dialog_ng module.
+		This function is currently not supported by the ims_dialog module.
                 To be incorporated in the future.
                 To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -165,17 +163,17 @@
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>4096</quote>.
                     <quote>4096</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>hash_size</varname> parameter
                     <varname>hash_size</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "hash_size", 1024)
+modparam("ims_dialog", "hash_size", 1024)
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -191,17 +189,17 @@ modparam("dialog_ng", "hash_size", 1024)
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>did</quote>.
                     <quote>did</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>rr_param</varname> parameter
                     <varname>rr_param</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "rr_param", "xyz")
+modparam("ims_dialog", "rr_param", "xyz")
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -217,17 +215,17 @@ modparam("dialog_ng", "rr_param", "xyz")
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>none</quote>.
                     <quote>none</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>dlg_flag</varname> parameter
                     <varname>dlg_flag</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "dlg_flag", 4)
+modparam("ims_dialog", "dlg_flag", 4)
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -244,17 +242,17 @@ modparam("dialog_ng", "dlg_flag", 4)
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>none</quote>.
                     <quote>none</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>timeout_avp</varname> parameter
                     <varname>timeout_avp</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "timeout_avp", "$avp(i:10)")
+modparam("ims_dialog", "timeout_avp", "$avp(i:10)")
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -269,17 +267,17 @@ modparam("dialog_ng", "timeout_avp", "$avp(i:10)")
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>43200 (12 hours)</quote>.
                     <quote>43200 (12 hours)</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>default_timeout</varname> parameter
                     <varname>default_timeout</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "default_timeout", 21600)
+modparam("ims_dialog", "default_timeout", 21600)
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -295,17 +293,17 @@ modparam("dialog_ng", "default_timeout", 21600)
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>NULL</quote>.
                     <quote>NULL</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>dlf_extra_hdrs</varname> parameter
                     <varname>dlf_extra_hdrs</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "dlg_extra_hdrs", "Hint: credit expired\r\n")
+modparam("ims_dialog", "dlg_extra_hdrs", "Hint: credit expired\r\n")
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -337,12 +335,12 @@ modparam("dialog_ng", "dlg_extra_hdrs", "Hint: credit expired\r\n")
 			Default value is 1.
 			Default value is 1.
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>detect_spirals</varname> parameter
                     <varname>detect_spirals</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
 ...
 ...
-modparam("dialog_ng", "detect_spirals", 1)
+modparam("ims_dialog", "detect_spirals", 1)
 ...
 ...
                 </programlisting>
                 </programlisting>
             </example>
             </example>
@@ -353,7 +351,7 @@ modparam("dialog_ng", "detect_spirals", 1)
                 <varname>db_url</varname> (string)
                 <varname>db_url</varname> (string)
             </title>
             </title>
             <para>
             <para>
-		Db storage not yet supported by dialog_ng - this to be done in future.
+		Db storage not yet supported by ims_dialog - this to be done in future.
             </para>
             </para>
         </section>
         </section>
 
 
@@ -362,7 +360,7 @@ modparam("dialog_ng", "detect_spirals", 1)
                 <varname>db_mode</varname> (integer)
                 <varname>db_mode</varname> (integer)
             </title>
             </title>
             <para>
             <para>
-		Db storage not yet supported by dialog_ng - this to be done in future.
+		Db storage not yet supported by ims_dialog - this to be done in future.
             </para>
             </para>
         </section>
         </section>
 
 
@@ -371,7 +369,7 @@ modparam("dialog_ng", "detect_spirals", 1)
                 <varname>db_update_period</varname> (integer)
                 <varname>db_update_period</varname> (integer)
             </title>
             </title>
             <para>
             <para>
-		Db storage not yet supported by dialog_ng - this to be done in future.
+		Db storage not yet supported by ims_dialog - this to be done in future.
             </para>
             </para>
         </section>
         </section>
 
 
@@ -380,7 +378,7 @@ modparam("dialog_ng", "detect_spirals", 1)
                 <varname>db_fetch_rows</varname> (integer)
                 <varname>db_fetch_rows</varname> (integer)
             </title>
             </title>
             <para>
             <para>
-		Db storage not yet supported by dialog_ng - this to be done in future.
+		Db storage not yet supported by ims_dialog - this to be done in future.
             </para>
             </para>
         </section>
         </section>
 
 
@@ -389,7 +387,7 @@ modparam("dialog_ng", "detect_spirals", 1)
                 <varname>table_name</varname> (string)
                 <varname>table_name</varname> (string)
             </title>
             </title>
             <para>
             <para>
-		Db storage not yet supported by dialog_ng - this to be done in future.
+		Db storage not yet supported by ims_dialog - this to be done in future.
             </para>
             </para>
         </section>
         </section>
 
 
@@ -402,12 +400,12 @@ modparam("dialog_ng", "detect_spirals", 1)
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>empty</quote>.
                     <quote>empty</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>profiles_with_value</varname> parameter
                     <varname>profiles_with_value</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
@@ -427,12 +425,12 @@ modparam("dialog", "profiles_with_value", "caller ; my_profile")
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>empty</quote>.
                     <quote>empty</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>profiles_no_value</varname> parameter
                     <varname>profiles_no_value</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
@@ -452,12 +450,12 @@ modparam("dialog", "profiles_no_value", "inbound ; outbound")
             </para>
             </para>
             <para>
             <para>
                 <emphasis>
                 <emphasis>
-			Default value is 
+			Default value is
                     <quote>sip:[email protected]</quote>.
                     <quote>sip:[email protected]</quote>.
                 </emphasis>
                 </emphasis>
             </para>
             </para>
             <example>
             <example>
-                <title>Set 
+                <title>Set
                     <varname>bridge_controller</varname> parameter
                     <varname>bridge_controller</varname> parameter
                 </title>
                 </title>
                 <programlisting format="linespecific">
                 <programlisting format="linespecific">
@@ -774,14 +772,14 @@ redlg_setflag("1");
                 <function moreinfo="none">dlg_terminate</function>
                 <function moreinfo="none">dlg_terminate</function>
             </title>
             </title>
             <para>
             <para>
-		Terminates a dialog.  In dialog_ng module this function now
+		Terminates a dialog.  In ims_dialog module this function now
                 includes support for early as well as confirmed dialogs.
                 includes support for early as well as confirmed dialogs.
             </para>
             </para>
             <para>Meaning of the parameters is as follows:</para>
             <para>Meaning of the parameters is as follows:</para>
             <itemizedlist>
             <itemizedlist>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>side</emphasis> - which side to terminate. 
+                        <emphasis>side</emphasis> - which side to terminate.
                             It can be: caller, callee or both of them.
                             It can be: caller, callee or both of them.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
@@ -812,7 +810,7 @@ dlg_terminate("all", "Insufficient QoS");
                 <function moreinfo="none">dlg_refer(side, address)</function>
                 <function moreinfo="none">dlg_refer(side, address)</function>
             </title>
             </title>
             <para>
             <para>
-		This function is currently not supported by the dialog_ng module.
+		This function is currently not supported by the ims_dialog module.
                 To be incorporated in the future.
                 To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -822,8 +820,8 @@ dlg_terminate("all", "Insufficient QoS");
                 <function moreinfo="none">dlg_manage()</function>
                 <function moreinfo="none">dlg_manage()</function>
             </title>
             </title>
             <para>
             <para>
-		This has been deprecated in dialog_ng. Instead set dialog flag for 
-                initial INVITE and Route-parameter-callback execution for 
+		This has been deprecated in ims_dialog. Instead set dialog flag for
+                initial INVITE and Route-parameter-callback execution for
                 within-dialog requests.
                 within-dialog requests.
             </para>
             </para>
         </section>
         </section>
@@ -833,7 +831,7 @@ dlg_terminate("all", "Insufficient QoS");
                 <function moreinfo="none">dlg_bridge(from, to, op)</function>
                 <function moreinfo="none">dlg_bridge(from, to, op)</function>
             </title>
             </title>
             <para>
             <para>
-		This function is currently not supported by the dialog_ng module.
+		This function is currently not supported by the ims_dialog module.
                 To be incorporated in the future.
                 To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -877,13 +875,13 @@ if(dlg_get("abcdef", "123", "456"))
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>
-	
+
         <section>
         <section>
             <title>
             <title>
                 <function moreinfo="none">is_known_dlg()</function>
                 <function moreinfo="none">is_known_dlg()</function>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -898,7 +896,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>active_dialogs</varname>
                 <varname>active_dialogs</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -907,16 +905,16 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>early_dialogs</varname>
                 <varname>early_dialogs</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
-        </section>		
+        </section>
         <section>
         <section>
             <title>
             <title>
                 <varname>processed_dialogs</varname>
                 <varname>processed_dialogs</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -925,7 +923,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>expired_dialogs</varname>
                 <varname>expired_dialogs</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -934,7 +932,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>failed_dialogs</varname>
                 <varname>failed_dialogs</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -951,12 +949,11 @@ if(dlg_get("abcdef", "123", "456"))
             <para>
             <para>
 		Lists the description of a dialog or of all dialogs (calls). If only
 		Lists the description of a dialog or of all dialogs (calls). If only
 		one dialogs is to be listed, the dialog identifiers are to be passed
 		one dialogs is to be listed, the dialog identifiers are to be passed
-		as parameter (callid and fromtag).  In dialog_ng module this also now 
+		as parameter (callid and fromtag).  In ims_dialog module this also now
                 also lists all dlg_out entries for early dialogs.
                 also lists all dlg_out entries for early dialogs.
-                
             </para>
             </para>
             <para>
             <para>
-		Name: 
+		Name:
                 <emphasis>dlg_list</emphasis>
                 <emphasis>dlg_list</emphasis>
             </para>
             </para>
             <para>Parameters:</para>
             <para>Parameters:</para>
@@ -997,7 +994,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg_list_ctx</varname>
                 <varname>dlg_list_ctx</varname>
             </title>
             </title>
             <para>
             <para>
-		This function is currently not supported by the dialog_ng module.
+		This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1007,7 +1004,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg_end_dlg</varname>
                 <varname>dlg_end_dlg</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1017,11 +1014,11 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg_terminate_dlg</varname>
                 <varname>dlg_terminate_dlg</varname>
             </title>
             </title>
             <para>
             <para>
-		Terminates a singe dialog, identified by the call_id, ftag, ttag. In dialog_ng module this
+		Terminates a singe dialog, identified by the call_id, ftag, ttag. In ims_dialog module this
                 dialog can be terminated in the early or confirmed states.
                 dialog can be terminated in the early or confirmed states.
             </para>
             </para>
             <para>
             <para>
-		Name: 
+		Name:
                 <emphasis>dlg_terminate_dlg</emphasis>
                 <emphasis>dlg_terminate_dlg</emphasis>
             </para>
             </para>
             <para>Parameters:</para>
             <para>Parameters:</para>
@@ -1060,7 +1057,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>profile_get_size</varname>
                 <varname>profile_get_size</varname>
             </title>
             </title>
             <para>
             <para>
-		This function is currently not supported by the dialog_ng module.
+		This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1070,7 +1067,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>profile_list_dlgs</varname>
                 <varname>profile_list_dlgs</varname>
             </title>
             </title>
             <para>
             <para>
-		This function is currently not supported by the dialog_ng module.
+		This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1080,7 +1077,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg_bridge</varname>
                 <varname>dlg_bridge</varname>
             </title>
             </title>
             <para>
             <para>
-			This function is currently not supported by the dialog_ng module.
+			This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1095,7 +1092,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.list</varname>
                 <varname>dlg.list</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1105,7 +1102,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.list_ctx</varname>
                 <varname>dlg.list_ctx</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1115,7 +1112,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.dlg_list</varname>
                 <varname>dlg.dlg_list</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1125,7 +1122,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.dlg_list_ctx</varname>
                 <varname>dlg.dlg_list_ctx</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1135,7 +1132,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.end_dlg</varname>
                 <varname>dlg.end_dlg</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1145,7 +1142,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.profile_get_size</varname>
                 <varname>dlg.profile_get_size</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1155,7 +1152,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.profile_list</varname>
                 <varname>dlg.profile_list</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1165,7 +1162,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>dlg.bridge_dlg</varname>
                 <varname>dlg.bridge_dlg</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1181,7 +1178,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>$DLG_count</varname>
                 <varname>$DLG_count</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1191,7 +1188,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>$DLG_status</varname>
                 <varname>$DLG_status</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1201,7 +1198,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>$DLG_lifetime</varname>
                 <varname>$DLG_lifetime</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1210,7 +1207,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>$dlg(...)</varname>
                 <varname>$dlg(...)</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1219,7 +1216,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>$dlg_ctx(...)</varname>
                 <varname>$dlg_ctx(...)</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>
@@ -1229,7 +1226,7 @@ if(dlg_get("abcdef", "123", "456"))
                 <varname>$dlg_var(key)</varname>
                 <varname>$dlg_var(key)</varname>
             </title>
             </title>
             <para>
             <para>
-                    This function is currently not supported by the dialog_ng module.
+                    This function is currently not supported by the ims_dialog module.
                     To be incorporated in the future.
                     To be incorporated in the future.
             </para>
             </para>
         </section>
         </section>

+ 24 - 25
modules/ims_dialog/doc/ims_dialog_devel.xml

@@ -10,7 +10,7 @@
 <!-- Module Developer's Guide -->
 <!-- Module Developer's Guide -->
 
 
 <chapter>
 <chapter>
-	
+
     <title>&develguide;</title>
     <title>&develguide;</title>
     <section>
     <section>
         <title>Available Functions</title>
         <title>Available Functions</title>
@@ -26,7 +26,7 @@
             <itemizedlist>
             <itemizedlist>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>struct dlg_cell* dlg</emphasis> - dialog to 
+                        <emphasis>struct dlg_cell* dlg</emphasis> - dialog to
 			register callback to. If maybe NULL only for DLGCB_CREATED callback
 			register callback to. If maybe NULL only for DLGCB_CREATED callback
 			type, which is not a per dialog type.
 			type, which is not a per dialog type.
                     </para>
                     </para>
@@ -34,7 +34,7 @@
                 <listitem>
                 <listitem>
                     <para>
                     <para>
                         <emphasis>int type</emphasis> - types of callbacks; more
                         <emphasis>int type</emphasis> - types of callbacks; more
-			types may be register for the same callback function; only 
+			types may be register for the same callback function; only
 			DLGCB_CREATED must be register alone. Possible types:
 			DLGCB_CREATED must be register alone. Possible types:
                         <itemizedlist>
                         <itemizedlist>
                             <listitem>
                             <listitem>
@@ -44,8 +44,8 @@
                             </listitem>
                             </listitem>
                             <listitem>
                             <listitem>
                                 <para>
                                 <para>
-                                    <emphasis>DLGCB_CREATED</emphasis> - called when a new 
-				dialog is created - it's a global type (not associated to 
+                                    <emphasis>DLGCB_CREATED</emphasis> - called when a new
+				dialog is created - it's a global type (not associated to
 				any dialog)
 				any dialog)
                                 </para>
                                 </para>
                             </listitem>
                             </listitem>
@@ -71,7 +71,7 @@
                             </listitem>
                             </listitem>
                             <listitem>
                             <listitem>
                                 <para>
                                 <para>
-                                    <emphasis>DLGCB_REQ_WITHIN</emphasis> - called when the 
+                                    <emphasis>DLGCB_REQ_WITHIN</emphasis> - called when the
 				dialog matches a sequential request (excluding setup-concluding
 				dialog matches a sequential request (excluding setup-concluding
 				ACK messages which are handled in DLGCB_CONFIRMED) - it's a per
 				ACK messages which are handled in DLGCB_CONFIRMED) - it's a per
 				dialog type.
 				dialog type.
@@ -79,7 +79,7 @@
                             </listitem>
                             </listitem>
                             <listitem>
                             <listitem>
                                 <para>
                                 <para>
-                                    <emphasis>DLGCB_TERMINATED</emphasis> - called when the 
+                                    <emphasis>DLGCB_TERMINATED</emphasis> - called when the
 				dialog is terminated via BYE - it's a per dialog type.
 				dialog is terminated via BYE - it's a per dialog type.
                                 </para>
                                 </para>
                             </listitem>
                             </listitem>
@@ -92,8 +92,8 @@
                             </listitem>
                             </listitem>
                             <listitem>
                             <listitem>
                                 <para>
                                 <para>
-                                    <emphasis>DLGCB_EXPIRED</emphasis> - called when the 
-				dialog expires without receiving a BYE - it's a per dialog 
+                                    <emphasis>DLGCB_EXPIRED</emphasis> - called when the
+				dialog expires without receiving a BYE - it's a per dialog
 				type.
 				type.
                                 </para>
                                 </para>
                             </listitem>
                             </listitem>
@@ -140,9 +140,9 @@
                 </listitem>
                 </listitem>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>dialog_cb cb</emphasis> - callback function to be 
-			called. Prototype is: 
-                        <quote>void (dialog_cb) 
+                        <emphasis>dialog_cb cb</emphasis> - callback function to be
+			called. Prototype is:
+                        <quote>void (dialog_cb)
 			(struct dlg_cell* dlg, int type, struct dlg_cb_params * params);
 			(struct dlg_cell* dlg, int type, struct dlg_cb_params * params);
                         </quote>
                         </quote>
                     </para>
                     </para>
@@ -155,9 +155,9 @@
                 </listitem>
                 </listitem>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>param_free callback_param_free</emphasis> - 
+                        <emphasis>param_free callback_param_free</emphasis> -
 			callback function to be called to free the param.
 			callback function to be called to free the param.
-			Prototype is: 
+			Prototype is:
                         <quote>void (param_free_cb) (void *param);</quote>
                         <quote>void (param_free_cb) (void *param);</quote>
                     </para>
                     </para>
                 </listitem>
                 </listitem>
@@ -176,25 +176,25 @@
             <itemizedlist>
             <itemizedlist>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>str* callid</emphasis> - callid of dialog to 
+                        <emphasis>str* callid</emphasis> - callid of dialog to
 			terminate.
 			terminate.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>str* ftag</emphasis> - from_tag of dialog to 
+                        <emphasis>str* ftag</emphasis> - from_tag of dialog to
 			terminate.
 			terminate.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>str* ttag</emphasis> - to tag of dialog to 
+                        <emphasis>str* ttag</emphasis> - to tag of dialog to
 			terminate.
 			terminate.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>str* hdrs</emphasis> - string containg extra headers (full format) 
+                        <emphasis>str* hdrs</emphasis> - string containg extra headers (full format)
 			to be added to the BYE requests of the dialog.
 			to be added to the BYE requests of the dialog.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
@@ -223,13 +223,13 @@
                 </listitem>
                 </listitem>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>str* hdrs</emphasis> - string containg extra headers (full format) 
+                        <emphasis>str* hdrs</emphasis> - string containg extra headers (full format)
 			to be added to the BYE requests of the dialog.
 			to be added to the BYE requests of the dialog.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
             </itemizedlist>
             </itemizedlist>
         </section>
         </section>
-        
+
         <section>
         <section>
             <title>
             <title>
                 <function moreinfo="none">set_dlg_var (dlg, key, val)</function>
                 <function moreinfo="none">set_dlg_var (dlg, key, val)</function>
@@ -241,7 +241,7 @@
             <itemizedlist>
             <itemizedlist>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>struct dlg_cell* dlg</emphasis> - dialog to 
+                        <emphasis>struct dlg_cell* dlg</emphasis> - dialog to
 			add to.
 			add to.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
@@ -257,7 +257,7 @@
                 </listitem>
                 </listitem>
             </itemizedlist>
             </itemizedlist>
         </section>
         </section>
-        
+
         <section>
         <section>
             <title>
             <title>
                 <function moreinfo="none">get_dlg_var (dlg, key)</function>
                 <function moreinfo="none">get_dlg_var (dlg, key)</function>
@@ -269,7 +269,7 @@
             <itemizedlist>
             <itemizedlist>
                 <listitem>
                 <listitem>
                     <para>
                     <para>
-                        <emphasis>struct dlg_cell* dlg</emphasis> - dialog to 
+                        <emphasis>struct dlg_cell* dlg</emphasis> - dialog to
 			get the variable from.
 			get the variable from.
                     </para>
                     </para>
                 </listitem>
                 </listitem>
@@ -280,7 +280,7 @@
                 </listitem>
                 </listitem>
             </itemizedlist>
             </itemizedlist>
         </section>
         </section>
-        
+
         <section>
         <section>
             <title>
             <title>
                 <function moreinfo="none">get_current_dialog ()</function>
                 <function moreinfo="none">get_current_dialog ()</function>
@@ -289,7 +289,6 @@
 		Get the current dialog for a message, if exists
 		Get the current dialog for a message, if exists
             </para>
             </para>
         </section>
         </section>
-        
 
 
     </section>
     </section>
 
 

+ 9 - 9
modules/ims_dialog/doc/ims_dialog_faq.xml

@@ -11,12 +11,12 @@
 <!-- Module FAQ -->
 <!-- Module FAQ -->
 
 
 <chapter>
 <chapter>
-	
+
 	<title>&faqguide;</title>
 	<title>&faqguide;</title>
 	<qandaset defaultlabel="number">
 	<qandaset defaultlabel="number">
 	<qandaentry>
 	<qandaentry>
 		<question>
 		<question>
-		<para>What happend with <quote>use_tight_match</quote> 
+		<para>What happend with <quote>use_tight_match</quote>
 		parameter?</para>
 		parameter?</para>
 		</question>
 		</question>
 		<answer>
 		<answer>
@@ -29,14 +29,14 @@
 	</qandaentry>
 	</qandaentry>
         <qandaentry>
         <qandaentry>
 		<question>
 		<question>
-		<para>Why is there a dialog_ng module and a dialog module?</para>
+		<para>Why is there a ims_dialog module and a dialog module?</para>
 		</question>
 		</question>
 		<answer>
 		<answer>
 		<para>
 		<para>
-			The dialog_ng module addresses shortcomings in the intial dialog
-                        module design.  It makes some large changes to the API and 
+			The ims_dialog module addresses shortcomings in the intial dialog
+                        module design.  It makes some large changes to the API and
                         therefore must be introduced slowly.  It is currently in the
                         therefore must be introduced slowly.  It is currently in the
-                        early development stages.  Eventually the dialog_ng module should
+                        early development stages.  Eventually the ims_dialog module should
                         replace the dialog module.
                         replace the dialog module.
 		</para>
 		</para>
 		</answer>
 		</answer>
@@ -58,7 +58,7 @@
 		<answer>
 		<answer>
 		<para>
 		<para>
 			First at all check if your question was already answered on one of
 			First at all check if your question was already answered on one of
-			our mailing lists: 
+			our mailing lists:
 		</para>
 		</para>
 		<itemizedlist>
 		<itemizedlist>
 			<listitem>
 			<listitem>
@@ -69,12 +69,12 @@
 			</listitem>
 			</listitem>
 		</itemizedlist>
 		</itemizedlist>
 		<para>
 		<para>
-			E-mails regarding any stable &kamailio; release should be sent to 
+			E-mails regarding any stable &kamailio; release should be sent to
 			&kamailiousersmail; and e-mails regarding development versions
 			&kamailiousersmail; and e-mails regarding development versions
 			should be sent to &kamailiodevmail;.
 			should be sent to &kamailiodevmail;.
 		</para>
 		</para>
 		<para>
 		<para>
-			If you want to keep the mail private, send it to 
+			If you want to keep the mail private, send it to
 			&kamailiohelpmail;.
 			&kamailiohelpmail;.
 		</para>
 		</para>
 		</answer>
 		</answer>