Module: sip-router
Branch: kamailio_3.0
Commit: d49abf1ec44ca63a36ef1149622bf1b706d17b2a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d49abf1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Nov 6 12:30:51 2009 +0100
uac(k): set callback type for local requests
- type has to be TMCB_LOCAL_COMPLETED to execute transaction callback
---
modules_k/uac/uac_send.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules_k/uac/uac_send.c b/modules_k/uac/uac_send.c
index 6e26b4d..bd33795 100644
--- a/modules_k/uac/uac_send.c
+++ b/modules_k/uac/uac_send.c
@@ -383,6 +383,7 @@ int uac_req_send(struct sip_msg *msg, char *s1, char *s2)
uac_r.method = &_uac_req.s_method;
uac_r.headers = (_uac_req.s_hdrs.len <= 0) ? NULL : &_uac_req.s_hdrs;
uac_r.body = (_uac_req.s_body.len <= 0) ? NULL : &_uac_req.s_body;
+ uac_r.cb_flags =(_uac_req.onreply > 0) ? TMCB_LOCAL_COMPLETED : 0;
uac_r.cb = (_uac_req.onreply > 0) ? uac_send_tm_callback : NULL;
/* Callback function */
uac_r.cbp = (_uac_req.onreply > 0) ? (void*)(long)_uac_req.onreply : 0;