#!/usr/bin/python
from time import sleep
from fritzconnection import FritzConnection
fc = FritzConnection(
address='192.168.178.1',
user="klingel2",
password="#passwort#",
)
print(fc) # print router model informations
#fc.reconnect() # get a new external ip from the provider
# call_action takes two required arguments: the service- and the action-name
#
Sie müssen registriert sein, um Links zu sehen.
fc.call_action("X_VoIP1","X_AVM-DE_DialNumber",
arguments={"NewX_AVM-DE_PhoneNumber ": "+49163xxxxxxx"})
#fc.call_action("X_VoIP1","X_AVM-DE_DialNumber",
# arguments={"NewX_AVM-DE_PhoneNumber ": "**9"})
# **9 (Rundruf) Alle angeschlossenen Telefone klingeln
sleep(20)
# Disconnect the dialling process.
fc.call_action("X_VoIP1","X_AVM-DE_DialHangup")