|
@@ -130,6 +130,7 @@ Sven Knoblich
|
|
6.47. time_mode (int)
|
|
6.47. time_mode (int)
|
|
6.48. time_attr (str)
|
|
6.48. time_attr (str)
|
|
6.49. time_exten (str)
|
|
6.49. time_exten (str)
|
|
|
|
+ 6.50. time_format (str)
|
|
|
|
|
|
7. Functions
|
|
7. Functions
|
|
|
|
|
|
@@ -191,10 +192,11 @@ Sven Knoblich
|
|
1.47. time_mode example
|
|
1.47. time_mode example
|
|
1.48. time_attr example
|
|
1.48. time_attr example
|
|
1.49. time_exten example
|
|
1.49. time_exten example
|
|
- 1.50. acc_log_request usage
|
|
|
|
- 1.51. acc_db_request usage
|
|
|
|
- 1.52. acc_rad_request usage
|
|
|
|
- 1.53. acc_diam_request usage
|
|
|
|
|
|
+ 1.50. time_format example
|
|
|
|
+ 1.51. acc_log_request usage
|
|
|
|
+ 1.52. acc_db_request usage
|
|
|
|
+ 1.53. acc_rad_request usage
|
|
|
|
+ 1.54. acc_diam_request usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
Chapter 1. Admin Guide
|
|
|
|
|
|
@@ -288,6 +290,7 @@ Chapter 1. Admin Guide
|
|
6.47. time_mode (int)
|
|
6.47. time_mode (int)
|
|
6.48. time_attr (str)
|
|
6.48. time_attr (str)
|
|
6.49. time_exten (str)
|
|
6.49. time_exten (str)
|
|
|
|
+ 6.50. time_format (str)
|
|
|
|
|
|
7. Functions
|
|
7. Functions
|
|
|
|
|
|
@@ -601,6 +604,7 @@ Note
|
|
|
|
|
|
4.3.2.1. Example for a spiraled Proxy
|
|
4.3.2.1. Example for a spiraled Proxy
|
|
|
|
|
|
|
|
+...
|
|
# A calls B (transaction 1)
|
|
# A calls B (transaction 1)
|
|
$avp(caller)='A'
|
|
$avp(caller)='A'
|
|
$avp(callee)='B';
|
|
$avp(callee)='B';
|
|
@@ -619,6 +623,7 @@ $dlg_var(chain)=$dlg_var(chain) + "|" + "C;cfnr;D";
|
|
# C confirms call (200 reply of transaction 2)
|
|
# C confirms call (200 reply of transaction 2)
|
|
$dlg_var(caller) = $avp(caller); #caller='B'
|
|
$dlg_var(caller) = $avp(caller); #caller='B'
|
|
$dlg_var(callee) = $avp(callee); #callee='C'
|
|
$dlg_var(callee) = $avp(callee); #callee='C'
|
|
|
|
+...
|
|
|
|
|
|
4.3.3. Logged data
|
|
4.3.3. Logged data
|
|
|
|
|
|
@@ -699,6 +704,7 @@ $dlg_var(callee) = $avp(callee); #callee='C'
|
|
6.47. time_mode (int)
|
|
6.47. time_mode (int)
|
|
6.48. time_attr (str)
|
|
6.48. time_attr (str)
|
|
6.49. time_exten (str)
|
|
6.49. time_exten (str)
|
|
|
|
+ 6.50. time_format (str)
|
|
|
|
|
|
6.1. early_media (integer)
|
|
6.1. early_media (integer)
|
|
|
|
|
|
@@ -707,7 +713,9 @@ $dlg_var(callee) = $avp(callee); #callee='C'
|
|
Default value is 0 (no).
|
|
Default value is 0 (no).
|
|
|
|
|
|
Example 1.1. early_media example
|
|
Example 1.1. early_media example
|
|
|
|
+...
|
|
modparam("acc", "early_media", 1)
|
|
modparam("acc", "early_media", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.2. failed_transaction_flag (integer)
|
|
6.2. failed_transaction_flag (integer)
|
|
|
|
|
|
@@ -717,7 +725,9 @@ modparam("acc", "early_media", 1)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.2. failed_transaction_flag example
|
|
Example 1.2. failed_transaction_flag example
|
|
|
|
+...
|
|
modparam("acc", "failed_transaction_flag", 4)
|
|
modparam("acc", "failed_transaction_flag", 4)
|
|
|
|
+...
|
|
|
|
|
|
6.3. failed_filter (string)
|
|
6.3. failed_filter (string)
|
|
|
|
|
|
@@ -728,7 +738,9 @@ modparam("acc", "failed_transaction_flag", 4)
|
|
Default value is not-set (failure filtering is off).
|
|
Default value is not-set (failure filtering is off).
|
|
|
|
|
|
Example 1.3. failed_filter example
|
|
Example 1.3. failed_filter example
|
|
|
|
+...
|
|
modparam("acc", "failed_filter", "404,407")
|
|
modparam("acc", "failed_filter", "404,407")
|
|
|
|
+...
|
|
|
|
|
|
6.4. report_ack (integer)
|
|
6.4. report_ack (integer)
|
|
|
|
|
|
@@ -740,7 +752,9 @@ modparam("acc", "failed_filter", "404,407")
|
|
Default value is 0 (no).
|
|
Default value is 0 (no).
|
|
|
|
|
|
Example 1.4. report_ack example
|
|
Example 1.4. report_ack example
|
|
|
|
+...
|
|
modparam("acc", "report_ack", 1)
|
|
modparam("acc", "report_ack", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.5. report_cancels (integer)
|
|
6.5. report_cancels (integer)
|
|
|
|
|
|
@@ -751,7 +765,9 @@ modparam("acc", "report_ack", 1)
|
|
Default value is 0 (no).
|
|
Default value is 0 (no).
|
|
|
|
|
|
Example 1.5. report_cancels example
|
|
Example 1.5. report_cancels example
|
|
|
|
+...
|
|
modparam("acc", "report_cancels", 1)
|
|
modparam("acc", "report_cancels", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.6. detect_direction (integer)
|
|
6.6. detect_direction (integer)
|
|
|
|
|
|
@@ -766,7 +782,9 @@ modparam("acc", "report_cancels", 1)
|
|
Default value is 0 (disabled).
|
|
Default value is 0 (disabled).
|
|
|
|
|
|
Example 1.6. detect_direction example
|
|
Example 1.6. detect_direction example
|
|
|
|
+...
|
|
modparam("acc", "detect_direction", 1)
|
|
modparam("acc", "detect_direction", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.7. acc_prepare_flag (integer)
|
|
6.7. acc_prepare_flag (integer)
|
|
|
|
|
|
@@ -780,7 +798,9 @@ modparam("acc", "detect_direction", 1)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.7. acc_prepare_flag example
|
|
Example 1.7. acc_prepare_flag example
|
|
|
|
+...
|
|
modparam("acc", "acc_prepare_flag", 5)
|
|
modparam("acc", "acc_prepare_flag", 5)
|
|
|
|
+...
|
|
|
|
|
|
6.8. multi_leg_info (string)
|
|
6.8. multi_leg_info (string)
|
|
|
|
|
|
@@ -793,6 +813,7 @@ modparam("acc", "acc_prepare_flag", 5)
|
|
Default value is 0 (disabled).
|
|
Default value is 0 (disabled).
|
|
|
|
|
|
Example 1.8. multi_leg_info example
|
|
Example 1.8. multi_leg_info example
|
|
|
|
+...
|
|
# for syslog-based accounting, use any text you want to be printed
|
|
# for syslog-based accounting, use any text you want to be printed
|
|
modparam("acc", "multi_leg_info",
|
|
modparam("acc", "multi_leg_info",
|
|
"text1=$avp(src);text2=$avp(dst)")
|
|
"text1=$avp(src);text2=$avp(dst)")
|
|
@@ -805,6 +826,7 @@ modparam("acc", "multi_leg_info",
|
|
# for DIAMETER-based accounting, use the DIAMETER AVP ID (as integer)
|
|
# for DIAMETER-based accounting, use the DIAMETER AVP ID (as integer)
|
|
modparam("acc", "multi_leg_info",
|
|
modparam("acc", "multi_leg_info",
|
|
"2345=$avp(src);2346=$avp(dst)")
|
|
"2345=$avp(src);2346=$avp(dst)")
|
|
|
|
+...
|
|
|
|
|
|
6.9. log_flag (integer)
|
|
6.9. log_flag (integer)
|
|
|
|
|
|
@@ -813,7 +835,9 @@ modparam("acc", "multi_leg_info",
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.9. log_flag example
|
|
Example 1.9. log_flag example
|
|
|
|
+...
|
|
modparam("acc", "log_flag", 2)
|
|
modparam("acc", "log_flag", 2)
|
|
|
|
+...
|
|
|
|
|
|
6.10. log_missed_flag (integer)
|
|
6.10. log_missed_flag (integer)
|
|
|
|
|
|
@@ -822,7 +846,9 @@ modparam("acc", "log_flag", 2)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.10. log_missed_flag example
|
|
Example 1.10. log_missed_flag example
|
|
|
|
+...
|
|
modparam("acc", "log_missed_flag", 3)
|
|
modparam("acc", "log_missed_flag", 3)
|
|
|
|
+...
|
|
|
|
|
|
6.11. log_level (integer)
|
|
6.11. log_level (integer)
|
|
|
|
|
|
@@ -831,7 +857,9 @@ modparam("acc", "log_missed_flag", 3)
|
|
Default value is L_NOTICE.
|
|
Default value is L_NOTICE.
|
|
|
|
|
|
Example 1.11. log_level example
|
|
Example 1.11. log_level example
|
|
|
|
+...
|
|
modparam("acc", "log_level", 2) # Set log_level to 2
|
|
modparam("acc", "log_level", 2) # Set log_level to 2
|
|
|
|
+...
|
|
|
|
|
|
6.12. log_facility (string)
|
|
6.12. log_facility (string)
|
|
|
|
|
|
@@ -842,7 +870,9 @@ modparam("acc", "log_level", 2) # Set log_level to 2
|
|
Default value is LOG_DAEMON.
|
|
Default value is LOG_DAEMON.
|
|
|
|
|
|
Example 1.12. log_facility example
|
|
Example 1.12. log_facility example
|
|
|
|
+...
|
|
modparam("acc", "log_facility", "LOG_DAEMON")
|
|
modparam("acc", "log_facility", "LOG_DAEMON")
|
|
|
|
+...
|
|
|
|
|
|
6.13. log_extra (string)
|
|
6.13. log_extra (string)
|
|
|
|
|
|
@@ -852,7 +882,9 @@ modparam("acc", "log_facility", "LOG_DAEMON")
|
|
Default value is NULL.
|
|
Default value is NULL.
|
|
|
|
|
|
Example 1.13. log_extra example
|
|
Example 1.13. log_extra example
|
|
|
|
+...
|
|
modparam("acc", "log_extra", "ua=$hdr(User-Agent);uuid=$avp(i:123)")
|
|
modparam("acc", "log_extra", "ua=$hdr(User-Agent);uuid=$avp(i:123)")
|
|
|
|
+...
|
|
|
|
|
|
6.14. radius_config (string)
|
|
6.14. radius_config (string)
|
|
|
|
|
|
@@ -868,7 +900,9 @@ modparam("acc", "log_extra", "ua=$hdr(User-Agent);uuid=$avp(i:123)")
|
|
Default value is "NULL".
|
|
Default value is "NULL".
|
|
|
|
|
|
Example 1.14. radius_config example
|
|
Example 1.14. radius_config example
|
|
|
|
+...
|
|
modparam("acc", "radius_config", "/etc/radiusclient/radiusclient.conf")
|
|
modparam("acc", "radius_config", "/etc/radiusclient/radiusclient.conf")
|
|
|
|
+...
|
|
|
|
|
|
6.15. radius_flag (integer)
|
|
6.15. radius_flag (integer)
|
|
|
|
|
|
@@ -878,7 +912,9 @@ modparam("acc", "radius_config", "/etc/radiusclient/radiusclient.conf")
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.15. radius_flag example
|
|
Example 1.15. radius_flag example
|
|
|
|
+...
|
|
modparam("acc", "radius_flag", 2)
|
|
modparam("acc", "radius_flag", 2)
|
|
|
|
+...
|
|
|
|
|
|
6.16. radius_missed_flag (integer)
|
|
6.16. radius_missed_flag (integer)
|
|
|
|
|
|
@@ -888,7 +924,9 @@ modparam("acc", "radius_flag", 2)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.16. radius_missed_flag example
|
|
Example 1.16. radius_missed_flag example
|
|
|
|
+...
|
|
modparam("acc", "radius_missed_flag", 3)
|
|
modparam("acc", "radius_missed_flag", 3)
|
|
|
|
+...
|
|
|
|
|
|
6.17. service_type (integer)
|
|
6.17. service_type (integer)
|
|
|
|
|
|
@@ -897,7 +935,9 @@ modparam("acc", "radius_missed_flag", 3)
|
|
Default value is 15 (SIP).
|
|
Default value is 15 (SIP).
|
|
|
|
|
|
Example 1.17. service_type example
|
|
Example 1.17. service_type example
|
|
|
|
+...
|
|
modparam("acc", "service_type", 16)
|
|
modparam("acc", "service_type", 16)
|
|
|
|
+...
|
|
|
|
|
|
6.18. radius_extra (string)
|
|
6.18. radius_extra (string)
|
|
|
|
|
|
@@ -907,7 +947,9 @@ modparam("acc", "service_type", 16)
|
|
Default value is NULL.
|
|
Default value is NULL.
|
|
|
|
|
|
Example 1.18. radius_extra example
|
|
Example 1.18. radius_extra example
|
|
|
|
+...
|
|
modparam("acc", "radius_extra", "via=$hdr(Via[*]); email=$avp(s:email)")
|
|
modparam("acc", "radius_extra", "via=$hdr(Via[*]); email=$avp(s:email)")
|
|
|
|
+...
|
|
|
|
|
|
6.19. db_flag (integer)
|
|
6.19. db_flag (integer)
|
|
|
|
|
|
@@ -917,7 +959,9 @@ modparam("acc", "radius_extra", "via=$hdr(Via[*]); email=$avp(s:email)")
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.19. db_flag example
|
|
Example 1.19. db_flag example
|
|
|
|
+...
|
|
modparam("acc", "db_flag", 2)
|
|
modparam("acc", "db_flag", 2)
|
|
|
|
+...
|
|
|
|
|
|
6.20. db_missed_flag (integer)
|
|
6.20. db_missed_flag (integer)
|
|
|
|
|
|
@@ -927,7 +971,9 @@ modparam("acc", "db_flag", 2)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.20. db_missed_flag example
|
|
Example 1.20. db_missed_flag example
|
|
|
|
+...
|
|
modparam("acc", "db_missed_flag", 3)
|
|
modparam("acc", "db_missed_flag", 3)
|
|
|
|
+...
|
|
|
|
|
|
6.21. db_table_acc (string)
|
|
6.21. db_table_acc (string)
|
|
|
|
|
|
@@ -937,8 +983,10 @@ modparam("acc", "db_missed_flag", 3)
|
|
Default value is "acc"
|
|
Default value is "acc"
|
|
|
|
|
|
Example 1.21. db_table_acc example
|
|
Example 1.21. db_table_acc example
|
|
|
|
+...
|
|
modparam("acc", "db_table_acc", "myacc_table")
|
|
modparam("acc", "db_table_acc", "myacc_table")
|
|
modparam("acc", "db_table_acc", "acc_$time(year)_$time(mon)")
|
|
modparam("acc", "db_table_acc", "acc_$time(year)_$time(mon)")
|
|
|
|
+...
|
|
|
|
|
|
6.22. db_table_missed_calls (string)
|
|
6.22. db_table_missed_calls (string)
|
|
|
|
|
|
@@ -948,7 +996,9 @@ modparam("acc", "db_table_acc", "acc_$time(year)_$time(mon)")
|
|
Default value is "missed_calls"
|
|
Default value is "missed_calls"
|
|
|
|
|
|
Example 1.22. db_table_missed_calls example
|
|
Example 1.22. db_table_missed_calls example
|
|
|
|
+...
|
|
modparam("acc", "db_table_missed_calls", "myMC_table")
|
|
modparam("acc", "db_table_missed_calls", "myMC_table")
|
|
|
|
+...
|
|
|
|
|
|
6.23. db_url (string)
|
|
6.23. db_url (string)
|
|
|
|
|
|
@@ -958,7 +1008,9 @@ modparam("acc", "db_table_missed_calls", "myMC_table")
|
|
Default value is "NULL" (SQL disabled).
|
|
Default value is "NULL" (SQL disabled).
|
|
|
|
|
|
Example 1.23. db_url example
|
|
Example 1.23. db_url example
|
|
|
|
+...
|
|
modparam("acc", "db_url", "mysql://user:password@localhost/kamailio")
|
|
modparam("acc", "db_url", "mysql://user:password@localhost/kamailio")
|
|
|
|
+...
|
|
|
|
|
|
6.24. acc_method_column (string)
|
|
6.24. acc_method_column (string)
|
|
|
|
|
|
@@ -968,7 +1020,9 @@ modparam("acc", "db_url", "mysql://user:password@localhost/kamailio")
|
|
Default value is "method".
|
|
Default value is "method".
|
|
|
|
|
|
Example 1.24. acc_method_column example
|
|
Example 1.24. acc_method_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_method_column", "method")
|
|
modparam("acc", "acc_method_column", "method")
|
|
|
|
+...
|
|
|
|
|
|
6.25. acc_from_tag_column (string)
|
|
6.25. acc_from_tag_column (string)
|
|
|
|
|
|
@@ -977,7 +1031,9 @@ modparam("acc", "acc_method_column", "method")
|
|
Default value is "from_tag".
|
|
Default value is "from_tag".
|
|
|
|
|
|
Example 1.25. acc_from_tag_column example
|
|
Example 1.25. acc_from_tag_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_from_tag_column", "from_tag")
|
|
modparam("acc", "acc_from_tag_column", "from_tag")
|
|
|
|
+...
|
|
|
|
|
|
6.26. acc_to_tag_column (string)
|
|
6.26. acc_to_tag_column (string)
|
|
|
|
|
|
@@ -986,7 +1042,9 @@ modparam("acc", "acc_from_tag_column", "from_tag")
|
|
Default value is "to_tag".
|
|
Default value is "to_tag".
|
|
|
|
|
|
Example 1.26. acc_to_tag_column example
|
|
Example 1.26. acc_to_tag_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_to_tag_column", "to_tag")
|
|
modparam("acc", "acc_to_tag_column", "to_tag")
|
|
|
|
+...
|
|
|
|
|
|
6.27. acc_callid_column (string)
|
|
6.27. acc_callid_column (string)
|
|
|
|
|
|
@@ -995,7 +1053,9 @@ modparam("acc", "acc_to_tag_column", "to_tag")
|
|
Default value is "callid".
|
|
Default value is "callid".
|
|
|
|
|
|
Example 1.27. acc_callid_column example
|
|
Example 1.27. acc_callid_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_callid_column", "callid")
|
|
modparam("acc", "acc_callid_column", "callid")
|
|
|
|
+...
|
|
|
|
|
|
6.28. acc_sip_code_column (string)
|
|
6.28. acc_sip_code_column (string)
|
|
|
|
|
|
@@ -1005,7 +1065,9 @@ modparam("acc", "acc_callid_column", "callid")
|
|
Default value is "sip_code".
|
|
Default value is "sip_code".
|
|
|
|
|
|
Example 1.28. acc_sip_code_column example
|
|
Example 1.28. acc_sip_code_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_sip_code_column", "sip_code")
|
|
modparam("acc", "acc_sip_code_column", "sip_code")
|
|
|
|
+...
|
|
|
|
|
|
6.29. acc_sip_reason_column (string)
|
|
6.29. acc_sip_reason_column (string)
|
|
|
|
|
|
@@ -1015,7 +1077,9 @@ modparam("acc", "acc_sip_code_column", "sip_code")
|
|
Default value is "sip_reason".
|
|
Default value is "sip_reason".
|
|
|
|
|
|
Example 1.29. acc_sip_reason_column example
|
|
Example 1.29. acc_sip_reason_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_sip_reason_column", "sip_reason")
|
|
modparam("acc", "acc_sip_reason_column", "sip_reason")
|
|
|
|
+...
|
|
|
|
|
|
6.30. acc_time_column (string)
|
|
6.30. acc_time_column (string)
|
|
|
|
|
|
@@ -1025,7 +1089,9 @@ modparam("acc", "acc_sip_reason_column", "sip_reason")
|
|
Default value is "time".
|
|
Default value is "time".
|
|
|
|
|
|
Example 1.30. acc_time_column example
|
|
Example 1.30. acc_time_column example
|
|
|
|
+...
|
|
modparam("acc", "acc_time_column", "time")
|
|
modparam("acc", "acc_time_column", "time")
|
|
|
|
+...
|
|
|
|
|
|
6.31. db_extra (string)
|
|
6.31. db_extra (string)
|
|
|
|
|
|
@@ -1035,7 +1101,9 @@ modparam("acc", "acc_time_column", "time")
|
|
Default value is NULL.
|
|
Default value is NULL.
|
|
|
|
|
|
Example 1.31. db_extra example
|
|
Example 1.31. db_extra example
|
|
|
|
+...
|
|
modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)")
|
|
modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)")
|
|
|
|
+...
|
|
|
|
|
|
6.32. db_insert_mode (integer)
|
|
6.32. db_insert_mode (integer)
|
|
|
|
|
|
@@ -1046,7 +1114,9 @@ modparam("acc", "db_extra", "ct=$hdr(Content-type); email=$avp(s:email)")
|
|
Default value is 0 (no INSERT DELAYED).
|
|
Default value is 0 (no INSERT DELAYED).
|
|
|
|
|
|
Example 1.32. db_insert_mode example
|
|
Example 1.32. db_insert_mode example
|
|
|
|
+...
|
|
modparam("acc", "db_insert_mode", 1)
|
|
modparam("acc", "db_insert_mode", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.33. diameter_flag (integer)
|
|
6.33. diameter_flag (integer)
|
|
|
|
|
|
@@ -1056,7 +1126,9 @@ modparam("acc", "db_insert_mode", 1)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.33. diameter_flag example
|
|
Example 1.33. diameter_flag example
|
|
|
|
+...
|
|
modparam("acc", "diameter_flag", 2)
|
|
modparam("acc", "diameter_flag", 2)
|
|
|
|
+...
|
|
|
|
|
|
6.34. diameter_missed_flag (integer)
|
|
6.34. diameter_missed_flag (integer)
|
|
|
|
|
|
@@ -1066,7 +1138,9 @@ modparam("acc", "diameter_flag", 2)
|
|
Default value is not-set (no flag).
|
|
Default value is not-set (no flag).
|
|
|
|
|
|
Example 1.34. diameter_missed_flag example
|
|
Example 1.34. diameter_missed_flag example
|
|
|
|
+...
|
|
modparam("acc", "diameter_missed_flag", 3)
|
|
modparam("acc", "diameter_missed_flag", 3)
|
|
|
|
+...
|
|
|
|
|
|
6.35. diameter_client_host (string)
|
|
6.35. diameter_client_host (string)
|
|
|
|
|
|
@@ -1076,7 +1150,9 @@ modparam("acc", "diameter_missed_flag", 3)
|
|
Default value is "localhost".
|
|
Default value is "localhost".
|
|
|
|
|
|
Example 1.35. diameter_client_host example
|
|
Example 1.35. diameter_client_host example
|
|
|
|
+...
|
|
modparam("acc", "diameter_client_host", "3a_server.net")
|
|
modparam("acc", "diameter_client_host", "3a_server.net")
|
|
|
|
+...
|
|
|
|
|
|
6.36. diameter_client_port (int)
|
|
6.36. diameter_client_port (int)
|
|
|
|
|
|
@@ -1086,7 +1162,9 @@ modparam("acc", "diameter_client_host", "3a_server.net")
|
|
Default value is 3000.
|
|
Default value is 3000.
|
|
|
|
|
|
Example 1.36. diameter_client_host example
|
|
Example 1.36. diameter_client_host example
|
|
|
|
+...
|
|
modparam("acc", "diameter_client_port", 3000)
|
|
modparam("acc", "diameter_client_port", 3000)
|
|
|
|
+...
|
|
|
|
|
|
6.37. diameter_extra (string)
|
|
6.37. diameter_extra (string)
|
|
|
|
|
|
@@ -1096,7 +1174,9 @@ modparam("acc", "diameter_client_port", 3000)
|
|
Default value is NULL.
|
|
Default value is NULL.
|
|
|
|
|
|
Example 1.37. diameter_extra example
|
|
Example 1.37. diameter_extra example
|
|
|
|
+...
|
|
modparam("acc", "diameter_extra", "7846=$hdr(Content-type);7847=$avp(s:email)")
|
|
modparam("acc", "diameter_extra", "7846=$hdr(Content-type);7847=$avp(s:email)")
|
|
|
|
+...
|
|
|
|
|
|
6.38. cdr_enable (integer)
|
|
6.38. cdr_enable (integer)
|
|
|
|
|
|
@@ -1105,7 +1185,9 @@ modparam("acc", "diameter_extra", "7846=$hdr(Content-type);7847=$avp(s:email)")
|
|
0 - off (default). 1 - on.
|
|
0 - off (default). 1 - on.
|
|
|
|
|
|
Example 1.38. cdr_enable example
|
|
Example 1.38. cdr_enable example
|
|
|
|
+...
|
|
modparam("acc", "cdr_enable", 1)
|
|
modparam("acc", "cdr_enable", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.39. cdr_start_on_confirmed (integer)
|
|
6.39. cdr_start_on_confirmed (integer)
|
|
|
|
|
|
@@ -1116,7 +1198,9 @@ modparam("acc", "cdr_enable", 1)
|
|
confirmation.
|
|
confirmation.
|
|
|
|
|
|
Example 1.39. cdr_start_on_confirmed example
|
|
Example 1.39. cdr_start_on_confirmed example
|
|
|
|
+...
|
|
modparam("acc", "cdr_start_on_confirmed", 1)
|
|
modparam("acc", "cdr_start_on_confirmed", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.40. cdr_facility (integer)
|
|
6.40. cdr_facility (integer)
|
|
|
|
|
|
@@ -1126,7 +1210,9 @@ modparam("acc", "cdr_start_on_confirmed", 1)
|
|
Default value is LOG_DAEMON.
|
|
Default value is LOG_DAEMON.
|
|
|
|
|
|
Example 1.40. cdr_facility example
|
|
Example 1.40. cdr_facility example
|
|
|
|
+...
|
|
modparam("acc", "cdr_facility", "LOG_DAEMON")
|
|
modparam("acc", "cdr_facility", "LOG_DAEMON")
|
|
|
|
+...
|
|
|
|
|
|
6.41. cdr_extra (string)
|
|
6.41. cdr_extra (string)
|
|
|
|
|
|
@@ -1136,7 +1222,9 @@ modparam("acc", "cdr_facility", "LOG_DAEMON")
|
|
Default value is NULL.
|
|
Default value is NULL.
|
|
|
|
|
|
Example 1.41. cdr_extra example
|
|
Example 1.41. cdr_extra example
|
|
|
|
+...
|
|
modparam("acc", "cdr_extra", "c1=$dlg_var(caller);c2=$dlg_var(callee)"
|
|
modparam("acc", "cdr_extra", "c1=$dlg_var(caller);c2=$dlg_var(callee)"
|
|
|
|
+...
|
|
|
|
|
|
6.42. cdr_start_id (string)
|
|
6.42. cdr_start_id (string)
|
|
|
|
|
|
@@ -1145,7 +1233,9 @@ modparam("acc", "cdr_extra", "c1=$dlg_var(caller);c2=$dlg_var(callee)"
|
|
Default value is 'start_time'
|
|
Default value is 'start_time'
|
|
|
|
|
|
Example 1.42. cdr_start_id example
|
|
Example 1.42. cdr_start_id example
|
|
|
|
+...
|
|
modparam("acc", "cdr_start_id", "start")
|
|
modparam("acc", "cdr_start_id", "start")
|
|
|
|
+...
|
|
|
|
|
|
6.43. cdr_end_id (string)
|
|
6.43. cdr_end_id (string)
|
|
|
|
|
|
@@ -1154,7 +1244,9 @@ modparam("acc", "cdr_start_id", "start")
|
|
Default value is 'end_time'
|
|
Default value is 'end_time'
|
|
|
|
|
|
Example 1.43. cdr_end_id example
|
|
Example 1.43. cdr_end_id example
|
|
|
|
+...
|
|
modparam("acc", "cdr_end_id", "end")
|
|
modparam("acc", "cdr_end_id", "end")
|
|
|
|
+...
|
|
|
|
|
|
6.44. cdr_duration_id (string)
|
|
6.44. cdr_duration_id (string)
|
|
|
|
|
|
@@ -1163,7 +1255,9 @@ modparam("acc", "cdr_end_id", "end")
|
|
Default value is 'duration'
|
|
Default value is 'duration'
|
|
|
|
|
|
Example 1.44. cdr_duration_id example
|
|
Example 1.44. cdr_duration_id example
|
|
|
|
+...
|
|
modparam("acc", "cdr_duration_id", "d")
|
|
modparam("acc", "cdr_duration_id", "d")
|
|
|
|
+...
|
|
|
|
|
|
6.45. cdr_log_enable (int)
|
|
6.45. cdr_log_enable (int)
|
|
|
|
|
|
@@ -1172,7 +1266,9 @@ modparam("acc", "cdr_duration_id", "d")
|
|
0 - off. 1 - on (default).
|
|
0 - off. 1 - on (default).
|
|
|
|
|
|
Example 1.45. cdr_log_enable example
|
|
Example 1.45. cdr_log_enable example
|
|
|
|
+...
|
|
modparam("acc", "cdr_log_enable", 0)
|
|
modparam("acc", "cdr_log_enable", 0)
|
|
|
|
+...
|
|
|
|
|
|
6.46. cdrs_table (str)
|
|
6.46. cdrs_table (str)
|
|
|
|
|
|
@@ -1181,7 +1277,9 @@ modparam("acc", "cdr_log_enable", 0)
|
|
Default value is "" (no db storage for dialog-based CDRs).
|
|
Default value is "" (no db storage for dialog-based CDRs).
|
|
|
|
|
|
Example 1.46. cdrs_table example
|
|
Example 1.46. cdrs_table example
|
|
|
|
+...
|
|
modparam("acc", "cdrs_table", "acc_cdrs")
|
|
modparam("acc", "cdrs_table", "acc_cdrs")
|
|
|
|
+...
|
|
|
|
|
|
6.47. time_mode (int)
|
|
6.47. time_mode (int)
|
|
|
|
|
|
@@ -1191,10 +1289,16 @@ modparam("acc", "cdrs_table", "acc_cdrs")
|
|
* 0 - (default), save only unix timestamp for syslog and datetime for
|
|
* 0 - (default), save only unix timestamp for syslog and datetime for
|
|
database.
|
|
database.
|
|
* 1 - save seconds in time_attr and microseconds in time_exten.
|
|
* 1 - save seconds in time_attr and microseconds in time_exten.
|
|
- * 3 - save seconds.miliseconds in time_attr.
|
|
|
|
|
|
+ * 2 - save seconds.miliseconds in time_attr.
|
|
|
|
+ * 3 - save formatted time according to time_format parameter, using
|
|
|
|
+ the output of localtime().
|
|
|
|
+ * 4 - save formatted time according to time_format parameter, using
|
|
|
|
+ the output of gmtime().
|
|
|
|
|
|
Example 1.47. time_mode example
|
|
Example 1.47. time_mode example
|
|
|
|
+...
|
|
modparam("acc", "time_mode", 1)
|
|
modparam("acc", "time_mode", 1)
|
|
|
|
+...
|
|
|
|
|
|
6.48. time_attr (str)
|
|
6.48. time_attr (str)
|
|
|
|
|
|
@@ -1205,13 +1309,17 @@ modparam("acc", "time_mode", 1)
|
|
on time_mode value. When time_mode is:
|
|
on time_mode value. When time_mode is:
|
|
* 1 - time_attr column has to be int.
|
|
* 1 - time_attr column has to be int.
|
|
* 2 - time_attr column has to be double.
|
|
* 2 - time_attr column has to be double.
|
|
|
|
+ * 3 - time_attr column has to be varchar(128).
|
|
|
|
+ * 4 - time_attr column has to be varchar(128).
|
|
|
|
|
|
For time_mode=1, this attribute is not written in syslog, because time
|
|
For time_mode=1, this attribute is not written in syslog, because time
|
|
value is already unix timestamp, but in db accounting time value is
|
|
value is already unix timestamp, but in db accounting time value is
|
|
datetime and requires a function to get the timestamp.
|
|
datetime and requires a function to get the timestamp.
|
|
|
|
|
|
Example 1.48. time_attr example
|
|
Example 1.48. time_attr example
|
|
|
|
+...
|
|
modparam("acc", "time_attr", "seconds")
|
|
modparam("acc", "time_attr", "seconds")
|
|
|
|
+...
|
|
|
|
|
|
6.49. time_exten (str)
|
|
6.49. time_exten (str)
|
|
|
|
|
|
@@ -1221,7 +1329,20 @@ modparam("acc", "time_attr", "seconds")
|
|
It is used now only for time_mode=1 and database column has to be int:
|
|
It is used now only for time_mode=1 and database column has to be int:
|
|
|
|
|
|
Example 1.49. time_exten example
|
|
Example 1.49. time_exten example
|
|
|
|
+...
|
|
modparam("acc", "time_exten", "micorsecs")
|
|
modparam("acc", "time_exten", "micorsecs")
|
|
|
|
+...
|
|
|
|
+
|
|
|
|
+6.50. 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.50. time_format example
|
|
|
|
+...
|
|
|
|
+modparam("acc", "time_format", "%Y/%m/%d %H:%M:%S")
|
|
|
|
+...
|
|
|
|
|
|
7. Functions
|
|
7. Functions
|
|
|
|
|
|
@@ -1242,7 +1363,7 @@ modparam("acc", "time_exten", "micorsecs")
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.50. acc_log_request usage
|
|
|
|
|
|
+ Example 1.51. acc_log_request usage
|
|
...
|
|
...
|
|
acc_log_request("Some comment");
|
|
acc_log_request("Some comment");
|
|
...
|
|
...
|
|
@@ -1260,7 +1381,7 @@ acc_log_request("Some comment");
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.51. acc_db_request usage
|
|
|
|
|
|
+ Example 1.52. acc_db_request usage
|
|
...
|
|
...
|
|
acc_db_request("Some comment", "SomeTable");
|
|
acc_db_request("Some comment", "SomeTable");
|
|
acc_db_request("Some comment", "acc_$time(year)_$time(mon)");
|
|
acc_db_request("Some comment", "acc_$time(year)_$time(mon)");
|
|
@@ -1276,7 +1397,7 @@ acc_db_request("Some comment", "acc_$time(year)_$time(mon)");
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.52. acc_rad_request usage
|
|
|
|
|
|
+ Example 1.53. acc_rad_request usage
|
|
...
|
|
...
|
|
acc_rad_request("Some comment");
|
|
acc_rad_request("Some comment");
|
|
...
|
|
...
|
|
@@ -1291,7 +1412,7 @@ acc_rad_request("Some comment");
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.53. acc_diam_request usage
|
|
|
|
|
|
+ Example 1.54. acc_diam_request usage
|
|
...
|
|
...
|
|
acc_diam_request("Some comment");
|
|
acc_diam_request("Some comment");
|
|
...
|
|
...
|