2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 14:46:24 +00:00

fixing contact recognition (christmas celebration is done, so it's ok ;-)

git-svn-id: https://svn.fhem.de/fhem/trunk@2361 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2012-12-24 18:33:33 +00:00
parent 8799dcca39
commit a7204158a5

View File

@ -448,7 +448,7 @@ sub FB_CALLMONITOR_loadInternalPhonebookFile($)
Log GetLogLevel($name, 2), "FB_CALLMONITOR: $name found FritzBox phonebook $phonebook_file";
while($phonebook =~ m/<contact>(.+?)<\/contact>/gs)
while($phonebook =~ m/<contact[a-z0-9="\n- ]*>(.+?)<\/contact>/gs)
{
$contact = $1;
@ -457,7 +457,7 @@ sub FB_CALLMONITOR_loadInternalPhonebookFile($)
$contact_name = $1;
Log GetLogLevel($name, 4), "FB_CALLMONITOR: $name found $contact_name";
while($contact =~ m/<number[a-z0-9="\n ]+?type="(\w+?)"[a-z0-9="\n ]+?>(.+?)<\/number>/gs)
while($contact =~ m/<number[a-z0-9="\n- ]+?type="(\w+?)"[a-z0-9="\n- ]*?>(.+?)<\/number>/gs)
{
if($1 ne "intern")
{