The Vera Community forums have moved!

Advanced => Programming => Plugins & Plugin Development => Topic started by: Ap15e on May 28, 2011, 06:05:27 pm

Title: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
Post by: Ap15e on May 28, 2011, 06:05:27 pm
EOL, unsupported.

Installation:


Usage:

Limitations:

History:

Download:
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: oTi@ on May 28, 2011, 08:37:30 pm
For clarification, Fritz!Box (http://en.wikipedia.org/wiki/FRITZ!Box) is an xDSL modem (with ISDN/DECT phone capabilities) specific to the European market, I think.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 29, 2011, 06:58:23 am
For clarification, Fritz!Box is a DSL modem (with ISDN/DECT phone  capabilities) specific to the European market, I think.

Owning one myself i can state that its not specifically for the European market.
It supports international standards for:
Annex A
Annex B
GAP
SIP
UpNP
also theres a choice for models that support cable and ADSL (up to 2+) WAN acces

and therefore provides a LOT of funtionality in one box.

Will try the plugin later on today. Thx Ap15e... Guess i got you inspired a bit ;-)
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Ap15e on May 29, 2011, 09:56:59 am
FCM V0.1 is available.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 29, 2011, 10:16:50 am
Installation:
  • http://wiki.micasaverde.com/index.php/Install_LUUP_Plugins
  • Activate the call monitor: #96*5* (deactivation: #96*4*)
  • Set the variables FRITZBoxIP (default: 192.168.178.1) and FRITZBoxPort (default: 1012) and restart the Lua engine.

@Ap15e
--edit--
Works for my 7390 on FW84.04.88.
Using Prowl notifications in the luup section of a scenebased event works too!
using
Code: [Select]
-- Inform me when mum calls my house.
luup.inet.wget("https://prowl.weks.net/publicapi/add?apikey=0123456789012345678901234567890123456789&application=Vera&event=Incoming+phonecall&description=Mum+Calls&priority=-1")
return true
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: strangely on May 29, 2011, 11:46:46 am
Its a shame they don't seem to do one of these with an integrated cable modem, or even just a WAN port!?
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 29, 2011, 11:49:28 am
Its a shame they don't seem to do one of these with an integrated cable modem, or even just a WAN port!?

@Strangely
You mean like this (http://www.avm.de/en/Produkte/FRITZBox/FRITZ_6360_Cable/index.php) one?!?

Besides that, any Fritz!box can work as a regular router using a static route to your existing cable modem!
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 29, 2011, 12:00:21 pm
@Ap15e

Request:

1. Is it possible to have FCM store/show the last lets say 3 calling/called numbers and show the last event on FCM?
Standard i get a DISCONNECt (0s) in my display now, maybe its possible to show the event just before that (eg last incoming and/or last outgoing call).

2. Is it possible (for instance with ISDN MSN's) to distinguish between number called?
Now FCM allows to trigger only on incoming number or dialed number.
It would be nice to trigger a scene where number 12345 is calling msn 54321. Should be possible, the FCM monitor shows the info....

Henk
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: strangely on May 30, 2011, 01:12:37 am
Its a shame they don't seem to do one of these with an integrated cable modem, or even just a WAN port!?

@Strangely
You mean like this (http://www.avm.de/en/Produkte/FRITZBox/FRITZ_6360_Cable/index.php) one?!?

Besides that, any Fritz!box can work as a regular router using a static route to your existing cable modem!

The trouble is that I live in the USA and I'm not sure its compatible?!

I wish it was, as this would mean I can downsize from 4 devices to one, as I'd be combing my SIP adapter, DECT phone, Cable modem and Router.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: oTi@ on May 30, 2011, 01:25:28 am
The trouble is that I live in the USA and I'm not sure its compatible?!

I wish it was, as this would mean I can downsize from 4 devices to one, as I'd be combing my SIP adapter, DECT phone, Cable modem and Router.
Right; I think the Fritz!Box is targeted at the European market. The cable modem standard might be specific to Europe (EuroDOCSIS vs. DOCSIS), the DECT flavor over here in the U.S. I believe is different (DECT6.0), there's variations in the WLAN channels, etc. So it's probably not a given; you may end up with a reduced feature set.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 30, 2011, 01:38:49 am
The trouble is that I live in the USA and I'm not sure its compatible?!

I wish it was, as this would mean I can downsize from 4 devices to one, as I'd be combing my SIP adapter, DECT phone, Cable modem and Router.
Right; I think the Fritz!Box is targeted at the European market. The cable modem standard might be specific to Europe (EuroDOCSIS vs. DOCSIS), the DECT flavor over here in the U.S. I believe is different (DECT6.0), there's variations in the WLAN channels, etc.


I would have to do some research on the cable stuff. Looks like youre right there, (euro DOSIS 3.0)

WLAN is no problem, US suport channel 1-11, europe goes beyond that up to ch13 but that can be switched in the firmware (GUI is easy)

Dect is an international standard. Commonly used is GAP, Fritz also supports CAT-IQ which is a newr standard

Of course any existing cablemodem can be used icw a Fritz.

@Strangely
As far as i can see you could do with a slightly cheaper model (withou modem)  and still downsize from 4 to 2 devices. Keep your cablemodem intact and use Fritz as router, dect gateway and Voip device.
Check around on the web, i think i have read reviews from people who actually too the step, ordered one and got stuff to work in the US.

If all else fails, you could always contact AVM (maker of Fritz!box). They provide good support and reply in english.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: oTi@ on May 30, 2011, 09:52:33 am
Dect is an international standard.
Not uncommon to have differences at the physical layer though.
So the Fritz!Box supports DECT 6.0 / the U.S. frequency band?
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 30, 2011, 10:34:25 am
Dect is an international standard.
Not uncommon to have differences at the physical layer though.
So the Fritz!Box supports DECT 6.0 / the U.S. frequency band?

DECT is an international standard using 10 channels spaced 1,728 MHz apart within the 1880 MHz to 1900 MHz band. New generation DECT is compatible with older generations and improves functionality like Ip integration and quality of speech. Also VoIP support for SIP and H.323 are integrated

US standards PTW and PTW/E are based on DECT (frequencies) but use a different modulation type.
Seemingly theres a frequencyband discrepancy entioned somewhere for DECT where EU uses 1880 MHz tot 1900 MHz and US uses 1920-1930 MHz. Then again i could not find anything to verify that.

By the way The "6.0" in DECT 6.0 does not specify a spectrum band (see wiki (http://en.wikipedia.org/wiki/Digital_Enhanced_Cordless_Telecommunications#Radio_links)

You could check with AVM if US frequencies are also supported of course..

Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Ap15e on May 30, 2011, 10:56:25 am
Place in 'Edit Startup Lua':

Code: [Select]
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.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Ap15e on May 30, 2011, 11:13:44 am
Quote
Request:

1. Is it possible to have FCM store/show the last lets say 3 calling/called numbers and show the last event on FCM?
Standard i get a DISCONNECt (0s) in my display now, maybe its possible to show the event just before that (eg last incoming and/or last outgoing call).

2. Is it possible (for instance with ISDN MSN's) to distinguish between number called?
Now FCM allows to trigger only on incoming number or dialed number.
It would be nice to trigger a scene where number 12345 is calling msn 54321. Should be possible, the FCM monitor shows the info....

I'll leave FCM as basic as it is. Please use my forward_incoming_call_via_email example for more complex scenarios (e.g., replace SendMail with RunScene).

The list of calls is available from your FRITZ!Box:
http://www.wehavemorefun.de/fritzbox/index.php/Anrufliste_von_der_Box_holen
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Henk on May 30, 2011, 04:00:53 pm
Quote
Request:

1. Is it possible to have FCM store/show the last lets say 3 calling/called numbers and show the last event on FCM?
Standard i get a DISCONNECt (0s) in my display now, maybe its possible to show the event just before that (eg last incoming and/or last outgoing call).

2. Is it possible (for instance with ISDN MSN's) to distinguish between number called?
Now FCM allows to trigger only on incoming number or dialed number.
It would be nice to trigger a scene where number 12345 is calling msn 54321. Should be possible, the FCM monitor shows the info....

I'll leave FCM as basic as it is. Please use my forward_incoming_call_via_email example for more complex scenarios (e.g., replace SendMail with RunScene).

The list of calls is available from your FRITZ!Box:
http://www.wehavemorefun.de/fritzbox/index.php/Anrufliste_von_der_Box_holen

@Ap15e
Ok i can understand that.
Using more variabkes with the cide you posted should work too.
Currently im using luup code in the event to push messages over prowl.
Works great. Only looking for a variable to have Vera send me the timestamp in the messagebody.

When i find time ill play around with your examples to create more complex queries for notifications.

Thanks for all your effort so far, its appreciated!
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.1
Post by: Ap15e on May 30, 2011, 06:12:08 pm
And here comes a version with reverse phone number lookup for Germany (adjust the device IDs and dial_prefix accordingly):

Code: [Select]
luup.variable_watch( 'forward_incoming_call_via_email', 'urn:upnp-ap15e-com:serviceId:FCM1', 'Message', 26 )

function forward_incoming_call_via_email()

 local dial_prefix = '030' -- Berlin

 local msg = luup.variable_get(  'urn:upnp-ap15e-com:serviceId:FCM1', 'Message'    , 26 )
 local src = luup.variable_get(  'urn:upnp-ap15e-com:serviceId:FCM1', 'CallSource' , 26 )

 if string.find( msg or '', 'RING' ) ~= nil
  then

   if string.find( src or '', '0' ) ~= 1
    then
     src = dial_prefix .. tostring( src )
    end

   local ret, res = luup.inet.wget( 'http://www.dasoertliche.de/Controller?form_name=search_inv&js=no&ph=' .. src, 5 )

   local name = string.match( res or '', 'onclick="logDetail%(%)">(.-) ') or 'unknown'

   luup.call_action( "urn:upnp-ap15e-com:serviceId:SND1", "SendMail", { subject = msg .. ' / ' .. name, body = '' }, 25 )

  end

end

Untested, but should work.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
Post by: Ap15e on February 02, 2012, 07:46:36 pm
Please upgrade to FCM V0.2.

FCM V0.2 adds compatibility for UI5, provides new Luup events (call state, duration of last call) and removes 'duration of last call' from the UI4 dashboard.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
Post by: fs on November 05, 2012, 01:00:36 pm
Hello,

i'm new to this forum - i just orderd a vera 3.
while i'm still waiting for it to arrive i started looking for usefull plugins.
fritz!box call monitor is something i'd like to have, but i have no access to the googledoc link.
i see that it's no longer supported - can anybody provide the plugin anyway?


thank you
fs
Title: Re: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
Post by: garrettwp on November 05, 2012, 04:16:40 pm
Hello,

i'm new to this forum - i just orderd a vera 3.
while i'm still waiting for it to arrive i started looking for usefull plugins.
fritz!box call monitor is something i'd like to have, but i have no access to the googledoc link.
i see that it's no longer supported - can anybody provide the plugin anyway?


thank you
fs

Sorry we can't. The creator of the plugin has left the forum and removed the plugin for use. We will respect the user's wishes and not distribute the plugin.

P. S. Welcome to the forum.

- Garrett

Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
Post by: hek on November 16, 2012, 01:16:32 pm
@garrettwp. Do you know any way I can contact Ap15e? Really would like to continue the work on the FritzBox plugin.
Title: Re: [_CODE_] FCM - FRITZ!Box Call Monitor V0.2
Post by: oTi@ on November 16, 2012, 02:20:08 pm
@Ap15e does appear to monitor the forum, so chances are @Ap15e will see your post.