2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

FB_CALLMONITOR: allow spaces in phone numbers stored in phonebooks (Forum #32663)

git-svn-id: https://svn.fhem.de/fhem/trunk@7760 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2015-01-28 16:39:34 +00:00
parent f39459c249
commit 159c31c36b
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # Do not insert empty lines here, update check depends on it.
- bugfix: FB_CALLMONITOR: allow spaces in phone numbers stored in phonebooks
- bugfix: SYSMON: Symbol '#' in Readings prevents update - bugfix: SYSMON: Symbol '#' in Readings prevents update
- feature: new helper module TimeSeries.pm (Boris) - feature: new helper module TimeSeries.pm (Boris)
- feature: 71_YAMAHA_NP.pm: Make timer setting more convenient. - feature: 71_YAMAHA_NP.pm: Make timer setting more convenient.

View File

@ -740,8 +740,9 @@ sub FB_CALLMONITOR_parsePhonebook($$)
if($1 ne "intern" and $1 ne "memo") if($1 ne "intern" and $1 ne "memo")
{ {
$number = $2; $number = $2;
$number =~ s/\s//g;
$number =~ s/^\+\d\d/0/g; # quick'n'dirty fix in case of international number format. $number =~ s/^\+\d\d/0/g; # quick'n'dirty fix in case of international number format.
$number =~ s/\s//g if($number =~ /@/);
if(not $number =~ /^0/ and not $number =~ /@/ and $area_code ne "") if(not $number =~ /^0/ and not $number =~ /@/ and $area_code ne "")
{ {