Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules:xmlrpc event_callback added for ksr routes #1736

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/modules/xmlrpc/doc/xmlrpc_admin.xml
Expand Up @@ -219,11 +219,12 @@ modparam("xmlrpc", "event_callback", "ksr_xmlrpc_event")
-- event callback function implemented in Lua
function ksr_xmlrpc_event(evname)
KSR.info("===== xmlrpc triggered event: " .. evname .. "\n");
local rpc_method = headers.get("$rm") or ""
local rpc_method = KSR.pv.get("$rm") or ""
if ((rpc_method == "POST" or rpc_method == "GET")) then
if not (core.dispatch_xmlrpc()) then
KSR.err("error while executing xmlrpc event")
end
if (KSR.xmlrpc.dispatch_rpc() < 0) then
KSR.err("error while executing xmlrpc event")
end
end
return 1;
end
...
Expand Down