Place in 'Edit Startup Lua':
luup.variable_watch( 'forward_incoming_call_via_email', 'urn:upnp-ap15e-com:serviceId:FCM1', 'Message', 26 )
function forward_incoming_call_via_email()
local msg = luup.variable_get( 'urn:upnp-ap15e-com:serviceId:FCM1', 'Message', 26 )
if string.find( msg or '', 'RING' ) ~= nil
then
luup.call_action( "urn:upnp-ap15e-com:serviceId:SND1", "SendMail", { subject = msg, body = '' }, 25 )
end
end
Requirements:
FRITZ!Box, SND plugin, FCM plugin. Adjust the device IDs accordingly.