mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 18:56:03 +00:00
FB_CALLMONITOR: allow stars in phone numbers (Forum: #32646)
git-svn-id: https://svn.fhem.de/fhem/trunk@8280 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
51ba203d6c
commit
d3471374f7
@ -877,7 +877,7 @@ sub FB_CALLMONITOR_parsePhonebook($$)
|
|||||||
$number =~ s/^\+/00/g; # Convert leading + to 00 country extension
|
$number =~ s/^\+/00/g; # Convert leading + to 00 country extension
|
||||||
$number =~ s/^$country_code/0/g; # Replace own country code with leading 0
|
$number =~ s/^$country_code/0/g; # Replace own country code with leading 0
|
||||||
$number =~ s/^(\#[0-9]{1,10}\#)//g; # Remove phone control codes
|
$number =~ s/^(\#[0-9]{1,10}\#)//g; # Remove phone control codes
|
||||||
$number =~ s/\D//g if(not $number =~ /@/); # Remove anything else isn't a number if it is no VoIP number
|
$number =~ s/[^*\d]//g if(not $number =~ /@/); # Remove anything else isn't a number if it is no VoIP number
|
||||||
|
|
||||||
if(not $number =~ /^0/ and not $number =~ /@/ and $area_code =~ /^0[1-9]\d+$/)
|
if(not $number =~ /^0/ and not $number =~ /@/ and $area_code =~ /^0[1-9]\d+$/)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user