FHEM: Raspberry Anrufe per Telnet über FritzBox

Telnet Notwendig auf Raspberry:
sudo apt-get install libnet-telnet-perl

Änderungen in 99_myutils
###################################################################
# für Raspberry Pi
# Telefone der FB klingeln beim Betätigen der Türklingel
#
sub
FBCallr($$$$$)
{
use Net::Telnet;
my $name = "fbcallr";
my ($Fon,$CallNr,$Duration,$Port,$Password)= @_;
my $telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die');
Log GetLogLevel($name,1), "$name: Connecting to FritzBox:$Port";
$telnet->open($Port);
$telnet->waitfor('/Password: $/i');
$telnet->print($Password);
$telnet->waitfor('/# $/i');
Log GetLogLevel($name,1), "$name: Dialing to FritzBox: from:$Fon to:$CallNr...";
$telnet->print('echo "ATP'.$Fon.'2 ATD**'.$CallNr.'" | nc 127.0.0.1 1011');
my $output = $telnet->waitfor('/# $/i'); print $output;
Log GetLogLevel($name,1), "$name: Dialing:$Duration seconds...";
sleep($Duration);
Log GetLogLevel($name,1), "$name: HangOn to FritzBox...";
$telnet->print('echo "ATH0" | nc 127.0.0.1 1011');
$output = $telnet->waitfor('/# $/i'); print $output;
Log GetLogLevel($name,1), "$name: Disconnecting...";
$telnet->print('exit');
return;
}
#
###################################################################

############################################################################
#
# Klingel1
#
define Klingel1 FS20 7e7e 01
attr Klingel1 room MAX
define FileLog_Klingel1 FileLog ./log/Klingel1-%m-%d-%w.log Klingel1:.*
attr FileLog_Klingel1 alias Klingel1
attr FileLog_Klingel1 logtype text
attr FileLog_Klingel1 room Diagramm.log
define Klingel1_on notify Klingel1:on {FBCallr(3,"**701",12,"192.168.0.2","password")}
#
######################################################################

Der Aufruf erfolgt mit:

FBCallr(Fon,Nummer,Zeit,IP,Passwort)

Fon = Anrufendes Telefon
Nummer = anzurufende Nummer
Zeit: Sekunden bis zum Auflegen
IP: IP der Fritzbox
Passwort: Passwort der Fritzbox

Beispiel:
FBCallr(1,610,10,"192.168.0.1","MyPssW")

Quellen:
http://forum.fhem.de/index.php?topic=15411.0
http://forum.fhem.de/index.php/topic,14957.msg98407.html#msg98407
http://forum.fhem.de/index.php/topic,13305.msg87200.html#msg87200