[sr-dev] git:master: tmx(k): mi_tm_uac_dlg uris fix

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Jul 20 18:34:08 CEST 2009


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 <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
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));




More information about the sr-dev mailing list