OpenSIPS ASR fix, LoadTariffPlanFromStorDb crash fix, missing build dependency in glide.yaml

This commit is contained in:
John Koce Steel
2016-05-16 17:53:58 +02:00
parent 057a16b152
commit 1822c0ce89
5 changed files with 17 additions and 4 deletions

View File

@@ -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;
}
}