... | ... |
@@ -689,21 +689,25 @@ modparam("acc", "db_missed_flag", 3) |
689 | 689 |
|
690 | 690 |
5.19. db_table_acc (string) |
691 | 691 |
|
692 |
- Table name of accounting successfull calls -- database specific. |
|
692 |
+ Table name of accounting successfull calls -- database specific. It can |
|
693 |
+ include config variables. |
|
693 | 694 |
|
694 | 695 |
Default value is “acc” |
695 | 696 |
|
696 | 697 |
Example 1.19. db_table_acc example |
697 | 698 |
modparam("acc", "db_table_acc", "myacc_table") |
699 |
+modparam("acc", "db_table_acc", "acc_$time(year)_$time(mon)") |
|
698 | 700 |
|
699 | 701 |
5.20. db_table_missed_calls (string) |
700 | 702 |
|
701 |
- Table name for accounting missed calls -- database specific. |
|
703 |
+ Table name for accounting missed calls -- database specific. It can |
|
704 |
+ include config variables. |
|
702 | 705 |
|
703 | 706 |
Default value is “missed_calls” |
704 | 707 |
|
705 | 708 |
Example 1.20. db_table_missed_calls example |
706 | 709 |
modparam("acc", "db_table_missed_calls", "myMC_table") |
710 |
+modparam("acc", "db_table_missed_calls", "mc_$time(year)_$time(mon)") |
|
707 | 711 |
|
708 | 712 |
5.21. db_url (string) |
709 | 713 |
|
... | ... |
@@ -874,13 +878,14 @@ acc_log_request("Some comment"); |
874 | 878 |
|
875 | 879 |
Meaning of the parameters is as follows: |
876 | 880 |
* comment - Comment to be appended. |
877 |
- * table - Database table to be used. |
|
881 |
+ * table - Database table to be used. It can include config variables. |
|
878 | 882 |
|
879 | 883 |
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE. |
880 | 884 |
|
881 | 885 |
Example 1.36. acc_db_request usage |
882 | 886 |
... |
883 |
-acc_log_request("Some comment", "Some table"); |
|
887 |
+acc_log_request("Some comment", "some_table"); |
|
888 |
+acc_log_request("200 ok", "acc_cfg_$time(year)"); |
|
884 | 889 |
... |
885 | 890 |
|
886 | 891 |
6.3. acc_rad_request(comment) |
... | ... |
@@ -695,7 +695,8 @@ modparam("acc", "db_missed_flag", 3) |
695 | 695 |
<section> |
696 | 696 |
<title><varname>db_table_acc</varname> (string)</title> |
697 | 697 |
<para> |
698 |
- Table name of accounting successfull calls -- database specific. |
|
698 |
+ Table name of accounting successfull calls -- database specific. It |
|
699 |
+ can include config variables. |
|
699 | 700 |
</para> |
700 | 701 |
<para> |
701 | 702 |
Default value is <quote>acc</quote> |
... | ... |
@@ -704,13 +705,15 @@ modparam("acc", "db_missed_flag", 3) |
704 | 705 |
<title>db_table_acc example</title> |
705 | 706 |
<programlisting format="linespecific"> |
706 | 707 |
modparam("acc", "db_table_acc", "myacc_table") |
708 |
+modparam("acc", "db_table_acc", "acc_$time(year)_$time(mon)") |
|
707 | 709 |
</programlisting> |
708 | 710 |
</example> |
709 | 711 |
</section> |
710 | 712 |
<section> |
711 | 713 |
<title><varname>db_table_missed_calls</varname> (string)</title> |
712 | 714 |
<para> |
713 |
- Table name for accounting missed calls -- database specific. |
|
715 |
+ Table name for accounting missed calls -- database specific. It |
|
716 |
+ can include config variables. |
|
714 | 717 |
</para> |
715 | 718 |
<para> |
716 | 719 |
Default value is <quote>missed_calls</quote> |
... | ... |
@@ -719,6 +722,7 @@ modparam("acc", "db_table_acc", "myacc_table") |
719 | 722 |
<title>db_table_missed_calls example</title> |
720 | 723 |
<programlisting format="linespecific"> |
721 | 724 |
modparam("acc", "db_table_missed_calls", "myMC_table") |
725 |
+modparam("acc", "db_table_missed_calls", "mc_$time(year)_$time(mon)") |
|
722 | 726 |
</programlisting> |
723 | 727 |
</example> |
724 | 728 |
</section> |
... | ... |
@@ -997,7 +1001,8 @@ acc_log_request("Some comment"); |
997 | 1001 |
<para><emphasis>comment</emphasis> - Comment to be appended.</para> |
998 | 1002 |
</listitem> |
999 | 1003 |
<listitem> |
1000 |
- <para><emphasis>table</emphasis> - Database table to be used.</para> |
|
1004 |
+ <para><emphasis>table</emphasis> - Database table to be used. It |
|
1005 |
+ can include config variables.</para> |
|
1001 | 1006 |
</listitem> |
1002 | 1007 |
</itemizedlist> |
1003 | 1008 |
<para> |
... | ... |
@@ -1007,7 +1012,8 @@ acc_log_request("Some comment"); |
1007 | 1012 |
<title>acc_db_request usage</title> |
1008 | 1013 |
<programlisting format="linespecific"> |
1009 | 1014 |
... |
1010 |
-acc_log_request("Some comment", "Some table"); |
|
1015 |
+acc_log_request("Some comment", "some_table"); |
|
1016 |
+acc_log_request("200 ok", "acc_cfg_$time(year)"); |
|
1011 | 1017 |
... |
1012 | 1018 |
</programlisting> |
1013 | 1019 |
</example> |