[sr-dev] git:master: modules/ims_charging: fixed failed reservation bug

Richard Good richard.good at smilecoms.com
Wed Oct 30 11:51:35 CET 2013


Module: sip-router
Branch: master
Commit: 328350a0d718990f8a87f25f8c12f1c85d61220f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=328350a0d718990f8a87f25f8c12f1c85d61220f

Author: Richard Good <richard.good at smilecoms.com>
Committer: Richard Good <richard.good at 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)
 		{




More information about the sr-dev mailing list