mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
update opensips script to 2.2 new accounting
This commit is contained in:
@@ -6,11 +6,10 @@
|
||||
|
||||
####### Global Parameters #########
|
||||
|
||||
#debug=3
|
||||
log_level=3
|
||||
log_stderror=no
|
||||
log_facility=LOG_LOCAL0
|
||||
|
||||
#fork=yes
|
||||
children=4
|
||||
listen=udp:lo:5060
|
||||
listen=udp:eth0:5060
|
||||
@@ -18,6 +17,9 @@ listen=udp:eth1:5060
|
||||
|
||||
auto_aliases=no
|
||||
|
||||
# do not open more than 4096 file descriptors
|
||||
open_files_limit=4096
|
||||
|
||||
####### Modules Section ########
|
||||
|
||||
#set module path
|
||||
@@ -91,24 +93,12 @@ modparam("db_flatstore", "single_file", 1)
|
||||
#### ACCounting module
|
||||
loadmodule "acc.so"
|
||||
modparam("acc", "detect_direction", 1)
|
||||
#modparam("acc", "cdr_flag", "CDR")
|
||||
#modparam("acc", "evi_flag", "CDR")
|
||||
#modparam("acc", "evi_missed_flag", "CDR")
|
||||
modparam("acc", "evi_extra", "cgr_reqtype=$avp(cgr_reqtype);
|
||||
cgr_account=$avp(cgr_account);
|
||||
cgr_destination=$avp(cgr_destination);
|
||||
cgr_supplier=$avp(cgr_supplier);
|
||||
cgr_answertime=$dlg_val(atime);
|
||||
cgr_answertime=$dlg_val(atime);
|
||||
dialog_id=$DLG_did")
|
||||
#modparam("acc", "db_url", "flatstore:/tmp")
|
||||
#modparam("acc", "db_flag", "CDR")
|
||||
#modparam("acc", "db_missed_flag", "CDR")
|
||||
#modparam("acc", "db_table_missed_calls", "cgr_missed")
|
||||
#modparam("acc", "db_extra", "cgr_reqtype=$avp(cgr_reqtype);
|
||||
# cgr_account=$avp(cgr_account);
|
||||
# cgr_destination=$avp(cgr_destination);
|
||||
# cgr_supplier=$avp(cgr_supplier);
|
||||
# dialog_id=$DLG_did")
|
||||
|
||||
#### CfgUtils module
|
||||
loadmodule "cfgutils.so"
|
||||
@@ -138,7 +128,7 @@ startup_route {
|
||||
|
||||
local_route {
|
||||
if (is_method("BYE") ) {
|
||||
#setflag(CDR);
|
||||
# make sure a LOCAL_DISCONNECT event is triggered on local BYEs
|
||||
acc_evi_request("LOCAL_DISCONNECT"); #FixMe
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user