I am using the below config :
event_route[xhttp:request] {
if ($hu =~ "^/RPCHIDDEN/") {
//jsonrpc_dispatch();
set_reply_no_connect(); # optional
dispatch_rpc();
} else {
xhttp_reply("403", "OK", "text/html",
"<html><body>Forbidden</body></html>");
}
return;
}
I have enabled :
#!ifdef WITH_XMLRPC
# ----- xmlrpc params -----
modparam("xmlrpc", "route", "XMLRPC");
modparam("xmlrpc", "url_match", "^/RPCHIDDEN/")
#!endif
0(7342) ERROR: <core> [core/cfg.y:3274]: yyparse(): cfg. parser: failed to find command dispatch_rpc (params 0)