[sr-dev] git:master:cc94a375: modules/ims_charging: correct analysis of return value for t_suspend

jaybeepee jason.penton at gmail.com
Mon Nov 30 20:09:15 CET 2015


Module: kamailio
Branch: master
Commit: cc94a3751dd536053846d7a569e8062d8cfbea7f
URL: https://github.com/kamailio/kamailio/commit/cc94a3751dd536053846d7a569e8062d8cfbea7f

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-11-30T21:09:04+02:00

modules/ims_charging: correct analysis of return value for t_suspend

---

Modified: modules/ims_charging/mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/cc94a3751dd536053846d7a569e8062d8cfbea7f.diff
Patch: https://github.com/kamailio/kamailio/commit/cc94a3751dd536053846d7a569e8062d8cfbea7f.patch

---

diff --git a/modules/ims_charging/mod.c b/modules/ims_charging/mod.c
index d2f371d..9dae820 100644
--- a/modules/ims_charging/mod.c
+++ b/modules/ims_charging/mod.c
@@ -499,7 +499,7 @@ static int w_ro_ccr(struct sip_msg *msg, char* c_route_name, char* c_direction,
 	}
 
 	LM_DBG("Suspending SIP TM transaction\n");
-	if (tmb.t_suspend(msg, &tindex, &tlabel) < 0) {
+	if (tmb.t_suspend(msg, &tindex, &tlabel) != 0) {
 		LM_ERR("failed to suspend the TM processing\n");
 		ret =  RO_RETURN_ERROR;
 		goto done;




More information about the sr-dev mailing list