2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

quick'n'dirty fix for international numbers in the internal telephone, a proper fix will come soon

git-svn-id: https://svn.fhem.de/fhem/trunk@2424 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-01-03 23:04:32 +00:00
parent 9e715b6634
commit b127c2384f

View File

@ -484,6 +484,7 @@ sub FB_CALLMONITOR_loadInternalPhonebookFile($)
{
$number = $2;
$number =~ s/^+\d\d/0/g; # quick'n'dirty fix in case of international number format.
$number =~ s/\D//g unless($number =~ /@/);
$number =~ s/\s//g if($number =~ /@/);