Module: sip-router Branch: sr_3.0 Commit: 3c4e9bbb4ab18259b3fb6f4d62fd7934e0f72f18 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3c4e9bbb...
Author: Miklos Tirpak miklos@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Nov 11 12:24:50 2009 +0100
tm: TMCB_E2EACK callback fix
TMCB_E2EACK_RETR_IN was called instead of TMCB_E2EACK_IN for the initial e2e-ACK message. (cherry picked from commit 3da5ebc8bdc3530d1c61b84665e4dadf6c6cb3e9)
---
modules/tm/t_reply.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c index e13acbb..78a0991 100644 --- a/modules/tm/t_reply.c +++ b/modules/tm/t_reply.c @@ -271,9 +271,9 @@ int unmatched_totag(struct cell *t, struct sip_msg *ack) if (i->tag.len==tag->len && memcmp(i->tag.s, tag->s, tag->len)==0) { DBG("DEBUG: totag for e2e ACK found: %d\n", i->acked); - /* mark totag as acked and return 0 if this was the first ack - * and 1 otherwise */ - return atomic_get_and_set_int(&i->acked, 1); + /* mark totag as acked and return 1 if this was the first ack + * and 0 otherwise */ + return (atomic_get_and_set_int(&i->acked, 1)==0); } i=i->next; }