From 7263f3d7ae771073c0078519c251fcdcf39633f5 Mon Sep 17 00:00:00 2001 From: grompo <> Date: Mon, 22 Feb 2016 07:47:29 +0000 Subject: [PATCH] FRITZBOX: set timeouts extended git-svn-id: https://svn.fhem.de/fhem/trunk@10912 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/72_FRITZBOX.pm | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/fhem/FHEM/72_FRITZBOX.pm b/fhem/FHEM/72_FRITZBOX.pm index a309e5afe..26c690b68 100644 --- a/fhem/FHEM/72_FRITZBOX.pm +++ b/fhem/FHEM/72_FRITZBOX.pm @@ -1866,7 +1866,7 @@ sub FRITZBOX_Set_Cmd_Start($) # Preparing SET guestWLAN elsif ($val[0] eq "guestwlan") { shift @val; - $timeout = 10; + $timeout = 20; $cmdBufferTimeout = time() + $timeout; $handover = $name . "|" . join( "|", @val ); $cmdFunction = "FRITZBOX_GuestWlan_Run_Web"; @@ -1875,7 +1875,7 @@ sub FRITZBOX_Set_Cmd_Start($) # Preparing SET RING elsif ($val[0] eq "ring") { shift @val; - $timeout = 5; + $timeout = 20; if ($val[2]) { $timeout = $val[2] if $val[2] =~/^\d+$/; } @@ -4693,30 +4693,27 @@ sub FRITZBOX_fritztris($)
  • set <name> ring <intNumbers> [duration [ringTone]] [show:Text] [say:Text | play:MP3URL] -
    - Example: -
    +
    Example:
    +
    set fritzbox ring 611,612 5 Budapest show:It is raining
    set fritzbox ring 611 8 say:(en)It is raining
    set fritzbox ring 610 10 play:http://raspberrypi/sound.mp3 -
    +
    Rings the internal numbers for "duration" seconds and (on Fritz!Fons) with the given "ring tone" name. Different internal numbers have to be separated by a comma (without spaces).
    - Default duration is 5 seconds. The Fritz!Box can create delays. Default ring tone is the internal ring tone of the device. + Default duration is 5 seconds. The Fritz!Box can create further delays. Default ring tone is the internal ring tone of the device. Ring tone will be ignored for collected calls (9 or 50).
    If the call is taken the callee hears the "music on hold" which can also be used to transmit messages.
    - The parameter ringtone, show:, say: and play: need the API Telnet or webcm. -
    -
    + The parameter ringtone, show:, say: and play: require the API Telnet or webcm. +

    If the attribute 'ringWithIntern' is specified, the text behind 'show:' will be shown as the callers name. Maximal 30 characters are allowed. -
    -
    +

    On Fritz!Fons the parameter 'say:' can be used to let the phone speak a message (max. 100 characters) instead of using the ringtone. Alternatively a MP3 link can be played with 'play:'. This creates the internet radio station 'FHEM' and uses translate.google.com for text2speech. It will always play the complete text/sound. It will than ring with standard ring tone until the end of the 'ring duration' is reached. Say and play works only with a single Fritz!Fon. @@ -5062,15 +5059,14 @@ sub FRITZBOX_fritztris($)

  • set <name> ring <intNummern> [Dauer [Klingelton]] [show:Text] [say:Text | play:Link] -
    - Beispiel: -
    +
    Beispiel:
    +
    set fritzbox ring 611,612 5 Budapest show:Es regnet
    set fritzbox ring 610 8 say:Es regnet
    set fritzbox ring 610 10 play:http://raspberrypi/sound.mp3 -
    +
    Lässt die internen Nummern für "Dauer" Sekunden und (auf Fritz!Fons) mit dem angegebenen "Klingelton" klingeln.
    Mehrere interne Nummern müssen durch ein Komma (ohne Leerzeichen) getrennt werden. @@ -5081,16 +5077,14 @@ sub FRITZBOX_fritztris($) Wenn der Anruf angenommen wird, hört der Angerufene die Wartemusik (music on hold), welche ebenfalls zur Nachrichtenübermittlung genutzt werden kann.
    Die Parameter Klingelton, show:, say: und play: benötigen die API Telnet oder webcm. -
    -
    +

    Wenn das Attribut 'ringWithIntern' existiert, wird der Text hinter 'show:' als Name des Anrufers angezeigt. Er darf maximal 30 Zeichen lang sein. -
    -
    +

    Auf Fritz!Fons wird der Text (max. 100 Zeichen) hinter dem Parameter 'say:' direkt angesagt und ersetzt den Klingelton.
    Alternativ kann mit 'play:' auch ein MP3-Link abgespielt werden. Dabei wird die Internetradiostation 39 'FHEM' erzeugt und translate.google.com für Text2Speech genutzt. Es wird immer der komplette Text/Klang abgespielt. Bis zum Ende der 'Klingeldauer' klingelt das Telefon dann mit seinem Standard-Klingelton. - Das Abspielen ist nur auf einem einzelnen Fritz!Fon m&oouml;glich. + Das Abspielen ist nur auf jeweils einem einzelnen Fritz!Fon möglich.
    Je nach Fritz!OS kann das beschriebene Verhalten abweichen.