Module: sip-router
Branch: sr_3.0
Commit: 6c2b7c76ed105fc672fb2de8e0d37db56c33435f
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6c2b7c76ed105fc672fb2de8e0d37db56c33435f

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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
(cherry picked from commit 0bcc7d5f76ec897f748857befbbdcdc265d0b970)

---

 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 */


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to