Browse Source

tm: rebuild the local request if uri was changed in event route

- rebuild was done only on changes over headers and body, with an
  eventual new r-uri being used in that case
- no should work also when only r-uri is changed
- closes FS#158
Daniel-Constantin Mierla 11 năm trước cách đây
mục cha
commit
dbd8ea9b1f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      modules/tm/uac.c

+ 2 - 1
modules/tm/uac.c

@@ -443,7 +443,8 @@ static inline int t_uac_prepare(uac_req_t *uac_r,
 
 
 				} else {
 				} else {
 normal_update:
 normal_update:
-					if (unlikely(lreq.add_rm || lreq.body_lumps)) {
+					if (unlikely(lreq.add_rm || lreq.body_lumps
+								|| lreq.new_uri.s)) {
 						LM_DBG("apply new updates without Via to sip msg\n");
 						LM_DBG("apply new updates without Via to sip msg\n");
 						buf1 = build_req_buf_from_sip_req(&lreq,
 						buf1 = build_req_buf_from_sip_req(&lreq,
 								(unsigned int*)&buf_len1,
 								(unsigned int*)&buf_len1,