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:
parent
f39459c249
commit
159c31c36b
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- bugfix: FB_CALLMONITOR: allow spaces in phone numbers stored in phonebooks
|
||||
- bugfix: SYSMON: Symbol '#' in Readings prevents update
|
||||
- feature: new helper module TimeSeries.pm (Boris)
|
||||
- feature: 71_YAMAHA_NP.pm: Make timer setting more convenient.
|
||||
|
@ -740,8 +740,9 @@ sub FB_CALLMONITOR_parsePhonebook($$)
|
||||
if($1 ne "intern" and $1 ne "memo")
|
||||
{
|
||||
$number = $2;
|
||||
$number =~ s/\s//g;
|
||||
$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 "")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user