[sr-dev] git:master:1368c576: modules/ims_charging: remove useless conditions
jaybeepee
jason.penton at gmail.com
Tue Jun 7 08:42:31 CEST 2016
Module: kamailio
Branch: master
Commit: 1368c576e11186134caeb02fca62ccc8f0c8c48b
URL: https://github.com/kamailio/kamailio/commit/1368c576e11186134caeb02fca62ccc8f0c8c48b
Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2016-06-07T08:42:15+02:00
modules/ims_charging: remove useless conditions
---
Modified: modules/ims_charging/ro_timer.c
---
Diff: https://github.com/kamailio/kamailio/commit/1368c576e11186134caeb02fca62ccc8f0c8c48b.diff
Patch: https://github.com/kamailio/kamailio/commit/1368c576e11186134caeb02fca62ccc8f0c8c48b.patch
---
diff --git a/modules/ims_charging/ro_timer.c b/modules/ims_charging/ro_timer.c
index d720f4a..ded2a4b 100644
--- a/modules/ims_charging/ro_timer.c
+++ b/modules/ims_charging/ro_timer.c
@@ -431,10 +431,7 @@ void ro_session_ontimeout(struct ro_tl *tl) {
counter_add(ims_charging_cnts_h.billed_secs, used_secs);
- if (ro_session->callid.s != NULL
- && ro_session->dlg_h_entry >= 0U
- && ro_session->dlg_h_id >= 0U
- && ro_session->ro_session_id.s != NULL) {
+ if (ro_session->callid.s != NULL && ro_session->ro_session_id.s != NULL) {
LM_DBG("Found a session to re-apply for timing [%.*s] and user is [%.*s]\n",
ro_session->ro_session_id.len,
ro_session->ro_session_id.s,
More information about the sr-dev
mailing list