2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

FHEM/72_FB_CALLMONITOR.pm: remove trailing hash sign and all afterwards from external_number

git-svn-id: https://svn.fhem.de/fhem/trunk@3669 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-08-11 14:27:47 +00:00
parent dac409cc17
commit 0869aa12d3

View File

@ -227,9 +227,11 @@ FB_CALLMONITOR_Read($)
{
Log GetLogLevel($name, 2), "$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/#.*$//;
$reverse_search = FB_CALLMONITOR_reverseSearch($hash, $external_number) if(defined($external_number) and AttrVal($name, "reverse-search", "none") ne "none");
readingsBeginUpdate($hash);