From 2f9231573f7d1da65dcff9adfd2942bdf2990be4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 13:58:23 +0200 Subject: mod_scansion_record: Complete stanza recording functions --- plugins/mod_scansion_record.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/mod_scansion_record.lua') diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 6e3cdcc2..645ea89c 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -15,6 +15,7 @@ local function record(string) end local function record_event(session, event) + record(session.scansion_id.." "..event.."\n\n"); end local function record_stanza(stanza, session, verb) @@ -22,9 +23,13 @@ local function record_stanza(stanza, session, verb) end local function record_stanza_in(stanza, session) + record_stanza(stanza, session, "sends") + return stanza; end local function record_stanza_out(stanza, session) + record_stanza(stanza, session, "receives") + return stanza; end module:hook("resource-bind", function (event) -- cgit v1.2.3