Module: kamailio
Branch: master
Commit: 5f3e430fa7c769aa8b262dbeaec96fd2e556c08a
URL: 
https://github.com/kamailio/kamailio/commit/5f3e430fa7c769aa8b262dbeaec96fd2e556c08a

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: GitHub <nore...@github.com>
Date: 2019-01-07T11:58:19+01:00

Merge pull request #1776 from balajeesv/routeissue

topoh: fixed unmask route issue, if maksing fails for one of the routes

---

Modified: src/modules/topoh/th_msg.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/5f3e430fa7c769aa8b262dbeaec96fd2e556c08a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5f3e430fa7c769aa8b262dbeaec96fd2e556c08a.patch

---

diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 2ba5688395..9cf87aa8c6 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -709,7 +709,10 @@ int th_unmask_route(sip_msg_t *msg)
 
                                if(th_get_uri_param_value(&rr->nameaddr.uri, 
&th_uparam_name,
                                                        &eval)<0 || eval.len<=0)
-                                       return -1;
+                               {
+                                       rr = rr->next;
+                                       continue;
+                               }
 
                                out.s = th_mask_decode(eval.s, eval.len,
                                                        &th_uparam_prefix, 0, 
&out.len);


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to