2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

FB_CALLMONITOR: minor fix

git-svn-id: https://svn.fhem.de/fhem/trunk@10668 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2016-01-30 13:42:28 +00:00
parent 61392b9e7c
commit c55d236c6d

View File

@ -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 =~ /<Nonce>/i and $data =~ /<Realm>/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,<Nonce>(.+?)</Nonce>,i)