[sr-dev] git:4.3:3ed6eecd: topoh: proper detection of cancel reply for processing

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 21 10:17:44 CET 2016


Module: kamailio
Branch: 4.3
Commit: 3ed6eecd71b3178f6dc7e777ee6fccb1314ef352
URL: https://github.com/kamailio/kamailio/commit/3ed6eecd71b3178f6dc7e777ee6fccb1314ef352

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-01-21T10:17:18+01:00

topoh: proper detection of cancel reply for processing

- reported by Alex Balashov

(cherry picked from commit 0ce66908ee9da74806e2fa506ef98b5f9043e47c)

---

Modified: modules/topoh/topoh_mod.c

---

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

---

diff --git a/modules/topoh/topoh_mod.c b/modules/topoh/topoh_mod.c
index d3f347e..f6e576c 100644
--- a/modules/topoh/topoh_mod.c
+++ b/modules/topoh/topoh_mod.c
@@ -330,7 +330,7 @@ int th_msg_received(void *data)
 		{
 			/* one Via in received reply -- it is for local generated request
 			 * - nothing to unhide unless is CANCEL/ACK */
-			if((get_cseq(&msg)->method_id)&(METHOD_CANCEL))
+			if(!((get_cseq(&msg)->method_id)&(METHOD_CANCEL)))
 				goto done;
 		}
 




More information about the sr-dev mailing list