From 0869aa12d37b1e3554347a5c44005ba3c1f73060 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Sun, 11 Aug 2013 14:27:47 +0000 Subject: [PATCH] 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 --- fhem/FHEM/72_FB_CALLMONITOR.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/72_FB_CALLMONITOR.pm b/fhem/FHEM/72_FB_CALLMONITOR.pm index 7467a900d..596ed25f6 100755 --- a/fhem/FHEM/72_FB_CALLMONITOR.pm +++ b/fhem/FHEM/72_FB_CALLMONITOR.pm @@ -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);