mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
OpenSIPS ASR fix, LoadTariffPlanFromStorDb crash fix, missing build dependency in glide.yaml
This commit is contained in:
@@ -98,6 +98,7 @@ 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);
|
||||
dialog_id=$DLG_did")
|
||||
#modparam("acc", "db_url", "flatstore:/tmp")
|
||||
#modparam("acc", "db_flag", "CDR")
|
||||
@@ -344,6 +345,7 @@ route{
|
||||
route[relay] {
|
||||
# for INVITEs enable some additional helper routes
|
||||
if (is_method("INVITE") && !has_totag()) {
|
||||
t_on_reply("MSG_REPLY"); #added for completeness not tested
|
||||
t_on_failure("missed_call");
|
||||
}
|
||||
if (!t_relay()) {
|
||||
@@ -367,3 +369,11 @@ failure_route[missed_call] {
|
||||
}
|
||||
}
|
||||
|
||||
onreply_route[MSG_REPLY]{
|
||||
if (t_check_status("200") && !$dlg_val(atime)){#so we set it ONLY ONCE
|
||||
$dlg_val(atime)=$Ts;
|
||||
}
|
||||
if (t_check_status("4..")){#CAPTURE ALL ERROR CODES NEGATIVE ASR record
|
||||
$dlg_val(atime)=NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user