Module: kamailio
Branch: master
Commit: ce86851ded64a094bd62cc205ce19f0b7bfa2f20
URL:
https://github.com/kamailio/kamailio/commit/ce86851ded64a094bd62cc205ce19f0…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-02-29T14:08:00+02:00
modules/ims_charging: add reason header for out-of-credit timeouts
---
Modified: modules/ims_charging/ro_timer.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ce86851ded64a094bd62cc205ce19f0…
Patch:
https://github.com/kamailio/kamailio/commit/ce86851ded64a094bd62cc205ce19f0…
---
diff --git a/modules/ims_charging/ro_timer.c b/modules/ims_charging/ro_timer.c
index ade2614..97e292d 100644
--- a/modules/ims_charging/ro_timer.c
+++ b/modules/ims_charging/ro_timer.c
@@ -380,7 +380,8 @@ void resume_ro_session_ontimeout(struct interim_ccr *i_req) {
void ro_session_ontimeout(struct ro_tl *tl) {
time_t now, call_time;
long used_secs;
- int adjustment;
+ int adjustment;
+ str default_out_of_credit_hdrs = {"Reason: outofcredit\r\n", 21};
LM_DBG("We have a fired timer [p=%p] and tl=[%i].\n", tl, tl->timeout);
@@ -484,7 +485,7 @@ void ro_session_ontimeout(struct ro_tl *tl) {
counter_inc(ims_charging_cnts_h.killed_calls);
- dlgb.lookup_terminate_dlg(ro_session->dlg_h_entry, ro_session->dlg_h_id,
NULL);
+ dlgb.lookup_terminate_dlg(ro_session->dlg_h_entry, ro_session->dlg_h_id,
&default_out_of_credit_hdrs);
return;
}