Module: kamailio
Branch: 6.0
Commit: ccfeed9bff2dae8a68838343c3d966e2d6338dd1
URL: 
https://github.com/kamailio/kamailio/commit/ccfeed9bff2dae8a68838343c3d966e2d6338dd1

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-11-27T17:35:36+01:00

rr: return $null on header not found for $route_uri

(cherry picked from commit 09a0a1a0b44f996d9ae5d0a8fea390aa2dbe7d11)

---

Modified: src/modules/rr/rr_mod.c

---

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

---

diff --git a/src/modules/rr/rr_mod.c b/src/modules/rr/rr_mod.c
index 5d4423b240e..dbdebdd00c0 100644
--- a/src/modules/rr/rr_mod.c
+++ b/src/modules/rr/rr_mod.c
@@ -583,19 +583,19 @@ static int pv_get_route_uri_f(
        /* Parse the message until the First-Route-Header: */
        if(parse_headers(msg, HDR_ROUTE_F, 0) == -1) {
                LM_ERR("while parsing message\n");
-               return -1;
+               return pv_get_null(msg, param, res);
        }
 
        if(!msg->route) {
                LM_INFO("No route header present.\n");
-               return -1;
+               return pv_get_null(msg, param, res);
        }
        hdr = msg->route;
 
        /* Parse the contents of the header: */
        if(parse_rr(hdr) == -1) {
                LM_ERR("Error while parsing Route header\n");
-               return -1;
+               return pv_get_null(msg, param, res);
        }
 
 

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to