Module: sip-router Branch: treimann/master_tm-extend-callbacks Commit: ebab1db04c51d38fda19eb7f31955e3c52fcb877 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ebab1db0...
Author: Timo Reimann timo.reimann@1und1.de Committer: Timo Reimann timo.reimann@1und1.de Date: Wed Oct 5 18:39:59 2011 +0200
tm: Provide sent buffer (processed message) in callback to TMCB_RESPONSE_READY.
---
modules/tm/t_reply.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c index 1a11038..69c55d9 100644 --- a/modules/tm/t_reply.c +++ b/modules/tm/t_reply.c @@ -617,7 +617,7 @@ static int _reply_light( struct cell *trans, char* buf, unsigned int len, 0, FAKED_REPLY, code); } else { if(unlikely(has_tran_tmcbs(trans, TMCB_RESPONSE_READY))) { - run_trans_callbacks(TMCB_RESPONSE_READY, trans, + run_trans_callbacks_with_buf(TMCB_RESPONSE_READY, rb, trans->uas.request, FAKED_REPLY, code); } } @@ -1806,7 +1806,7 @@ enum rps relay_reply( struct cell *t, struct sip_msg *p_msg, int branch, /* send it now (from the private buffer) */ if (relay >= 0) { if (unlikely(!totag_retr && has_tran_tmcbs(t, TMCB_RESPONSE_READY))){ - run_trans_callbacks(TMCB_RESPONSE_READY, t, + run_trans_callbacks_with_buf(TMCB_RESPONSE_READY, uas_rb, t->uas.request, relayed_msg, relayed_code); } /* Set retransmission timer before the reply is sent out to avoid