From 26866d4f41749fbeb73df6b4d845b16691337257 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Tue, 6 May 2014 17:29:15 +0000 Subject: [PATCH] FB_CALLMONITOR: new reading "missed_call_line" indicating the line number which received the missed call git-svn-id: https://svn.fhem.de/fhem/trunk@5767 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/72_FB_CALLMONITOR.pm | 43 +++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index dd6086870..60d960b60 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: FB_CALLMONITOR: new reading "missed_call_line" indicating + the line number which received the missed call - feature: YAMAHA_AVR current* readings will be erased in case they not applicable - feature: YAMAHA_AVR currentTitle available for TUNER diff --git a/fhem/FHEM/72_FB_CALLMONITOR.pm b/fhem/FHEM/72_FB_CALLMONITOR.pm index 7111f8afc..ee3e26e79 100755 --- a/fhem/FHEM/72_FB_CALLMONITOR.pm +++ b/fhem/FHEM/72_FB_CALLMONITOR.pm @@ -258,12 +258,15 @@ FB_CALLMONITOR_Read($) } $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{NUMBER} = $no; + $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{LINE} = $array[4]; + } elsif ($array[1] eq "DISCONNECT") { if (($array[3] eq "0") and (exists($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}) and $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{EVENT} eq "RING")) { - readingsBulkUpdate($hash, "missed_call", $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{NUMBER}) + readingsBulkUpdate($hash, "missed_call", $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{NUMBER}); + readingsBulkUpdate($hash, "missed_call_line", $hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}{LINE}) } delete($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]}) if(exists($hash->{helper}{MISSED_CALL_DETECTION}{$array[2]})); } @@ -823,15 +826,16 @@ sub FB_CALLMONITOR_loadCacheFile($) Generated Events:

@@ -932,15 +936,16 @@ sub FB_CALLMONITOR_loadCacheFile($) Generierte Events: