[sr-dev] git:master:7185a8a7: modules/ims_charging: set the last_event timestamp if there was failure to get credit
jaybeepee
jason.penton at gmail.com
Wed Oct 7 15:49:13 CEST 2015
Module: kamailio
Branch: master
Commit: 7185a8a708001a6e2d2150e2541880c04c2374b4
URL: https://github.com/kamailio/kamailio/commit/7185a8a708001a6e2d2150e2541880c04c2374b4
Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-10-07T15:48:53+02:00
modules/ims_charging: set the last_event timestamp if there was failure to get credit
---
Modified: modules/ims_charging/ro_timer.c
---
Diff: https://github.com/kamailio/kamailio/commit/7185a8a708001a6e2d2150e2541880c04c2374b4.diff
Patch: https://github.com/kamailio/kamailio/commit/7185a8a708001a6e2d2150e2541880c04c2374b4.patch
---
diff --git a/modules/ims_charging/ro_timer.c b/modules/ims_charging/ro_timer.c
index 4e1c268..df1fc59 100644
--- a/modules/ims_charging/ro_timer.c
+++ b/modules/ims_charging/ro_timer.c
@@ -332,6 +332,7 @@ void resume_ro_session_ontimeout(struct interim_ccr *i_req) {
/* just put the timer back in with however many seconds are left (if any!!! in which case we need to kill */
/* also update the event type to no_more_credit to save on processing the next time we get here */
i_req->ro_session->event_type = no_more_credit;
+ i_req->ro_session->last_event_timestamp = get_current_time_micro();
int whatsleft = i_req->ro_session->reserved_secs - used_secs;
if (whatsleft <= 0) {
// TODO we need to handle this situation more precisely.
More information about the sr-dev
mailing list