From 68b5b71e83eaf965bed3c8082f035f1f05c56267 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Mon, 28 Dec 2015 21:23:59 +0000 Subject: [PATCH] FB_CALLLIST: start call processing only when "event:" is triggered by corresponding FB_CALLMONITOR device. git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10290 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/72_FB_CALLLIST.pm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index ee2745d89..88c0fe70e 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. + - change: FB_CALLLIST: start call processing only when "event:" is triggered + by corresponding FB_CALLMONITOR device. - change: FB_CALLMONITOR: default value for attr fritzbox-remote-phonebook-via has been changed to "tr064" (previous: "web") to ensure no problems with new Fritz!OS web layout. diff --git a/fhem/FHEM/72_FB_CALLLIST.pm b/fhem/FHEM/72_FB_CALLLIST.pm index 5956fa859..03f80278a 100755 --- a/fhem/FHEM/72_FB_CALLLIST.pm +++ b/fhem/FHEM/72_FB_CALLLIST.pm @@ -291,6 +291,8 @@ sub FB_CALLLIST_Notify($$) return undef; } + return if(!grep(m/^event:/, @{$d->{CHANGED}})); + my $event = ReadingsVal($fb, "event", undef); my $call_id = ReadingsVal($fb, "call_id", undef);