Module: sip-router Branch: master Commit: 311d365b18fca29379e57e02855fd71b325fb7eb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=311d365b...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Mon Jul 20 10:13:47 2009 +0200
tm: AS - fixed onsend callbacks invocation
When compiled with WITH_AS_SUPPORT and TMCB_ONSEND, ack_local_uac() used a wrong way for calling the onsend callbacks (compile error).
---
modules/tm/uac.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/modules/tm/uac.c b/modules/tm/uac.c index 6dfd0fc..f3b32b8 100644 --- a/modules/tm/uac.c +++ b/modules/tm/uac.c @@ -492,6 +492,9 @@ int ack_local_uac(struct cell *trans, str *hdrs, str *body) { struct retr_buf *local_ack, *old_lack; int ret; +#ifdef TMCB_ONSEND + struct tmcb_params onsend_params; +#endif
/* sanity checks */
@@ -553,9 +556,11 @@ int ack_local_uac(struct cell *trans, str *hdrs, str *body) } #ifdef TMCB_ONSEND else { - run_onsend_callbacks2(TMCB_REQUEST_SENT, &trans->uac[0]->request, - local_ack->buffer, local_ack->buffer_len, &local_ack->dst, - TYPE_LOCAL_ACK); + INIT_TMCB_ONSEND_PARAMS(onsend_params, 0, 0, &trans->uac[0].request, + &local_ack->dst, + local_ack->buffer, local_ack->buffer_len, + TMCB_LOCAL_F, 0 /* branch */, TYPE_LOCAL_ACK); + run_onsend_callbacks2(TMCB_REQUEST_SENT, trans, &onsend_params); } #endif