diff --git a/plugins/mod_sipwise_pushd.lua b/plugins/mod_sipwise_pushd.lua index f2f1e43..5654d2a 100644 --- a/plugins/mod_sipwise_pushd.lua +++ b/plugins/mod_sipwise_pushd.lua @@ -357,7 +357,7 @@ local function handle_offline(event) origin.host or caller.host); if is_invite(stanza) then msg.data_type = 'invite'; - caller_jid = jid_bare(invite:get_child('invite').attr.from) or + caller_jid = jid_bare(stanza:get_child('invite').attr.from) or caller_jid; elseif is_attachment(stanza) then msg.data_message = "new attachment";