mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 21:59:53 +05:00
SM - Fix StoreSMCost, OpenSIPS integration fixes and update tutorial to 2.2 version
This commit is contained in:
@@ -6,21 +6,22 @@
|
||||
|
||||
####### Global Parameters #########
|
||||
|
||||
debug=3
|
||||
#debug=3
|
||||
log_stderror=no
|
||||
log_facility=LOG_LOCAL0
|
||||
|
||||
fork=yes
|
||||
#fork=yes
|
||||
children=4
|
||||
listen=udp:lo:5060
|
||||
listen=udp:eth0:5060
|
||||
listen=udp:eth1:5060
|
||||
|
||||
auto_aliases=no
|
||||
|
||||
####### Modules Section ########
|
||||
|
||||
#set module path
|
||||
mpath="/usr/lib/opensips/modules"
|
||||
mpath="/usr/lib/x86_64-linux-gnu/opensips/modules"
|
||||
|
||||
#### SIGNALING module
|
||||
loadmodule "signaling.so"
|
||||
@@ -91,8 +92,8 @@ modparam("db_flatstore", "single_file", 1)
|
||||
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_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);
|
||||
@@ -211,7 +212,7 @@ route{
|
||||
# take the path determined by record-routing
|
||||
if (loose_route()) {
|
||||
if (is_method("BYE")) {
|
||||
setflag(CDR); # do accounting ...
|
||||
do_accounting("evi");
|
||||
} else if (is_method("INVITE")) {
|
||||
# even if in most of the cases is useless, do RR for
|
||||
# re-INVITEs alos, as some buggy clients do change route set
|
||||
@@ -304,7 +305,7 @@ route{
|
||||
}
|
||||
$avp(cgr_account)=$fU;
|
||||
$avp(cgr_destination)=$rU;
|
||||
setflag(CDR);
|
||||
do_accounting("evi", "missed|failed");
|
||||
route(CGR_AUTH_REQ);
|
||||
#End of processing
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user