- configuration option: show each call during standby after standby, show a summarizi...
authorMichael Schmidt <drmichael@users.schwerkraft.elitedvb.net>
Tue, 22 Jul 2008 15:26:45 +0000 (15:26 +0000)
committerMichael Schmidt <drmichael@users.schwerkraft.elitedvb.net>
Tue, 22 Jul 2008 15:26:45 +0000 (15:26 +0000)
fritzcall/po/FritzCall.pot
fritzcall/po/de.po
fritzcall/src/plugin.py

index 90b84c4..55db414 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-07-16 18:47+0200\n"
+"POT-Creation-Date: 2008-07-22 13:24+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,157 +16,182 @@ msgstr ""
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: plugin.py:45
+#: ../plugin.py:37
+msgid "show nothing"
+msgstr ""
+
+#: ../plugin.py:37
+msgid "show as list"
+msgstr ""
+
+#: ../plugin.py:37
+msgid "show each call"
+msgstr ""
+
+#: ../plugin.py:47
 msgid "Flash"
 msgstr ""
 
-#: plugin.py:45
+#: ../plugin.py:47
 msgid "USB Stick"
 msgstr ""
 
-#: plugin.py:45
+#: ../plugin.py:47
 msgid "CF Drive"
 msgstr ""
 
-#: plugin.py:45
+#: ../plugin.py:47
 msgid "Harddisk"
 msgstr ""
 
-#: plugin.py:51
+#: ../plugin.py:53
 msgid "Germany"
 msgstr ""
 
-#: plugin.py:51
+#: ../plugin.py:53
 msgid "Switzerland"
 msgstr ""
 
-#: plugin.py:71
+#: ../plugin.py:53
+msgid "Italy"
+msgstr ""
+
+#: ../plugin.py:73
 #, python-format
 msgid "Fritz!Box Login failed! - Error: %s"
 msgstr ""
 
-#: plugin.py:75
+#: ../plugin.py:77
 #, python-format
 msgid "Could not load phonebook from Fritz!Box - Error: %s"
 msgstr ""
 
-#: plugin.py:114
+#: ../plugin.py:116
 msgid "mobile"
 msgstr ""
 
-#: plugin.py:116
+#: ../plugin.py:118
 msgid "home"
 msgstr ""
 
-#: plugin.py:118
+#: ../plugin.py:120
 msgid "work"
 msgstr ""
 
-#: plugin.py:121 plugin.py:145
+#: ../plugin.py:123 ../plugin.py:147
 msgid "Shortcut"
 msgstr ""
 
-#: plugin.py:123 plugin.py:147
+#: ../plugin.py:125 ../plugin.py:149
 msgid "Vanity"
 msgstr ""
 
-#: plugin.py:152
+#: ../plugin.py:154
 msgid "Could not parse Fritz!Box Phonebook entry"
 msgstr ""
 
-#: plugin.py:194
+#: ../plugin.py:196
 msgid "Fritz!Box Login failed! - Wrong Password!"
 msgstr ""
 
-#: plugin.py:269
+#: ../plugin.py:271
 msgid "You need to enable the monitoring on your Fritz!Box by dialing #96*5*!"
 msgstr ""
 
-#: plugin.py:273
+#: ../plugin.py:275
 msgid "Cancel"
 msgstr ""
 
-#: plugin.py:274
+#: ../plugin.py:276
 msgid "OK"
 msgstr ""
 
-#: plugin.py:297
+#: ../plugin.py:299
 msgid "Call monitoring"
 msgstr ""
 
-#: plugin.py:299
+#: ../plugin.py:301
 msgid "Fritz!Box FON IP address"
 msgstr ""
 
-#: plugin.py:301
-msgid "Country"
+#: ../plugin.py:303
+msgid "Show after Standby"
 msgstr ""
 
-#: plugin.py:303
+#: ../plugin.py:305
 msgid "Show Calls for specific MSN"
 msgstr ""
 
-#: plugin.py:305
+#: ../plugin.py:307
 msgid "MSN to show"
 msgstr ""
 
-#: plugin.py:307
+#: ../plugin.py:309
 msgid "Show Outgoing Calls"
 msgstr ""
 
-#: plugin.py:308
+#: ../plugin.py:310
 msgid "Timeout for Call Notifications (seconds)"
 msgstr ""
 
-#: plugin.py:309
-msgid "Reverse Lookup Caller ID (DE only)"
+#: ../plugin.py:311
+msgid "Reverse Lookup Caller ID (DE,CH,IT only)"
 msgstr ""
 
-#: plugin.py:311
+#: ../plugin.py:313
+msgid "Country"
+msgstr ""
+
+#: ../plugin.py:315
 msgid "Read PhoneBook from Fritz!Box"
 msgstr ""
 
-#: plugin.py:313
+#: ../plugin.py:317
 msgid "Password Accessing Fritz!Box"
 msgstr ""
 
-#: plugin.py:314
+#: ../plugin.py:318
 msgid "Append type of number (home, mobile, business"
 msgstr ""
 
-#: plugin.py:315
+#: ../plugin.py:319
 msgid "Append shortcut number"
 msgstr ""
 
-#: plugin.py:316
+#: ../plugin.py:320
 msgid "Append vanity name"
 msgstr ""
 
-#: plugin.py:318
+#: ../plugin.py:322
 msgid "Use internal PhoneBook"
 msgstr ""
 
-#: plugin.py:320
+#: ../plugin.py:324
 msgid "PhoneBook Location"
 msgstr ""
 
-#: plugin.py:321
+#: ../plugin.py:325
 msgid "Automatically add new Caller to PhoneBook"
 msgstr ""
 
-#: plugin.py:323
+#: ../plugin.py:327
 msgid "Strip Leading 0"
 msgstr ""
 
-#: plugin.py:324
+#: ../plugin.py:328
 msgid "Prefix for Outgoing Calls"
 msgstr ""
 
-#: plugin.py:339
+#: ../plugin.py:343
 msgid "Can't create PhoneBook.txt"
 msgstr ""
 
-#: plugin.py:382 plugin.py:517
+#: ../plugin.py:385 ../plugin.py:517 ../plugin.py:543 ../plugin.py:570
+#: ../plugin.py:605 ../plugin.py:671
+msgid "UNKNOWN"
+msgstr ""
+
+#: ../plugin.py:404
 #, python-format
 msgid ""
 "Incoming Call on %s from\n"
@@ -177,7 +202,7 @@ msgid ""
 "to: %s"
 msgstr ""
 
-#: plugin.py:384 plugin.py:519
+#: ../plugin.py:406
 #, python-format
 msgid ""
 "Outgoing Call on %s to\n"
@@ -188,19 +213,15 @@ msgid ""
 "from: %s"
 msgstr ""
 
-#: plugin.py:444 plugin.py:470 plugin.py:497 plugin.py:564
-msgid "UNKNOWN"
-msgstr ""
-
-#: plugin.py:577
+#: ../plugin.py:684
 msgid "Connecting to Fritz!Box..."
 msgstr ""
 
-#: plugin.py:580
+#: ../plugin.py:687
 msgid "Connected to Fritz!Box!"
 msgstr ""
 
-#: plugin.py:586
+#: ../plugin.py:693
 #, python-format
 msgid ""
 "Connection to Fritz!Box! lost\n"
@@ -208,7 +229,7 @@ msgid ""
 "retrying..."
 msgstr ""
 
-#: plugin.py:590
+#: ../plugin.py:697
 #, python-format
 msgid ""
 "Connecting to Fritz!Box failed\n"
@@ -216,6 +237,6 @@ msgid ""
 "retrying..."
 msgstr ""
 
-#: plugin.py:638 plugin.py:641
+#: ../plugin.py:745 ../plugin.py:748
 msgid "Display Fritzbox-Fon calls on screen"
 msgstr ""
index 77ac8a3..7f66142 100644 (file)
@@ -7,96 +7,192 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Enigma2 FritzCall Plugin\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-07-16 18:47+0200\n"
-"PO-Revision-Date: 2008-07-16 18:52+0200\n"
+"POT-Creation-Date: 2008-07-22 13:24+0200\n"
+"PO-Revision-Date: 2008-07-22 13:25+0200\n"
 "Last-Translator: Michael Schmidt <michael@schmidt-schmitten.com>\n"
 "Language-Team: german <de@li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-msgid "Append shortcut number"
-msgstr "Zeige auch Kurzwahl an"
+#: ../plugin.py:37
+msgid "show nothing"
+msgstr "keine Anzeige"
 
-msgid "Append type of number (home, mobile, business"
-msgstr "Zeige auch Typ der Nummer an"
+#: ../plugin.py:37
+msgid "show as list"
+msgstr "Liste der Anrufe"
 
-msgid "Append vanity name"
-msgstr "Zeige auch Vanity-Nummer an"
+#: ../plugin.py:37
+msgid "show each call"
+msgstr "Anzeige der einzelnen Anrufe"
 
-msgid "Automatically add new Caller to PhoneBook"
-msgstr "Anrufer automatisch dem Telefonbuch hinzufügen"
+#: ../plugin.py:47
+msgid "Flash"
+msgstr "Flash"
 
+#: ../plugin.py:47
+msgid "USB Stick"
+msgstr "USB Stick"
+
+#: ../plugin.py:47
 msgid "CF Drive"
 msgstr "CF Laufwerk"
 
-msgid "Call monitoring"
-msgstr "Anrufanzeige"
-
-msgid "Can't create PhoneBook.txt"
-msgstr "Kann Phonebook.txt nicht anlegen"
-
-msgid "Cancel"
-msgstr "Abbruch"
+#: ../plugin.py:47
+msgid "Harddisk"
+msgstr "Festplatte"
 
-msgid "Connected to Fritz!Box!"
-msgstr "Verbunden mit Fritz!Box!"
+#: ../plugin.py:53
+msgid "Germany"
+msgstr "Deutschland"
 
-#, python-format
-msgid ""
-"Connecting to Fritz!Box failed\n"
-" (%s)\n"
-"retrying..."
-msgstr ""
-"Verbindung zur Fritz!Box fehlgeschlagen\n"
-" (%s)\n"
-"neuer Versuch..."
+#: ../plugin.py:53
+msgid "Switzerland"
+msgstr "Schweiz"
 
-msgid "Connecting to Fritz!Box..."
-msgstr "Verbinde mit Fritz!Box..."
+#: ../plugin.py:53
+msgid "Italy"
+msgstr "Italien"
 
+#: ../plugin.py:73
 #, python-format
-msgid ""
-"Connection to Fritz!Box! lost\n"
-" (%s)\n"
-"retrying..."
-msgstr ""
-"Verbindung mit Fritz!Box verloren\n"
-" (%s)\n"
-"neuer Versuch..."
+msgid "Fritz!Box Login failed! - Error: %s"
+msgstr "Fritz!Box Login fehlgeschlagen! - Fehler: %s"
 
+#: ../plugin.py:77
 #, python-format
 msgid "Could not load phonebook from Fritz!Box - Error: %s"
 msgstr "Konnte Telefonbuch nicht von Fritz!Box laden - Fehler: %s"
 
+#: ../plugin.py:116
+msgid "mobile"
+msgstr "mobil"
+
+#: ../plugin.py:118
+msgid "home"
+msgstr "privat"
+
+#: ../plugin.py:120
+msgid "work"
+msgstr "geschäftlich"
+
+#: ../plugin.py:123 ../plugin.py:147
+msgid "Shortcut"
+msgstr "Kurzwahl"
+
+#: ../plugin.py:125 ../plugin.py:149
+msgid "Vanity"
+msgstr "Vanity"
+
+#: ../plugin.py:154
 msgid "Could not parse Fritz!Box Phonebook entry"
 msgstr "Konnte Eintrag in Frritz!Box-Telefonbuch nicht lesen"
 
-msgid "Country"
-msgstr "Land"
+#: ../plugin.py:196
+msgid "Fritz!Box Login failed! - Wrong Password!"
+msgstr "Fritz!Box Login fehlgeschlagen! - Falsches Passwort"
 
-msgid "Display Fritzbox-Fon calls on screen"
-msgstr "Anzeige der Anrufe auf der Fritzbox-Fon"
+#: ../plugin.py:271
+msgid "You need to enable the monitoring on your Fritz!Box by dialing #96*5*!"
+msgstr ""
+"Monitoring auf der Fritz!Box muss durch Wählen von #96*5* eingeschaltet "
+"werden!"
 
-msgid "Flash"
-msgstr "Flash"
+#: ../plugin.py:275
+msgid "Cancel"
+msgstr "Abbruch"
+
+#: ../plugin.py:276
+msgid "OK"
+msgstr "OK"
+
+#: ../plugin.py:299
+msgid "Call monitoring"
+msgstr "Anrufanzeige"
 
+#: ../plugin.py:301
 msgid "Fritz!Box FON IP address"
 msgstr "Fritz!Box FON IP-Adresse"
 
-#, python-format
-msgid "Fritz!Box Login failed! - Error: %s"
-msgstr "Fritz!Box Login fehlgeschlagen! - Fehler: %s"
+#: ../plugin.py:303
+msgid "Show after Standby"
+msgstr "Anzeige nach Standby"
 
-msgid "Fritz!Box Login failed! - Wrong Password!"
-msgstr "Fritz!Box Login fehlgeschlagen! - Falsches Passwort"
+#: ../plugin.py:305
+msgid "Show Calls for specific MSN"
+msgstr "Zeige nur Anrufe bestimmter Nummern"
 
-msgid "Germany"
-msgstr "Deutschland"
+#: ../plugin.py:307
+msgid "MSN to show"
+msgstr "anzuzeigende MSN"
 
-msgid "Harddisk"
-msgstr "Festplatte"
+#: ../plugin.py:309
+msgid "Show Outgoing Calls"
+msgstr "Zeige ausgehende Anrufe an"
+
+#: ../plugin.py:310
+msgid "Timeout for Call Notifications (seconds)"
+msgstr "Anzeigedauer in Sekunden"
+
+#: ../plugin.py:311
+msgid "Reverse Lookup Caller ID (DE,CH,IT only)"
+msgstr "Rückwärtssuche (nur DE,CH,IT)"
+
+#: ../plugin.py:313
+msgid "Country"
+msgstr "Land"
 
+#: ../plugin.py:315
+msgid "Read PhoneBook from Fritz!Box"
+msgstr "Telefonbuch der Fritz!Box auslesen"
+
+#: ../plugin.py:317
+msgid "Password Accessing Fritz!Box"
+msgstr "Passwort der Fritz!Box"
+
+#: ../plugin.py:318
+msgid "Append type of number (home, mobile, business"
+msgstr "Zeige auch Typ der Nummer an"
+
+#: ../plugin.py:319
+msgid "Append shortcut number"
+msgstr "Zeige auch Kurzwahl an"
+
+#: ../plugin.py:320
+msgid "Append vanity name"
+msgstr "Zeige auch Vanity-Nummer an"
+
+#: ../plugin.py:322
+msgid "Use internal PhoneBook"
+msgstr "Benutze internes Telefonbuch"
+
+#: ../plugin.py:324
+msgid "PhoneBook Location"
+msgstr "Speicherort des Telefonbuchs"
+
+#: ../plugin.py:325
+msgid "Automatically add new Caller to PhoneBook"
+msgstr "Anrufer automatisch dem Telefonbuch hinzufügen"
+
+#: ../plugin.py:327
+msgid "Strip Leading 0"
+msgstr "Führende 0 entfernen"
+
+#: ../plugin.py:328
+msgid "Prefix for Outgoing Calls"
+msgstr "Vorwahl für ausgehende Anrufe"
+
+#: ../plugin.py:343
+msgid "Can't create PhoneBook.txt"
+msgstr "Kann Phonebook.txt nicht anlegen"
+
+#: ../plugin.py:385 ../plugin.py:517 ../plugin.py:543 ../plugin.py:570
+#: ../plugin.py:605 ../plugin.py:671
+msgid "UNKNOWN"
+msgstr "UNBEKANNT"
+
+#: ../plugin.py:404
 #, python-format
 msgid ""
 "Incoming Call on %s from\n"
@@ -113,12 +209,7 @@ msgstr ""
 "---------------------------------------------\n"
 "an: %s"
 
-msgid "MSN to show"
-msgstr "anzuzeigende MSN"
-
-msgid "OK"
-msgstr "OK"
-
+#: ../plugin.py:406
 #, python-format
 msgid ""
 "Outgoing Call on %s to\n"
@@ -135,64 +226,39 @@ msgstr ""
 "---------------------------------------------\n"
 "von: %s"
 
-msgid "Password Accessing Fritz!Box"
-msgstr "Passwort der Fritz!Box"
-
-msgid "PhoneBook Location"
-msgstr "Speicherort des Telefonbuchs"
-
-msgid "Prefix for Outgoing Calls"
-msgstr "Vorwahl für ausgehende Anrufe"
-
-msgid "Read PhoneBook from Fritz!Box"
-msgstr "Telefonbuch der Fritz!Box auslesen"
-
-msgid "Reverse Lookup Caller ID (DE only)"
-msgstr "Rückwärtssuche (nur DE)"
-
-msgid "Shortcut"
-msgstr "Kurzwahl"
-
-msgid "Show Calls for specific MSN"
-msgstr "Zeige nur Anrufe bestimmter Nummern"
-
-msgid "Show Outgoing Calls"
-msgstr "Zeige ausgehende Anrufe an"
-
-msgid "Strip Leading 0"
-msgstr "Führende 0 entfernen"
-
-msgid "Switzerland"
-msgstr "Schweiz"
-
-msgid "Timeout for Call Notifications (seconds)"
-msgstr "Anzeigedauer in Sekunden"
-
-msgid "UNKNOWN"
-msgstr "UNBEKANNT"
-
-msgid "USB Stick"
-msgstr "USB Stick"
-
-msgid "Use internal PhoneBook"
-msgstr "Benutze internes Telefonbuch"
+#: ../plugin.py:684
+msgid "Connecting to Fritz!Box..."
+msgstr "Verbinde mit Fritz!Box..."
 
-msgid "Vanity"
-msgstr "Vanity"
+#: ../plugin.py:687
+msgid "Connected to Fritz!Box!"
+msgstr "Verbunden mit Fritz!Box!"
 
-msgid "You need to enable the monitoring on your Fritz!Box by dialing #96*5*!"
+#: ../plugin.py:693
+#, python-format
+msgid ""
+"Connection to Fritz!Box! lost\n"
+" (%s)\n"
+"retrying..."
 msgstr ""
-"Monitoring auf der Fritz!Box muss durch Wählen von #96*5* eingeschaltet "
-"werden!"
-
-msgid "home"
-msgstr "privat"
+"Verbindung mit Fritz!Box verloren\n"
+" (%s)\n"
+"neuer Versuch..."
 
-msgid "mobile"
-msgstr "mobil"
+#: ../plugin.py:697
+#, python-format
+msgid ""
+"Connecting to Fritz!Box failed\n"
+" (%s)\n"
+"retrying..."
+msgstr ""
+"Verbindung zur Fritz!Box fehlgeschlagen\n"
+" (%s)\n"
+"neuer Versuch..."
 
-msgid "work"
-msgstr "geschäftlich"
+#: ../plugin.py:745 ../plugin.py:748
+msgid "Display Fritzbox-Fon calls on screen"
+msgstr "Anzeige der Anrufe auf der Fritzbox-Fon"
 
 #~ msgid "Could not read Fritz!Box Phonebook"
 #~ msgstr "Konnte Fritz!Box-Telefonbuch nicht lesen"
index d3a5728..1fc5c7e 100644 (file)
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
+from Screens import Standby
 
 from Components.ActionMap import ActionMap
 from Components.Label import Label
@@ -33,6 +34,7 @@ my_global_session = None
 config.plugins.FritzCall = ConfigSubsection()
 config.plugins.FritzCall.enable = ConfigEnableDisable(default = False)
 config.plugins.FritzCall.hostname = ConfigIP(default = [192, 168, 178, 1])
+config.plugins.FritzCall.afterStandby = ConfigSelection(choices = [("none", _("show nothing")), ("inList", _("show as list")), ("each", _("show each call"))])
 config.plugins.FritzCall.filter = ConfigEnableDisable(default = False)
 config.plugins.FritzCall.filtermsn = ConfigText(default = "", fixed_size = False)
 config.plugins.FritzCall.showOutgoing = ConfigEnableDisable(default = False)
@@ -48,7 +50,7 @@ config.plugins.FritzCall.showType = ConfigEnableDisable(default = True)
 config.plugins.FritzCall.showShortcut = ConfigEnableDisable(default = False)
 config.plugins.FritzCall.showVanity = ConfigEnableDisable(default = False)
 config.plugins.FritzCall.prefix = ConfigText(default = "", fixed_size = False)
-config.plugins.FritzCall.country = ConfigSelection(choices = [("DE", _("Germany")), ("CH", _("Switzerland"), ("IT"), _("Italy"))])
+config.plugins.FritzCall.country = ConfigSelection(choices = [("DE", _("Germany")), ("CH", _("Switzerland")), ("IT", _("Italy"))])
 
 class FritzCallPhonebook:
        def __init__(self):
@@ -297,16 +299,17 @@ class FritzCallSetup(ConfigListScreen, Screen):
                self.list.append(getConfigListEntry(_("Call monitoring"), config.plugins.FritzCall.enable))
                if config.plugins.FritzCall.enable.value:
                        self.list.append(getConfigListEntry(_("Fritz!Box FON IP address"), config.plugins.FritzCall.hostname))
-
                        self.list.append(getConfigListEntry(_("Country"), config.plugins.FritzCall.country))
 
+                       self.list.append(getConfigListEntry(_("Show after Standby"), config.plugins.FritzCall.afterStandby))
+
                        self.list.append(getConfigListEntry(_("Show Calls for specific MSN"), config.plugins.FritzCall.filter))
                        if config.plugins.FritzCall.filter.value:
                                self.list.append(getConfigListEntry(_("MSN to show"), config.plugins.FritzCall.filtermsn))
 
                        self.list.append(getConfigListEntry(_("Show Outgoing Calls"), config.plugins.FritzCall.showOutgoing))
                        self.list.append(getConfigListEntry(_("Timeout for Call Notifications (seconds)"), config.plugins.FritzCall.timeout))
-                       self.list.append(getConfigListEntry(_("Reverse Lookup Caller ID (DE only)"), config.plugins.FritzCall.lookup))
+                       self.list.append(getConfigListEntry(_("Reverse Lookup Caller ID (DE,CH,IT only)"), config.plugins.FritzCall.lookup))
 
                        self.list.append(getConfigListEntry(_("Read PhoneBook from Fritz!Box"), config.plugins.FritzCall.fritzphonebook))
                        if config.plugins.FritzCall.fritzphonebook.value:
@@ -349,6 +352,73 @@ class FritzCallSetup(ConfigListScreen, Screen):
                        x[1].cancel()
                self.close()
 
+standbyMode = False
+
+class FritzCallList():
+       def __init__(self):
+               self.callList = [ ]
+       
+       def add(self, event, date, number, caller, phone):
+               print "[FritzCallList] add"
+               self.callList.append((event, number, date, caller, phone))
+       
+       def display(self):
+               print "[FritzCallList] display"
+               global standbyMode
+               standbyMode = False
+               # Standby.inStandby.onClose.remove(self.display) object does not exist anymore...
+               # build screen from call list
+                text = "\n"
+               for call in self.callList:
+                       (event, number, date, caller, phone) = call
+                       if event == "RING":
+                               direction = "->"
+                       else:
+                               direction = "<-"
+                       found = re.match("(\d\d.\d\d).\d\d (\d\d:\d\d):\d\d", date)
+                       date = found.group(1) + ". " + found.group(2)
+                        found = re.match(".*\((.*)\)", phone)
+                        if found: phone = found.group(1)
+                        if len(phone) > 20: phone = phone[:20]
+
+                        if caller == _("UNKNOWN") and number != "":
+                            caller = number
+                        else:
+                            found = re.match("(.*)\n.*", caller)
+                            if found: caller = found.group(1)
+                        if len(caller) > 20: caller = caller[:20]
+
+                        text = text + "%s %s %s %s\n" %(date, caller, direction, phone)
+                        print "[FritzCallList] display: '%s %s %s %s'" %(date, caller, direction, phone)
+                        # display screen
+               Notifications.AddNotification(MessageBox, text, type=MessageBox.TYPE_INFO)
+               self.callList = [ ]
+
+
+callList = FritzCallList()
+
+def notifyCall(event, date, number, caller, phone):
+       if Standby.inStandby is None or config.plugins.FritzCall.afterStandby.value == "each":
+               if event == "RING":
+                       text = _("Incoming Call on %s from\n---------------------------------------------\n%s\n%s\n---------------------------------------------\nto: %s") % (date, number, caller, phone)
+               else:
+                       text = _("Outgoing Call on %s to\n---------------------------------------------\n%s\n%s\n---------------------------------------------\nfrom: %s") % (date, number, caller, phone)
+               print "[FritzCall] notifyCall:\n%s" %text
+               Notifications.AddNotification(MessageBox, text, type=MessageBox.TYPE_INFO, timeout=config.plugins.FritzCall.timeout.value)
+       elif config.plugins.FritzCall.afterStandby.value == "inList":
+               #
+               # if not yet done, register function to show call list
+               global standbyMode
+               if not standbyMode :
+                       standbyMode = True
+                       Standby.inStandby.onClose.append(callList.display)
+               # add text/timeout to call list
+               callList.add(event, date, number, caller, phone)
+               print "[FritzCall] notifyCall: added to callList"
+       else: # this is the "None" case
+               print "[FritzCall] notifyCall: standby and no show"
+
+
 #===============================================================================
 #              We need a separate class for each invocation of reverseLookup to retain
 #              the necessary data for the notification
@@ -367,6 +437,9 @@ class FritzReverseLookupAndNotifier:
                        if self.number[:4] == "0041":            # Switzerland calling
                                url = "http://tel.search.ch/result.html?name=&m...&tel=%s" %self.number.replace("0041","0")
                                getPage(url, method="GET").addCallback(self.gotPageTelSearchCH).addErrback(self.gotErrorLast)
+                        elif self.number[:4] == "0039":                 # Italy calling
+                                url = "http://www.paginebianche.it/execute.cgi?btt=1&ts=106&cb=8&mr=10&rk=&om=&qs=%s" %self.number.replace("0039","0")
+                                getPage(url, method="GET").addCallback(self.gotPagePaginebiancheIT).addErrback(self.gotErrorLast)
                        else:
                                url = "http://www.dasoertliche.de/?form_name=search_inv&ph=%s" %self.number
                                getPage(url, method="GET").addCallback(self.gotPageDasOertliche).addErrback(self.gotErrorDasOertliche)
@@ -381,13 +454,8 @@ class FritzReverseLookupAndNotifier:
 
 
        def notifyAndReset(self, timeout=config.plugins.FritzCall.timeout.value):
-               if self.event == "RING":
-                       text = _("Incoming Call on %s from\n---------------------------------------------\n%s\n%s\n---------------------------------------------\nto: %s") % (self.date, self.number, self.caller, self.phone)
-               else:
-                       text = _("Outgoing Call on %s to\n---------------------------------------------\n%s\n%s\n---------------------------------------------\nfrom: %s") % (self.date, self.number, self.caller, self.phone)
-               print "[FritzReverseLookupAndNotifier] notifyAndReset:\n%s" %text
-               Notifications.AddNotification(MessageBox, text, type=MessageBox.TYPE_INFO, timeout=timeout)
-               #       at this point we could destroy the object, but I dunno how :-)
+               notifyCall(self.event, self.date, self.number, self.caller, self.phone)
+               # kill that object...
 
        def gotErrorDasOertliche(self, error):                   # so we try Klicktel
                url = "http://www.klicktel.de/telefonbuch/backwardssearch.html?newSearch=1&boxtype=backwards&vollstaendig=%s" %self.number
@@ -551,13 +619,7 @@ class FritzProtocol(LineReceiver):
                self.date = '0'
 
        def notifyAndReset(self, timeout=config.plugins.FritzCall.timeout.value):
-               print "[FritzProtocol] notifyAndReset: Call on %s from %s, %s to: %s" % (self.date, self.number, self.caller, self.phone)
-               if self.event == "RING":
-                       text = _("Incoming Call on %s from\n---------------------------------------------\n%s\n%s\n---------------------------------------------\nto: %s") % (self.date, self.number, self.caller, self.phone)
-               else:
-                       text = _("Outgoing Call on %s to\n---------------------------------------------\n%s\n%s\n---------------------------------------------\nfrom: %s") % (self.date, self.number, self.caller, self.phone)
-               print "[FritzProtocol] notifyAndReset:\n%s" %text
-               Notifications.AddNotification(MessageBox, text, type=MessageBox.TYPE_INFO, timeout=timeout)
+               notifyCall(self.event, self.date, self.number, self.caller, self.phone)
                self.resetValues()
 
        def lineReceived(self, line):
@@ -684,4 +746,4 @@ def Plugins(**kwargs):
        else:
                return [ PluginDescriptor(name="FritzCall", description=_("Display Fritzbox-Fon calls on screen"), where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main),
                PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart) ]
-               
\ No newline at end of file
+