[sr-dev] git:tmp/k3.0_sr_backports: tm: fix setting the pre-T callbacks

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Feb 1 12:32:31 CET 2010


Module: sip-router
Branch: tmp/k3.0_sr_backports
Commit: a9c4a00bf471e6a006d581ded6bb3cb659f4d025
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a9c4a00bf471e6a006d581ded6bb3cb659f4d025

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Feb  1 11:27:20 2010 +0100

tm: fix setting the pre-T callbacks

- introduced in the fix for uac module (affecting only uac)
- credits to Andrei Pelinescu-Onciul
(cherry picked from commit 32d3e9c98943ad298f09d26db83ecf4ce5c2cc0e)

---

 modules/tm/t_hooks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_hooks.c b/modules/tm/t_hooks.c
index 7698517..3d64bae 100644
--- a/modules/tm/t_hooks.c
+++ b/modules/tm/t_hooks.c
@@ -81,7 +81,7 @@ struct tmcb_head_list* get_early_tmcb_list(struct sip_msg *msg)
 
 void set_early_tmcb_list(struct sip_msg *msg, struct cell *t)
 {
-	if (msg->id!=tmcb_early_hl.msgid) {
+	if (msg->id==tmcb_early_hl.msgid) {
 		t->tmcb_hl = tmcb_early_hl.cb_list;
 		memset(&tmcb_early_hl.cb_list, 0, sizeof(struct tmcb_head_list));
 		tmcb_early_hl.msgid = 0;




More information about the sr-dev mailing list