Module: sip-router
Branch: master
Commit: f90cfa15340ad74737cc3b2cc67f08347e7fbacc
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f90cfa15340ad74737cc3b2cc67f08347e7fbacc

Author: Andrei Pelinescu-Onciul <[email protected]>
Committer: Andrei Pelinescu-Onciul <[email protected]>
Date:   Mon Jul 20 18:28:03 2009 +0200

tmx(k): mi_tm_uac_dlg  uris fix

Replaced dlg.hooks.request_uri  with dlg.rem_uri and
dlg.hooks.next_hop with dlg.rem_target.
[ In sr tm the dialog hooks should not be changed, they are only
used for internal caching. Any change to the hooks will be lost
immediately after t_uac() is called (t_uac() re-calculates the
hooks each time it is called). One should use instead the
correspondent dlg structure members. ]

---

 modules_k/tmx/t_mi.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules_k/tmx/t_mi.c b/modules_k/tmx/t_mi.c
index e2fa5b4..54c9ff1 100644
--- a/modules_k/tmx/t_mi.c
+++ b/modules_k/tmx/t_mi.c
@@ -610,8 +610,9 @@ struct mi_root*  mi_tm_uac_dlg(struct mi_root* cmd_tree, 
void* param)
 
        dlg.loc_uri = tmp_msg.from->body;
        dlg.rem_uri = tmp_msg.to->body;
-       dlg.hooks.request_uri = ruri;
-       dlg.hooks.next_hop = (nexthop ? nexthop : ruri);
+       dlg.rem_target = *ruri;
+       if (nexthop)
+               dlg.dst_uri = *nexthop;
        dlg.send_sock = sock;
 
        memset(&uac_r, 0, sizeof(uac_req_t));


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

Reply via email to