From 00a4efc80c8023dddcc0da8e0b19da89147714ab Mon Sep 17 00:00:00 2001 From: Kamailio Dev Date: Tue, 3 Nov 2020 15:16:14 +0100 Subject: [PATCH] modules: readme files regenerated - acc ... [skip ci] --- src/modules/acc/README | 505 +++++++++++++++++++++-------------------- 1 file changed, 261 insertions(+), 244 deletions(-) diff --git a/src/modules/acc/README b/src/modules/acc/README index c01dca1c882..2414364c70d 100644 --- a/src/modules/acc/README +++ b/src/modules/acc/README @@ -85,45 +85,46 @@ Sven Knoblich 6.6. detect_direction (integer) 6.7. acc_prepare_flag (integer) 6.8. acc_prepare_always (integer) - 6.9. multi_leg_info (string) - 6.10. log_flag (integer) - 6.11. log_missed_flag (integer) - 6.12. log_level (integer) - 6.13. log_facility (string) - 6.14. log_extra (string) - 6.15. db_flag (integer) - 6.16. db_missed_flag (integer) - 6.17. db_table_acc (string) - 6.18. db_table_missed_calls (string) - 6.19. db_url (string) - 6.20. acc_method_column (string) - 6.21. acc_from_tag_column (string) - 6.22. acc_to_tag_column (string) - 6.23. acc_callid_column (string) - 6.24. acc_sip_code_column (string) - 6.25. acc_sip_reason_column (string) - 6.26. acc_time_column (string) - 6.27. db_extra (string) - 6.28. db_insert_mode (integer) - 6.29. cdr_enable (integer) - 6.30. cdr_skip (string) - 6.31. cdr_expired_dlg_enable (integer) - 6.32. cdr_start_on_confirmed (integer) - 6.33. cdr_facility (integer) - 6.34. cdr_extra (string) - 6.35. cdr_extra_nullable (integer) - 6.36. cdr_start_id (string) - 6.37. cdr_end_id (string) - 6.38. cdr_duration_id (string) - 6.39. cdr_log_enable (int) - 6.40. cdrs_table (str) - 6.41. time_mode (int) - 6.42. time_attr (str) - 6.43. time_exten (str) - 6.44. time_format (str) - 6.45. reason_from_hf (int) - 6.46. clone_msg (int) - 6.47. cdr_on_failed (int) + 6.9. acc_extra_nullable (integer) + 6.10. multi_leg_info (string) + 6.11. log_flag (integer) + 6.12. log_missed_flag (integer) + 6.13. log_level (integer) + 6.14. log_facility (string) + 6.15. log_extra (string) + 6.16. db_flag (integer) + 6.17. db_missed_flag (integer) + 6.18. db_table_acc (string) + 6.19. db_table_missed_calls (string) + 6.20. db_url (string) + 6.21. acc_method_column (string) + 6.22. acc_from_tag_column (string) + 6.23. acc_to_tag_column (string) + 6.24. acc_callid_column (string) + 6.25. acc_sip_code_column (string) + 6.26. acc_sip_reason_column (string) + 6.27. acc_time_column (string) + 6.28. db_extra (string) + 6.29. db_insert_mode (integer) + 6.30. cdr_enable (integer) + 6.31. cdr_skip (string) + 6.32. cdr_expired_dlg_enable (integer) + 6.33. cdr_start_on_confirmed (integer) + 6.34. cdr_facility (integer) + 6.35. cdr_extra (string) + 6.36. cdr_extra_nullable (integer) + 6.37. cdr_start_id (string) + 6.38. cdr_end_id (string) + 6.39. cdr_duration_id (string) + 6.40. cdr_log_enable (int) + 6.41. cdrs_table (str) + 6.42. time_mode (int) + 6.43. time_attr (str) + 6.44. time_exten (str) + 6.45. time_format (str) + 6.46. reason_from_hf (int) + 6.47. clone_msg (int) + 6.48. cdr_on_failed (int) 7. Functions @@ -144,49 +145,50 @@ Sven Knoblich 1.6. detect_direction example 1.7. acc_prepare_flag example 1.8. acc_prepare_flag example - 1.9. multi_leg_info example - 1.10. log_flag example - 1.11. log_missed_flag example - 1.12. log_level example - 1.13. log_facility example - 1.14. log_extra example - 1.15. db_flag example - 1.16. db_missed_flag example - 1.17. db_table_acc example - 1.18. db_table_missed_calls example - 1.19. db_url example - 1.20. acc_method_column example - 1.21. acc_from_tag_column example - 1.22. acc_to_tag_column example - 1.23. acc_callid_column example - 1.24. acc_sip_code_column example - 1.25. acc_sip_reason_column example - 1.26. acc_time_column example - 1.27. db_extra example - 1.28. db_insert_mode example - 1.29. cdr_enable example - 1.30. cdr_skip example - 1.31. cdr_expired_dlg_enable example - 1.32. cdr_start_on_confirmed example - 1.33. cdr_facility example - 1.34. cdr_extra example - 1.35. cdr_extra_nullable example - 1.36. cdr_start_id example - 1.37. cdr_end_id example - 1.38. cdr_duration_id example - 1.39. cdr_log_enable example - 1.40. cdrs_table example - 1.41. time_mode example - 1.42. time_attr example - 1.43. time_exten example - 1.44. time_format example - 1.45. reason_from_hf - 1.46. clone_msg - 1.47. cdr_on_failed - 1.48. acc_log_request usage - 1.49. acc_db_request usage + 1.9. acc_extra_nullable example + 1.10. multi_leg_info example + 1.11. log_flag example + 1.12. log_missed_flag example + 1.13. log_level example + 1.14. log_facility example + 1.15. log_extra example + 1.16. db_flag example + 1.17. db_missed_flag example + 1.18. db_table_acc example + 1.19. db_table_missed_calls example + 1.20. db_url example + 1.21. acc_method_column example + 1.22. acc_from_tag_column example + 1.23. acc_to_tag_column example + 1.24. acc_callid_column example + 1.25. acc_sip_code_column example + 1.26. acc_sip_reason_column example + 1.27. acc_time_column example + 1.28. db_extra example + 1.29. db_insert_mode example + 1.30. cdr_enable example + 1.31. cdr_skip example + 1.32. cdr_expired_dlg_enable example + 1.33. cdr_start_on_confirmed example + 1.34. cdr_facility example + 1.35. cdr_extra example + 1.36. cdr_extra_nullable example + 1.37. cdr_start_id example + 1.38. cdr_end_id example + 1.39. cdr_duration_id example + 1.40. cdr_log_enable example + 1.41. cdrs_table example + 1.42. time_mode example + 1.43. time_attr example + 1.44. time_exten example + 1.45. time_format example + 1.46. reason_from_hf + 1.47. clone_msg + 1.48. cdr_on_failed + 1.49. acc_log_request usage 1.50. acc_db_request usage - 1.51. acc_diam_request usage + 1.51. acc_db_request usage + 1.52. acc_diam_request usage Chapter 1. Admin Guide @@ -239,45 +241,46 @@ Chapter 1. Admin Guide 6.6. detect_direction (integer) 6.7. acc_prepare_flag (integer) 6.8. acc_prepare_always (integer) - 6.9. multi_leg_info (string) - 6.10. log_flag (integer) - 6.11. log_missed_flag (integer) - 6.12. log_level (integer) - 6.13. log_facility (string) - 6.14. log_extra (string) - 6.15. db_flag (integer) - 6.16. db_missed_flag (integer) - 6.17. db_table_acc (string) - 6.18. db_table_missed_calls (string) - 6.19. db_url (string) - 6.20. acc_method_column (string) - 6.21. acc_from_tag_column (string) - 6.22. acc_to_tag_column (string) - 6.23. acc_callid_column (string) - 6.24. acc_sip_code_column (string) - 6.25. acc_sip_reason_column (string) - 6.26. acc_time_column (string) - 6.27. db_extra (string) - 6.28. db_insert_mode (integer) - 6.29. cdr_enable (integer) - 6.30. cdr_skip (string) - 6.31. cdr_expired_dlg_enable (integer) - 6.32. cdr_start_on_confirmed (integer) - 6.33. cdr_facility (integer) - 6.34. cdr_extra (string) - 6.35. cdr_extra_nullable (integer) - 6.36. cdr_start_id (string) - 6.37. cdr_end_id (string) - 6.38. cdr_duration_id (string) - 6.39. cdr_log_enable (int) - 6.40. cdrs_table (str) - 6.41. time_mode (int) - 6.42. time_attr (str) - 6.43. time_exten (str) - 6.44. time_format (str) - 6.45. reason_from_hf (int) - 6.46. clone_msg (int) - 6.47. cdr_on_failed (int) + 6.9. acc_extra_nullable (integer) + 6.10. multi_leg_info (string) + 6.11. log_flag (integer) + 6.12. log_missed_flag (integer) + 6.13. log_level (integer) + 6.14. log_facility (string) + 6.15. log_extra (string) + 6.16. db_flag (integer) + 6.17. db_missed_flag (integer) + 6.18. db_table_acc (string) + 6.19. db_table_missed_calls (string) + 6.20. db_url (string) + 6.21. acc_method_column (string) + 6.22. acc_from_tag_column (string) + 6.23. acc_to_tag_column (string) + 6.24. acc_callid_column (string) + 6.25. acc_sip_code_column (string) + 6.26. acc_sip_reason_column (string) + 6.27. acc_time_column (string) + 6.28. db_extra (string) + 6.29. db_insert_mode (integer) + 6.30. cdr_enable (integer) + 6.31. cdr_skip (string) + 6.32. cdr_expired_dlg_enable (integer) + 6.33. cdr_start_on_confirmed (integer) + 6.34. cdr_facility (integer) + 6.35. cdr_extra (string) + 6.36. cdr_extra_nullable (integer) + 6.37. cdr_start_id (string) + 6.38. cdr_end_id (string) + 6.39. cdr_duration_id (string) + 6.40. cdr_log_enable (int) + 6.41. cdrs_table (str) + 6.42. time_mode (int) + 6.43. time_attr (str) + 6.44. time_exten (str) + 6.45. time_format (str) + 6.46. reason_from_hf (int) + 6.47. clone_msg (int) + 6.48. cdr_on_failed (int) 7. Functions @@ -339,7 +342,7 @@ Chapter 1. Admin Guide status (including media status and PSTN status in case of the gateway). However, CDR-base logging has the option to log existing information from expired dialogs (the dlg_vars in cdr_extra) Please - see cdr_expired_dlg_enable parameter - Section 6.31, + see cdr_expired_dlg_enable parameter - Section 6.32, “cdr_expired_dlg_enable (integer)”. The SQL backend support is compiled in the module. @@ -526,7 +529,7 @@ Note Sometimes, dialogs expire because the UA has a problem and a final message is never transmitted. You can toggle on/off the generation of CDR-based logging in such cases with only the dlg_vars showing by using - the cdr_expired_dlg_enable parameter - Section 6.31, + the cdr_expired_dlg_enable parameter - Section 6.32, “cdr_expired_dlg_enable (integer)”. Default behavior is not logging. 4.2. CDR Extra @@ -541,7 +544,7 @@ Note * cdr_extra = cdr_extra_definition (';'cdr_extra_definition)* * cdr_extra_definition = cdr_log_name '=' pseudo_variable - See also Section 6.34, “cdr_extra (string)”. + See also Section 6.35, “cdr_extra (string)”. The list with all pseudo-variables in Kamailio can be found at: https://www.kamailio.org/wiki/. @@ -634,45 +637,46 @@ $dlg_var(callee) = $avp(callee); #callee='C' 6.6. detect_direction (integer) 6.7. acc_prepare_flag (integer) 6.8. acc_prepare_always (integer) - 6.9. multi_leg_info (string) - 6.10. log_flag (integer) - 6.11. log_missed_flag (integer) - 6.12. log_level (integer) - 6.13. log_facility (string) - 6.14. log_extra (string) - 6.15. db_flag (integer) - 6.16. db_missed_flag (integer) - 6.17. db_table_acc (string) - 6.18. db_table_missed_calls (string) - 6.19. db_url (string) - 6.20. acc_method_column (string) - 6.21. acc_from_tag_column (string) - 6.22. acc_to_tag_column (string) - 6.23. acc_callid_column (string) - 6.24. acc_sip_code_column (string) - 6.25. acc_sip_reason_column (string) - 6.26. acc_time_column (string) - 6.27. db_extra (string) - 6.28. db_insert_mode (integer) - 6.29. cdr_enable (integer) - 6.30. cdr_skip (string) - 6.31. cdr_expired_dlg_enable (integer) - 6.32. cdr_start_on_confirmed (integer) - 6.33. cdr_facility (integer) - 6.34. cdr_extra (string) - 6.35. cdr_extra_nullable (integer) - 6.36. cdr_start_id (string) - 6.37. cdr_end_id (string) - 6.38. cdr_duration_id (string) - 6.39. cdr_log_enable (int) - 6.40. cdrs_table (str) - 6.41. time_mode (int) - 6.42. time_attr (str) - 6.43. time_exten (str) - 6.44. time_format (str) - 6.45. reason_from_hf (int) - 6.46. clone_msg (int) - 6.47. cdr_on_failed (int) + 6.9. acc_extra_nullable (integer) + 6.10. multi_leg_info (string) + 6.11. log_flag (integer) + 6.12. log_missed_flag (integer) + 6.13. log_level (integer) + 6.14. log_facility (string) + 6.15. log_extra (string) + 6.16. db_flag (integer) + 6.17. db_missed_flag (integer) + 6.18. db_table_acc (string) + 6.19. db_table_missed_calls (string) + 6.20. db_url (string) + 6.21. acc_method_column (string) + 6.22. acc_from_tag_column (string) + 6.23. acc_to_tag_column (string) + 6.24. acc_callid_column (string) + 6.25. acc_sip_code_column (string) + 6.26. acc_sip_reason_column (string) + 6.27. acc_time_column (string) + 6.28. db_extra (string) + 6.29. db_insert_mode (integer) + 6.30. cdr_enable (integer) + 6.31. cdr_skip (string) + 6.32. cdr_expired_dlg_enable (integer) + 6.33. cdr_start_on_confirmed (integer) + 6.34. cdr_facility (integer) + 6.35. cdr_extra (string) + 6.36. cdr_extra_nullable (integer) + 6.37. cdr_start_id (string) + 6.38. cdr_end_id (string) + 6.39. cdr_duration_id (string) + 6.40. cdr_log_enable (int) + 6.41. cdrs_table (str) + 6.42. time_mode (int) + 6.43. time_attr (str) + 6.44. time_exten (str) + 6.45. time_format (str) + 6.46. reason_from_hf (int) + 6.47. clone_msg (int) + 6.48. cdr_on_failed (int) 6.1. early_media (integer) @@ -785,7 +789,20 @@ modparam("acc", "acc_prepare_flag", 5) modparam("acc", "acc_prepare_always", 1) ... -6.9. multi_leg_info (string) +6.9. acc_extra_nullable (integer) + + If set to 1, the database acc extra fields are set to NULL if the + corresponding script variable is not defined or has $null value. If set + to 0, the value is saved as empty string (the existing behavior). + + Default value is 0. + + Example 1.9. acc_extra_nullable example +... +modparam("acc", "acc_extra_nullable", 1) +... + +6.10. multi_leg_info (string) Defines the AVP set to be used in per-call-leg accounting. See Section 3, “Multi Call-Legs accounting” for a detailed description of @@ -795,7 +812,7 @@ modparam("acc", "acc_prepare_always", 1) Default value is 0 (disabled). - Example 1.9. multi_leg_info example + Example 1.10. multi_leg_info example ... # for syslog-based accounting, use any text you want to be printed modparam("acc", "multi_leg_info", @@ -808,18 +825,18 @@ modparam("acc", "multi_leg_info", "2345=$avp(src);2346=$avp(dst)") ... -6.10. log_flag (integer) +6.11. log_flag (integer) Request flag which needs to be set to account a transaction via syslog. Default value is not-set (no flag). - Example 1.10. log_flag example + Example 1.11. log_flag example ... modparam("acc", "log_flag", 2) ... -6.11. log_missed_flag (integer) +6.12. log_missed_flag (integer) Request flag which needs to be set to account missed calls via syslog. This can be used to e.g. account failures during the call setup phase @@ -832,23 +849,23 @@ modparam("acc", "log_flag", 2) Default value is not-set (no flag). - Example 1.11. log_missed_flag example + Example 1.12. log_missed_flag example ... modparam("acc", "log_missed_flag", 3) ... -6.12. log_level (integer) +6.13. log_level (integer) Log level at which accounting messages are issued to syslog. Default value is 1 (L_NOTICE). - Example 1.12. log_level example + Example 1.13. log_level example ... modparam("acc", "log_level", 2) # Set log_level to 2 (L_INFO) ... -6.13. log_facility (string) +6.14. log_facility (string) Log facility to which accounting messages are issued to syslog. This allows to easily separate the accounting specific logging from the @@ -856,36 +873,36 @@ modparam("acc", "log_level", 2) # Set log_level to 2 (L_INFO) Default value is LOG_DAEMON. - Example 1.13. log_facility example + Example 1.14. log_facility example ... modparam("acc", "log_facility", "LOG_DAEMON") ... -6.14. log_extra (string) +6.15. log_extra (string) Extra values to be logged. See section Section 2, “Extra accounting” for more details. Default value is NULL. - Example 1.14. log_extra example + Example 1.15. log_extra example ... modparam("acc", "log_extra", "ua=$hdr(User-Agent);uuid=$avp(i:123)") ... -6.15. db_flag (integer) +6.16. db_flag (integer) Request flag which needs to be set to account a transaction -- database specific. Default value is not-set (no flag). - Example 1.15. db_flag example + Example 1.16. db_flag example ... modparam("acc", "db_flag", 2) ... -6.16. db_missed_flag (integer) +6.17. db_missed_flag (integer) Request flag which needs to be set to account missed calls via database. This can be used to e.g. account failures during the call @@ -898,142 +915,142 @@ modparam("acc", "db_flag", 2) Default value is not-set (no flag). - Example 1.16. db_missed_flag example + Example 1.17. db_missed_flag example ... modparam("acc", "db_missed_flag", 3) ... -6.17. db_table_acc (string) +6.18. db_table_acc (string) Table name of accounting successful calls -- database specific. It can contain config variables that will be evaluated at runtime. Default value is “acc” - Example 1.17. db_table_acc example + Example 1.18. db_table_acc example ... modparam("acc", "db_table_acc", "myacc_table") modparam("acc", "db_table_acc", "acc_$time(year)_$time(mon)") ... -6.18. db_table_missed_calls (string) +6.19. db_table_missed_calls (string) Table name for accounting missed calls -- database specific. It can contain config variables that will be evaluated at runtime. Default value is “missed_calls” - Example 1.18. db_table_missed_calls example + Example 1.19. db_table_missed_calls example ... modparam("acc", "db_table_missed_calls", "myMC_table") ... -6.19. db_url (string) +6.20. db_url (string) SQL address -- database specific. If is set to NULL or empty string, the SQL support is disabled. Default value is “NULL” (SQL disabled). - Example 1.19. db_url example + Example 1.20. db_url example ... modparam("acc", "db_url", "mysql://user:password@localhost/kamailio") ... -6.20. acc_method_column (string) +6.21. acc_method_column (string) Column name in accounting table to store the request's method name as string. Default value is “method”. - Example 1.20. acc_method_column example + Example 1.21. acc_method_column example ... modparam("acc", "acc_method_column", "method") ... -6.21. acc_from_tag_column (string) +6.22. acc_from_tag_column (string) Column name in accounting table to store the From header TAG parameter. Default value is “from_tag”. - Example 1.21. acc_from_tag_column example + Example 1.22. acc_from_tag_column example ... modparam("acc", "acc_from_tag_column", "from_tag") ... -6.22. acc_to_tag_column (string) +6.23. acc_to_tag_column (string) Column name in accounting table to store the To header TAG parameter. Default value is “to_tag”. - Example 1.22. acc_to_tag_column example + Example 1.23. acc_to_tag_column example ... modparam("acc", "acc_to_tag_column", "to_tag") ... -6.23. acc_callid_column (string) +6.24. acc_callid_column (string) Column name in accounting table to store the request's Callid value. Default value is “callid”. - Example 1.23. acc_callid_column example + Example 1.24. acc_callid_column example ... modparam("acc", "acc_callid_column", "callid") ... -6.24. acc_sip_code_column (string) +6.25. acc_sip_code_column (string) Column name in accounting table to store the final reply's numeric code value in string format. Default value is “sip_code”. - Example 1.24. acc_sip_code_column example + Example 1.25. acc_sip_code_column example ... modparam("acc", "acc_sip_code_column", "sip_code") ... -6.25. acc_sip_reason_column (string) +6.26. acc_sip_reason_column (string) Column name in accounting table to store the final reply's reason phrase value. Default value is “sip_reason”. - Example 1.25. acc_sip_reason_column example + Example 1.26. acc_sip_reason_column example ... modparam("acc", "acc_sip_reason_column", "sip_reason") ... -6.26. acc_time_column (string) +6.27. acc_time_column (string) Column name in accounting table to store the time stamp of the transaction completion in date-time format. Default value is “time”. - Example 1.26. acc_time_column example + Example 1.27. acc_time_column example ... modparam("acc", "acc_time_column", "time") ... -6.27. db_extra (string) +6.28. db_extra (string) Extra values to be logged into database - DB specific. See section Section 2, “Extra accounting” for more details. Default value is NULL. - Example 1.27. db_extra example + Example 1.28. db_extra example ... modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)") ... -6.28. db_insert_mode (integer) +6.29. db_insert_mode (integer) If set to 1, use INSERT DELAYED to add records to accounting tables when the DB driver has support for it. If no INSERT DELAYED support is @@ -1047,45 +1064,45 @@ modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)") Default value is 0 (no INSERT DELAYED nor async insert). - Example 1.28. db_insert_mode example + Example 1.29. db_insert_mode example ... modparam("acc", "db_insert_mode", 1) ... -6.29. cdr_enable (integer) +6.30. cdr_enable (integer) Should CDR-based logging be enabled? 0 - off (default). 1 - on. - Example 1.29. cdr_enable example + Example 1.30. cdr_enable example ... modparam("acc", "cdr_enable", 1) ... -6.30. cdr_skip (string) +6.31. cdr_skip (string) Skip cdr generation for dialogs with this dlg_var set. Default value is NULL. - Example 1.30. cdr_skip example + Example 1.31. cdr_skip example ... modparam("acc", "cdr_skip", "nocdr") ... -6.31. cdr_expired_dlg_enable (integer) +6.32. cdr_expired_dlg_enable (integer) Should CDR-based logging be enabled in case of expired dialogs? 0 - off (default). 1 - on. - Example 1.31. cdr_expired_dlg_enable example + Example 1.32. cdr_expired_dlg_enable example ... modparam("acc", "cdr_expired_dlg_enable", 1) ... -6.32. cdr_start_on_confirmed (integer) +6.33. cdr_start_on_confirmed (integer) Should the start time be taken from the time when the dialog is created, or when the dialog is confirmed? @@ -1093,36 +1110,36 @@ modparam("acc", "cdr_expired_dlg_enable", 1) 0 - use time of dialog creation (default). 1 - use time of dialog confirmation. - Example 1.32. cdr_start_on_confirmed example + Example 1.33. cdr_start_on_confirmed example ... modparam("acc", "cdr_start_on_confirmed", 1) ... -6.33. cdr_facility (integer) +6.34. cdr_facility (integer) Log facility to which CDR messages are issued to syslog. This allows to easily seperate CDR-specific logging from the other log messages. Default value is LOG_DAEMON. - Example 1.33. cdr_facility example + Example 1.34. cdr_facility example ... modparam("acc", "cdr_facility", "LOG_DAEMON") ... -6.34. cdr_extra (string) +6.35. cdr_extra (string) Set of pseudo-variables defining custom CDR fields. See Section 4.2, “CDR Extra” for more details. Default value is NULL. - Example 1.34. cdr_extra example + Example 1.35. cdr_extra example ... modparam("acc", "cdr_extra", "c1=$dlg_var(caller);c2=$dlg_var(callee)" ... -6.35. cdr_extra_nullable (integer) +6.36. cdr_extra_nullable (integer) Should custom CDR fields be saved as NULL? @@ -1133,67 +1150,67 @@ modparam("acc", "cdr_extra", "c1=$dlg_var(caller);c2=$dlg_var(callee)" Default value is 0. - Example 1.35. cdr_extra_nullable example + Example 1.36. cdr_extra_nullable example ... modparam("acc", "cdr_extra_nullable", 1) ... -6.36. cdr_start_id (string) +6.37. cdr_start_id (string) Modifying the id which is used to store the start time. Default value is 'start_time' - Example 1.36. cdr_start_id example + Example 1.37. cdr_start_id example ... modparam("acc", "cdr_start_id", "start") ... -6.37. cdr_end_id (string) +6.38. cdr_end_id (string) Modifying the id which is used to store the end time. Default value is 'end_time' - Example 1.37. cdr_end_id example + Example 1.38. cdr_end_id example ... modparam("acc", "cdr_end_id", "end") ... -6.38. cdr_duration_id (string) +6.39. cdr_duration_id (string) Modify the id which is used to store the duration. Default value is 'duration' - Example 1.38. cdr_duration_id example + Example 1.39. cdr_duration_id example ... modparam("acc", "cdr_duration_id", "d") ... -6.39. cdr_log_enable (int) +6.40. cdr_log_enable (int) Control if CDR-based accounting should be written to syslog. 0 - off. 1 - on (default). - Example 1.39. cdr_log_enable example + Example 1.40. cdr_log_enable example ... modparam("acc", "cdr_log_enable", 0) ... -6.40. cdrs_table (str) +6.41. cdrs_table (str) Name of db table to store dialog-based CDRs. Default value is "" (no db storage for dialog-based CDRs). - Example 1.40. cdrs_table example + Example 1.41. cdrs_table example ... modparam("acc", "cdrs_table", "acc_cdrs") ... -6.41. time_mode (int) +6.42. time_mode (int) Store additional value related to the time of event. @@ -1207,12 +1224,12 @@ modparam("acc", "cdrs_table", "acc_cdrs") * 4 - save formatted time according to time_format parameter, using the output of gmtime(). Used for cdr entries too. - Example 1.41. time_mode example + Example 1.42. time_mode example ... modparam("acc", "time_mode", 1) ... -6.42. time_attr (str) +6.43. time_attr (str) Name of the syslog attribute or database column where to store additional value related to the time of event. @@ -1228,35 +1245,35 @@ modparam("acc", "time_mode", 1) value is already unix timestamp, but in db accounting time value is datetime and requires a function to get the timestamp. - Example 1.42. time_attr example + Example 1.43. time_attr example ... modparam("acc", "time_attr", "seconds") ... -6.43. time_exten (str) +6.44. time_exten (str) Name of the syslog attribute or database column where to store extended value related to the time of event. It is used now only for time_mode=1 and database column has to be int: - Example 1.43. time_exten example + Example 1.44. time_exten example ... modparam("acc", "time_exten", "microsecs") ... -6.44. time_format (str) +6.45. time_format (str) Specify the format to print the time for time_mode 3 or 4. Default value is %Y-%m-%d %H:%M:%S". - Example 1.44. time_format example + Example 1.45. time_format example ... modparam("acc", "time_format", "%Y/%m/%d %H:%M:%S") ... -6.45. reason_from_hf (int) +6.46. reason_from_hf (int) Tells where to take sip_reason from. If value is 0, sip_reason is taken from status line. Otherwise, sip_reason is taken from Reason header @@ -1264,12 +1281,12 @@ modparam("acc", "time_format", "%Y/%m/%d %H:%M:%S") Default value is 0. - Example 1.45. reason_from_hf + Example 1.46. reason_from_hf ... modparam("acc", "reason_from_hf", 1) ... -6.46. clone_msg (int) +6.47. clone_msg (int) If set to 1, request structure from transaction is cloned temporarily in the callback to get acc attributes. It is required if you account @@ -1280,12 +1297,12 @@ modparam("acc", "reason_from_hf", 1) Default value is 1. - Example 1.46. clone_msg + Example 1.47. clone_msg ... modparam("acc", "clone_msg", 0) ... -6.47. cdr_on_failed (int) +6.48. cdr_on_failed (int) If set to 1, the module stores the CDR for a failed dialog (calls not answered). If set to 0, those records are not stored, only those for @@ -1293,7 +1310,7 @@ modparam("acc", "clone_msg", 0) Default value is 1. - Example 1.47. cdr_on_failed + Example 1.48. cdr_on_failed ... modparam("acc", "cdr_on_failed", 0) ... @@ -1318,7 +1335,7 @@ modparam("acc", "cdr_on_failed", 0) This function can be used from ANY_ROUTE. - Example 1.48. acc_log_request usage + Example 1.49. acc_log_request usage ... acc_log_request("Some comment"); $var(code) = 404; @@ -1340,7 +1357,7 @@ acc_log_request("$var(code) Error: $avp(reason)"); This function can be used from ANY_ROUTE. - Example 1.49. acc_db_request usage + Example 1.50. acc_db_request usage ... acc_db_request("Some comment", "SomeTable"); acc_db_request("Some comment", "acc_$time(year)_$time(mon)"); @@ -1364,7 +1381,7 @@ acc_db_request("$var(code) Error: $avp(reason)", "SomeTable"); This function can be used from ANY_ROUTE. - Example 1.50. acc_db_request usage + Example 1.51. acc_db_request usage ... acc_request("100 Received", "acc"); acc_request("100 Received", "acc_$time(year)_$time(mon)"); @@ -1382,7 +1399,7 @@ acc_db_request("$var(code) $avp(reason)", "acc"); This function can be used from ANY_ROUTE. - Example 1.51. acc_diam_request usage + Example 1.52. acc_diam_request usage ... acc_diam_request("Some comment"); acc_diam_request("$var(code) Error: $avp(reason)");