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

Author: jaybeepee <[email protected]>
Committer: jaybeepee <[email protected]>
Date: 2015-11-30T21:05:42+02:00

modules/ims_qos: correct analysis of return value for t_suspend

---

Modified: modules/ims_qos/mod.c

---

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

---

diff --git a/modules/ims_qos/mod.c b/modules/ims_qos/mod.c
index c5cb363..cb64390 100644
--- a/modules/ims_qos/mod.c
+++ b/modules/ims_qos/mod.c
@@ -892,7 +892,7 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char* 
dir, char *c_id, int
     }
 
     LM_DBG("Suspending SIP TM transaction\n");
-    if (tmb.t_suspend(msg, &saved_t_data->tindex, &saved_t_data->tlabel) < 0) {
+    if (tmb.t_suspend(msg, &saved_t_data->tindex, &saved_t_data->tlabel) != 0) 
{
         LM_ERR("failed to suspend the TM processing\n");
        if (auth_session) cdpb.AAASessionsUnlock(auth_session->hash);
        goto error;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to