[sr-dev] git:kamailio_3.0: dialog(k): : set callback type for local requests
Daniel-Constantin Mierla
miconda at gmail.com
Fri Nov 6 12:33:28 CET 2009
Module: sip-router
Branch: kamailio_3.0
Commit: 0bcc7d5f76ec897f748857befbbdcdc265d0b970
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0bcc7d5f76ec897f748857befbbdcdc265d0b970
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Fri Nov 6 12:29:09 2009 +0100
dialog(k): : set callback type for local requests
- type has to be TMCB_LOCAL_COMPLETED to execute transaction callback
---
modules_k/dialog/dlg_req_within.c | 2 +-
modules_k/dialog/dlg_transfer.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules_k/dialog/dlg_req_within.c b/modules_k/dialog/dlg_req_within.c
index e0f208e..9be5c51 100644
--- a/modules_k/dialog/dlg_req_within.c
+++ b/modules_k/dialog/dlg_req_within.c
@@ -252,7 +252,7 @@ static inline int send_bye(struct dlg_cell * cell, int dir, str *hdrs)
ref_dlg(cell, 1);
memset(&uac_r,'\0', sizeof(uac_req_t));
- set_uac_req(&uac_r, &met, hdrs, NULL, dialog_info, 0,
+ set_uac_req(&uac_r, &met, hdrs, NULL, dialog_info, TMCB_LOCAL_COMPLETED,
bye_reply_cb, (void*)cell);
result = d_tmb.t_request_within(&uac_r);
diff --git a/modules_k/dialog/dlg_transfer.c b/modules_k/dialog/dlg_transfer.c
index df6f5d1..4b87ba2 100644
--- a/modules_k/dialog/dlg_transfer.c
+++ b/modules_k/dialog/dlg_transfer.c
@@ -160,7 +160,7 @@ static int dlg_refer_callee(dlg_transfer_ctx_t *dtc)
CRLF, CRLF_LEN);
memset(&uac_r, '\0', sizeof(uac_req_t));
- set_uac_req(&uac_r, &met, &hdrs, NULL, dialog_info, 0,
+ set_uac_req(&uac_r, &met, &hdrs, NULL, dialog_info, TMCB_LOCAL_COMPLETED,
dlg_refer_tm_callback, (void*)dtc);
result = d_tmb.t_request_within(&uac_r);
@@ -320,6 +320,7 @@ int dlg_bridge(str *from, str *to, str *op)
uac_r.method = &s_method;
uac_r.headers = &s_hdrs;
uac_r.body = &s_body;
+ uac_r.cb_flags = TMCB_LOCAL_COMPLETED;
uac_r.cb = dlg_bridge_tm_callback;
uac_r.cbp = (void*)(long)dtc;
ret = d_tmb.t_request(&uac_r, /* UAC Req */
More information about the sr-dev
mailing list