From c55d236c6df0513094d5aebe9f1a690d476c7aa9 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Sat, 30 Jan 2016 13:42:28 +0000 Subject: [PATCH] FB_CALLMONITOR: minor fix git-svn-id: https://svn.fhem.de/fhem/trunk@10668 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/72_FB_CALLMONITOR.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/72_FB_CALLMONITOR.pm b/fhem/FHEM/72_FB_CALLMONITOR.pm index b2527e407..3b568935b 100755 --- a/fhem/FHEM/72_FB_CALLMONITOR.pm +++ b/fhem/FHEM/72_FB_CALLMONITOR.pm @@ -1262,7 +1262,7 @@ EOD my ($err, $data) = HttpUtils_BlockingGet($param); - if ($err ne "") + if($err ne "") { Log3 $name, 3, "FB_CALLMONITOR ($name) - error while requesting phonebooks: $err"; return "error while requesting phonebooks: $err"; @@ -1274,15 +1274,14 @@ EOD return "received no data after requesting available phonebooks via TR-064"; } + Log3 $name, 5, "FB_CALLMONITOR ($name) - received TR-064 challenge response:\n$data"; + unless($data =~ //i and $data =~ //i) { Log3 $name, 3, "FB_CALLMONITOR ($name) - received no valid TR-064 challenge response. aborting"; - Log3 $name, 5, "FB_CALLMONITOR ($name) - received no valid TR-064 challenge response: $data"; return "received no valid TR-064 challenge response. aborting"; } - Log3 $name, 5, "FB_CALLMONITOR ($name) - received TR-064 challenge response:\n$data"; - my ($nonce, $realm); if($data =~ m,(.+?),i)