瀏覽代碼

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. ]
Andrei Pelinescu-Onciul 16 年之前
父節點
當前提交
f90cfa1534
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      modules_k/tmx/t_mi.c

+ 3 - 2
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));