2954456878 created an issue (kamailio/kamailio#4299)
version: kamailio 6.0.1 (x86_64/linux)
loadmodule "nghttp2.so"
modparam("nghttp2", "listen_addr", "0.0.0.0")
modparam("nghttp2", "listen_port", "8363")
event_route[nghttp2:request] {
xinfo("request: $nghttp2(method) - url: $nghttp2(url) - data: [$nghttp2(data)]\n");
nghttp2_reply("200",
"<html><body>OK</body></html>");
}
Startup error:
Jun 25 10:42:50 debiancrs /usr/local/kamailio6-devel/sbin/kamailio[41907]: ERROR: nghttp2 [nghttp2_mod.c:246]: pv_parse_nghttp2_name(): invalid variable name [url]
Jun 25 10:42:50 debiancrs /usr/local/kamailio6-devel/sbin/kamailio[41907]: ERROR: <core> [core/pvapi.c:954]: pv_parse_spec2(): pvar "nghttp2" has an invalid name param [url]
Jun 25 10:42:50 debiancrs /usr/local/kamailio6-devel/sbin/kamailio[41907]: ERROR: <core> [core/pvapi.c:1092]: pv_parse_spec2(): wrong char [)/41] in [$nghttp2(url)] at [12 (5)]
Jun 25 10:42:50 debiancrs /usr/local/kamailio6-devel/sbin/kamailio[41907]: ERROR: xlog [xlog.c:550]: xdbg_fixup_helper(): wrong format[request: $nghttp2(method) - url: $nghttp2(url) - data: [$nghttp2(data)]#012]
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4299
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4299(a)github.com>
Module: kamailio
Branch: master
Commit: 64bc28f1279809829b714d23314b3e62030a8ccb
URL: https://github.com/kamailio/kamailio/commit/64bc28f1279809829b714d23314b3e6…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2025-06-26T09:31:10+02:00
modules: readme files regenerated - nghttp2 ... [skip ci]
---
Modified: src/modules/nghttp2/README
---
Diff: https://github.com/kamailio/kamailio/commit/64bc28f1279809829b714d23314b3e6…
Patch: https://github.com/kamailio/kamailio/commit/64bc28f1279809829b714d23314b3e6…
---
diff --git a/src/modules/nghttp2/README b/src/modules/nghttp2/README
index f880b2e5a13..fc79a0fbae3 100644
--- a/src/modules/nghttp2/README
+++ b/src/modules/nghttp2/README
@@ -184,15 +184,15 @@ event_route[nghttp2:request] {
The event route is executed when a new HTTP request is received.
Inside it, the $nghttp2(...) group of variables is available, giving
- access to several attributes of the HTTP request, such as method, URL,
- data (body) or headers.
+ access to several attributes of the HTTP request, such as method, URL
+ path, data (body) or headers.
...
...
loadmodule "nghttp2.so
...
event_route[nghttp2:request] {
- xinfo("request: $nghttp2(method) - url: $nghttp2(url) - data: [$nghttp2(data
-)]\n");
+ xinfo("request: $nghttp2(method) - url: $nghttp2(path) - data: [$nghttp2(dat
+a)]\n");
nghttp2_reply("200", "OK", "text/html",
"<html><body>OK</body></html>");
}