mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
FB_CALLMONITOR: fix reverse search of local area calls via VoIP/FritzFon (Forum: #56933)
git-svn-id: https://svn.fhem.de/fhem/trunk@12063 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a1db30729a
commit
32a98cc931
@ -365,9 +365,9 @@ FB_CALLMONITOR_Read($)
|
||||
$external_number =~ s/^(107\d\d|108\d\d)//g if($country_code eq "0041");
|
||||
}
|
||||
|
||||
if(not $external_number =~ /^0/ and $area_code ne "")
|
||||
if($external_number !~ /^0/ and $area_code ne "")
|
||||
{
|
||||
if($area_code =~ /^0[1-9]\d+$/ and $external_number =~ /^[1-9]\d+$/)
|
||||
if($area_code =~ /^0[1-9]\d+$/ and $external_number =~ /^[1-9].+$/)
|
||||
{
|
||||
$external_number = $area_code.$external_number;
|
||||
}
|
||||
@ -376,7 +376,7 @@ FB_CALLMONITOR_Read($)
|
||||
Log3 $name, 2, "FB_CALLMONITOR ($name) - given local area code '$area_code' is not an area code. therefore will be ignored";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Remove trailing hash sign and everything afterwards
|
||||
$external_number =~ s/#.*$//;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user