Module: sip-router
Branch: master
Commit: 328350a0d718990f8a87f25f8c12f1c85d61220f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=328350a…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Wed Oct 30 12:50:04 2013 +0200
modules/ims_charging: fixed failed reservation bug
- Reservation checks dialog integrity with h_entry < 0
- The hash that creates h_entry can return 0 - this check should be <= 0
---
modules/ims_charging/ro_timer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/ims_charging/ro_timer.c b/modules/ims_charging/ro_timer.c
index 797b696..248e4db 100644
--- a/modules/ims_charging/ro_timer.c
+++ b/modules/ims_charging/ro_timer.c
@@ -402,7 +402,7 @@ void ro_session_ontimeout(struct ro_tl *tl) {
update_stat(billed_secs, used_secs);
if (ro_session->callid.s != NULL
- && ro_session->dlg_h_entry > 0
+ && ro_session->dlg_h_entry >= 0
&& ro_session->dlg_h_id > 0
&& ro_session->ro_session_id.s != NULL)
{