Module: kamailio
Branch: 5.8
Commit: 64cfaafaa3644f041003bdbd009d76711ec34ed7
URL: 
https://github.com/kamailio/kamailio/commit/64cfaafaa3644f041003bdbd009d76711ec34ed7

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-12-01T13:48:27+01:00

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

(cherry picked from commit 09a0a1a0b44f996d9ae5d0a8fea390aa2dbe7d11)
(cherry picked from commit ccfeed9bff2dae8a68838343c3d966e2d6338dd1)

---

Modified: src/modules/rr/rr_mod.c

---

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

---

diff --git a/src/modules/rr/rr_mod.c b/src/modules/rr/rr_mod.c
index 284530f7d96..93f5bfe8c32 100644
--- a/src/modules/rr/rr_mod.c
+++ b/src/modules/rr/rr_mod.c
@@ -578,19 +578,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