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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Mon Sep  1 23:36:25 2014 +0200

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

---

 modules/tm/uac.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/tm/uac.c b/modules/tm/uac.c
index cf78a78..798fe9a 100644
--- a/modules/tm/uac.c
+++ b/modules/tm/uac.c
@@ -443,7 +443,8 @@ static inline int t_uac_prepare(uac_req_t *uac_r,
 
                                } else {
 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");
                                                buf1 = 
build_req_buf_from_sip_req(&lreq,
                                                                (unsigned 
int*)&buf_len1,


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

Reply via email to