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

Author: Lyubomir Yatanski <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2025-09-27T19:04:57+02:00

core parser: fix after 316ea8925edd0c401c121e9dc0f21dde3a2c6598

> Error: core/parser/msg_parser.c:423:9: error: call to undeclared function 
> 'parse_from_header'; ISO C99 and later do not support implicit function 
> declarations [-Wimplicit-function-declaration]
>  423 |                                         if(parse_from_header(msg) < 0) 
> {
>       |                                            ^
> core/parser/msg_parser.c:423:9: note: did you mean 'parse_to_header'?
> core/parser/parse_to.h:48:5: note: 'parse_to_header' declared here
>    48 | int parse_to_header(struct sip_msg *const msg);
>       |     ^
> 1 error generated.

---

Modified: src/core/parser/msg_parser.c

---

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

---

diff --git a/src/core/parser/msg_parser.c b/src/core/parser/msg_parser.c
index e3ee7998b7a..dcbbb3804b6 100644
--- a/src/core/parser/msg_parser.c
+++ b/src/core/parser/msg_parser.c
@@ -52,7 +52,7 @@
 #include "parse_hname2.h"
 #include "parse_uri.h"
 #include "parse_content.h"
-#include "parse_to.h"
+#include "parse_from.h"
 #include "../compiler_opt.h"
 
 #ifdef DEBUG_DMALLOC

_______________________________________________
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