Index: k/source.sh4/titaninfos_news/var/usr/local/share/titan/plugins/news/callmon.conf
===================================================================
--- /ipk/source.sh4/titaninfos_news/var/usr/local/share/titan/plugins/news/callmon.conf	(revision 15374)
+++ 	(revision )
@@ -1,9 +1,0 @@
-FRITZBOXIP=10.0.0.99
-FritzPass=XXXXXXXXXX
-usePhoneBook=0
-Alle=1
-anzeigewennaus=0
-anzeigetimeout=5
-monRing=1
-monCall=0
-muteRing=0
Index: k/source.sh4/titaninfos_news/var/usr/local/share/titan/plugins/news/fritzbox_msg_new.sh
===================================================================
--- /ipk/source.sh4/titaninfos_news/var/usr/local/share/titan/plugins/news/fritzbox_msg_new.sh	(revision 15374)
+++ 	(revision )
@@ -1,590 +1,0 @@
-#!/bin/sh
-
-CONFIG=`echo "$0callmon.conf" | sed s/fritzbox_msg_new.sh//`
-NC=`echo "$0nc" | sed s/fritzbox_msg_new.sh//`
-ICONV=`echo "$0iconv" | sed s/fritzbox_msg_new.sh//`
-CURL=`echo "$0curl" | sed s/fritzbox_msg_new.sh//`
-LPATH=`echo "$0" | sed s/'\/fritzbox_msg_new.sh'//`
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LPATH
-export LD_LIBRARY_PATH
-
-. $CONFIG
-#. ./callmon.conf
- 
-# Version:      @(#)fritzbox_msg_new.sh  0.81 30-Jun-2008 krasnojarsk@gmx.de
-# Author: Ludwig H.
-#-------------------------------------------------------------------------------
-#
-# V0.90 - Erkan
-# - Änderungen bis Februar 2011 eingebracht
-# - für DM600PVR angepasst
-#
-#-------------------------------------------------------------------------------
-#
-# To enable the callmonitor on your fritzbox use your telephone and call
-#    #96*5*         to enable
-#    #96*4*         to disable
-#
-# You should put the script into /etc/init.d (DM7020/DM600PVR) or /var/init.d (DM7000)
-#
-# For autostart on DM600PVR make a symbolic link
-# ln -s /etc/init.d/fritzbox_msg_new.sh /etc/rc2.d/S40Fritz
-#
-#SETUP---start------------------------------------------------------------------
-#
-##FRITZBOXIP=10.0.0.99   #IP of your fritzbox
-TELDPORT=1012            #callmonitor port (default 1012)
-#
-#SETUP---end--------------------------------------------------------------------
-#
-#
-#Options---start----------------------------------------------------------------
-#
-Version=v0.90					#Zur Versionsanzeige im telnet
-debug=0								#wenn debug auf 1 steht wird am TV nichts angezeigt
-Ziel=4711							#bitte Rufnummer eintragen die Überwacht werden soll 
-Ziel_2=4711						#2te Rufnummer die Überwacht werden soll
-											#wenn keine zweite dann gleiche nochmal eintragen!
-##Alle=1            	  #wenn hier eine 1 steht werden alle Rufnummern überwacht
-                  	  #unabhängig von Ziel und Ziel_2
-##monRing=1         	  #eingehende Anrufe anzeigen
-##muteRing=0        	  #Ton aus bei Anruf
-##monCall=0         	  #ausgehende Anrufe anzeigen
-monDisconnect=0   	  #Beenden eines Anrufes anzeigen. Hier ist noch ein Bug drin!
-                  	  #Es werden immer alle Gespräche überwacht (alle Rufnummern
-                  	  #werden überwacht- Ziel und Ziel_2 funktionieren hier nicht
-                  	  #). Ich habe das deshalb immer auf 0.
-ip=127.0.0.1      		#ip Adresse der Dreambox
-##anzeigetimeout=10  	  #Wie lange soll die Meldung angezeigt werden?
-##anzeigewennaus=0  	  #Wenn 1 dann werden alle Meldungen gespeichert und angezeigt
-                  	  #wenn die Dreambox eingeschaltet wird (kann ganz schön viel
-                  	  #werden!). Wenn 0 werden die Meldungen nicht angezeigt wenn 
-                  	  #die Box aus war als z.B. ein Anruf eingegangen ist.
-                  	  #Empfehlen tue ich eine 0. Wer weis was passiert wenn man im
-                  	  #Urlaub ist und etliche Meldungen gespeichert werden.
-uebersichtsseite=0 	  #Wenn anzeige wenn aus und uebersichtsseite 1 ist, dann werden
-                   	  #nach dem einschalten der Dream aus dem Standy alle verpassten
-                   	  #Anrufe in einer Übersichtseite angezeigt mit Datum und Uhrzeit
-                   	  #Hierzu muss OpenPanel installiert sein.
-                   	  #Hier muss aber noch ein Start Script erstellt werden!                  
-loginname=root    	  #Loginname für Dreambox (Beispiel:root)
-passwort=kathrein    	#passwort für Dreambox (Beispiel:dreambox)
-vorwahl=030						#Eigene Vorwahl eintragen
-#
-#Options---end------------------------------------------------------------------
-#
-#
-#---- do not change anything below here ----
-#
-#additional paths to files we use (will be created automatically if not present)
-#detecting Dreambox-Type (DM7020 or DM7000 or DM500 or DM600PVR)
- FRITZCACHE=/tmp/fritzbox.cache        		 #stores successfull reverse searches
- FRITZBUCH=/var/fritzbuch.tele
- TMPFILE=/tmp/fritzbox.tmp             		 #stores page from wget command
- TMPSTATUS=/tmp/fritzdream.status      		 #status der Dreambox (standby usw)
- TMPRING=/tmp/tmpring.xml              		 #stores missed calls 
- TMPINCOMING=/tmp/ringin.tmp         		 	 #for checking ring overview
-
-NULL=/dev/null                              #'NULL'
-SCRIPT=$0                                   #full path to this script
-export SCRIPT
-
-#-------------------------------------------------------------------------------
-#definition of the reverse search online (GOYELLOW.DE)
-#-------------------------------------------------------------------------------
-SEARCHPRV="GoYellow"
-SEARCHURL="http://www.goyellow.de/schnellsuche/?LIP=simpleSearch&MDN="
-SEARCHURL="http://www.goyellow.de/inverssuche/?TEL="
-SEARCHPDETAIL="Detailinformationen"
-SEARCHERR="Keine.Einträge.gefunden"        #replace spaces with dots (regex)
-#-------------------------------------------------------------------------------
-#check if FritzBox! is up and callmonitor port is reachable. if not exit.
-#-------------------------------------------------------------------------------
-#cat /dev/null | ./nc $FRITZBOXIP $TELDPORT
-cat /dev/null | $NC $FRITZBOXIP $TELDPORT
-if [ $? != 0 ]; then
- echo "Fritzbox (" $FRITZBOXIP ") ist nicht auf Port" $TELDPORT "erreichbar!"
- echo "Skript wird beendet!"
- FRITZUP=down
- exit 1
-else
- FRITZUP=up
-fi
-#-------------------------------------------------------------------------------
-#if script is called without any parameters show help text
-#-------------------------------------------------------------------------------
-if [ "$1" = "" ]; then
- echo
- echo "Usage: $SCRIPT START STOP CLEANUP SORTNAME SORTNUMBER TEST [phonenumber]"
- echo
- echo "START               Start Script and deamonize"
- echo "STOP                kill all processes we created"
- echo "CLEANUP             delete all temporary files incl. cache"
- echo "SORTNAME            sort cache file by name"
- echo "SORTNAME -r         sort cache file by name (reverse)"
- echo "SORTNUMBER          sort cache file by number"
- echo "SORTNUMBER -r       sort cache file by number (reverse)"
- echo "TEST [phonenumber]  For testing connectivity and trying the search"
- echo
-fi
-#-------------------------------------------------------------------------------
-#reading function to interpret the data read from FritzBox! callmonitor port
-#-------------------------------------------------------------------------------
-mysearch () {
-
-if [ "$1" = "Unbekannt" ]; then
-   NAME="ohne Rufnummer"
-   ADDRESSE=""
-else
-   #remove spaces from $1 and replace '+49' with ''0'
-   NUMMER=`echo $1 | sed -e "s@\ @@g" -e "s@+49@0@"`
-   #UH
-   NUMMER=`echo $NUMMER | sed -e "s/^1/${vorwahl}1/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^2/${vorwahl}2/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^3/${vorwahl}3/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^4/${vorwahl}4/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^5/${vorwahl}5/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^6/${vorwahl}6/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^7/${vorwahl}7/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^8/${vorwahl}8/g"`
-   NUMMER=`echo $NUMMER | sed -e "s/^9/${vorwahl}9/g"`
-   echo "$NUMMER"
-   echo "Searching for $NUMMER in cache file..."
-   if [ ! -f $FRITZCACHE ]; then  touch $FRITZCACHE; fi
-    #try to get caller-id via $NUMBER from $FRITZCACHE
-    NAME=`grep $NUMMER $FRITZCACHE | sed -e "s@$NUMMER\#@@" -e "s@;@\n@g"`
-    ADDRESSE=`echo $NAME | sed -e 's/.*->//g'`
-    NAME=`echo $NAME | sed -e 's/->.*//g'`
-    echo -e
-    echo -e "NAME nach Cache Suche: $NAME"
-    echo -e "ADRESSE nach Cache Suche: $ADDRESSE"
-    
-   if [ "$NAME" = "" ]; then
-    #try to get caller-id of $NUMMER via internet
-    echo "Searching for $NUMMER via $SEARCHPRV"
-    wget "$SEARCHURL$NUMMER"  -O $TMPFILE
-    #extract caller-id from online result
-    #UH20100112
-#    NAME=`grep $SEARCHPDETAIL $TMPFILE | head -1 | sed -e "/</{; :loop; s/<[^<]*>//g; /</{; N; b loop; }; };"`
-#    ADDRESSE=`grep "address" $TMPFILE| head -1`
-#    ADDRESSE=`echo $ADDRESSE | sed 's/<[^>]*>/ /g'`
-
-    NAME=`grep $SEARCHPDETAIL $TMPFILE | head -1 | sed -e 's/.*Detailinformationen zu //g' | sed -e 's/ in .*//g'`
-    STRASSE=`grep '<span class="street street-address">' $TMPFILE | head -1 | sed -e 's/<span class="street street-address">//g' | sed -e 's/<\/span>.*//g'`
-    POSTCODE=`grep '<span class="postcode postal-code">' $TMPFILE | head -1 | sed -e 's/.*<span class="postcode postal-code">//g' | sed -e 's/<\/span>.*//g'`
-    ORT=`grep '<span class="city locality">' $TMPFILE | head -1 | sed -e 's/.*<span class="city locality">//g' | sed -e 's/<\/span>.*//g'`
-    ADDRESSE="$STRASSE~n$POSTCODE $ORT"
-
-    if [ "$NAME" = "" ]; then
-     if grep $SEARCHERR $TMPFILE > $NULL; then
-      NAME="Unbekannt"
-      ADDRESSE=""
-     fi;
-    fi;
-    if [ "$NAME" = "" ]; then
-     NAME="Unbekannt"
-     ADDRESSE=""
-    else
-     #dirty workarround to fix 'new-lines' when multiple caller-ids exist
-     #to make sure only 1 line will be written to cache file
-     #NAME=`printf %s***** $NAME | sed -e "s@\*\*\*\*\*@ @g;"
-     #echo "Name gefunden in Goyellow: " $NAME 
-     echo -e
-     echo -e "$NUMMER#$NAME->$ADDRESSE" >> $FRITZCACHE
-     export NAME
-     export ADDRESSE
-    fi;
-   fi;
-fi;
-};
-
-loadFritzBook () {
- if [ $usePhoneBook = "1" ]; then
-	 	if [ ! -f $FRITZBUCH ]; then
-	 	 	# Challenge abholen
-			echo "Challenge abholen start"
-			ChallengeXML=`wget -O - "http://$FRITZBOXIP/cgi-bin/webcm?getpage=../html/login_sid.xml" 2>/dev/null| grep Challenge`
-			Challenge=`echo $ChallengeXML | awk '{match($0,/>[^<>]+</); print substr($0,RSTART+1,RLENGTH-2)}'`
-			echo "Challenge abholen ende"
-			
-			Passwd="$FritzPass"
-
-			# login aufbauen und hashen
-			echo "login aufbauen und hashen start"
-			CPSTR="$Challenge-$Passwd"
-			MD5=`echo -n $CPSTR | $ICONV -f ISO8859-1 -t UTF-16LE > /tmp/help; md5sum /tmp/help | awk '{print substr($0,1,32)}'`
-			RESPONSE="$Challenge-$MD5"
-			POSTDATA="login:command/response=$RESPONSE&getpage=../html/de/menus/menu2.html"
-			# login senden und SID herausfischen
-			SID=`wget -O - --post-data="$POSTDATA" "http://$FRITZBOXIP/cgi-bin/webcm" 2>/dev/null| grep "name=\"sid\"" | head -1 | awk '{match($0,/value="[^"]+"/); print substr($0,RSTART+7,RLENGTH-8)}'`
-			echo "login aufbauen und hashen ende"
-			$CURL --data "telcfg:settings/Phonebook/Books/Select=0&getpage=../html/de/menus/menu2.html&var:pagename=fonbuch&sid=$SID&var:menu=fon&var:lang=de" http://$FRITZBOXIP/cgi-bin/webcm  | grep ">TrFon" | sed s/'<script type="text\/javascript">'// | sed s/';<\/script>'// | sed s/'('/'"'/ | sed s/')'/'"'/ > /tmp/curlhelp.tmp
-
-			while read line 
-				do
-				art=`echo $line | cut -d'"' -f1`
-				if [ $art = "TrFonName" ]; then
-					name=`echo $line | cut -d'"' -f5`
-				elif [ $art = "TrFonNr" ]; then
-					nummer=`echo $line | cut -d'"' -f5`
-					echo "$nummer#$name" >> $FRITZBUCH 
-				fi
-			done < /tmp/curlhelp.tmp
-			rm /tmp/curlhelp.tmp
-		fi
-		cp $FRITZBUCH $FRITZCACHE
-	fi	
-};
-#-------------------------------------------------------------------------------
-#Script has been initiated with parameters
-#(START,RING,CALL,DISCONNECT,CONNECT,STOP,SORTNAME,SORTNUMBER,TEST,CLEANUP)
-case $1 in
-  START|start)
-  echo
-  echo "------------------------------------"
-  echo "Fritzbox Callmonitor" $Version "gestartet"
-  echo "---Folgende Optionen sind gesetzt---"
-  echo "Debugmodus: " $debug
-  echo "Ueberwachte Rufnummern: " $Ziel " und " $Ziel_2
-  echo "Alle Rufnummern ueberwachen: " $Alle
-  echo "Eingehende Anrufe ueberwachen: " $monRing
-  echo "Ausgehende Anrufe ueberwachen: " $monCall
-  echo "Verbindungsende ueberwachen: " $monDisconnect
-  echo "IP Adresse der TV-Box: " $ip
-  echo "Anzeigetimeout: " $anzeigetimeout
-  echo "Anzeigewennaus: " $anzeigewennaus
-  #echo "Übersichtsseite: " $uebersichtsseite
-  echo "Fritzbox Telefonbuch: " $usePhoneBook
-  echo "------------------------------------"
-  echo "**************************************"
-  echo "loadFritzBook start"
-  loadFritzBook
-  echo "loadFritzBook ende"
-  if [ $debug = 0 ]; then
-     #wget -T 1 -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3"
-     $CURL "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" -o /dev/null
-  fi
-  #very tricky line to get data from FritzBox! using netcat and divide it using
-  #awk. Only make changes to this line if you completely understand it!
-  #Make sure the next line end with a trailing '&' or your dreambox will hang!
-    #tail -f < /dev/null|./nc $FRITZBOXIP $TELDPORT|awk -F";" '{if ($4==""){$4="Unbekannt"} system (ENVIRON ["SCRIPT"] " "$2" "$1" "$3" "$4" "$5" "$6" "$7 )}' &
-    echo "tail start"
-    tail -f < /dev/null|$NC $FRITZBOXIP $TELDPORT|awk -F";" '{if ($4==""){$4="Unbekannt"} system (ENVIRON ["SCRIPT"] " "$2" "$1" "$3" "$4" "$5" "$6" "$7 )}' &
-    echo "Ende"
-     ;;
-  RING)
-    mysearch $5
-    echo $2" "$3" Ankommend: von "$5" auf "$6"und hier noch wert 7 "$7 
-    #title of messagebox 
-    c=">>>> Anruf ankommend <<<<"
-    #prepare text
-    #UH20100110
-		fuer=$6
-    if [ "$6" = "4711" ]
-       then fuer="Name1"
-#       elif [ "$6" = "MSN2" ]
-#          then fuer="Name2"
-    fi
-
-#    b=" Anruf von "$5"~n~n "$NAME"~n "$ADDRESSE"~n für "$6
-    b=" Anruf von "$5"~n~n "$NAME"~n "$ADDRESSE"~n~n~n für "$fuer
-
-    b1=`echo $b               | sed -e '{s/4711/Name1/g;s/MSN2/Name2/g;s/MSN3/Name3/g;s/SIP0/VOIP0/g;s/SIP1/VOIP1/g;s/SIP2/VOIP2/g;}'` 
-#    b1=`echo $b               | sed -e '{s/4711/Name1/g;s/MSN2/Name2/g;s/MSN3/Name3/g;s/SIP0/VOIP0/g;s/SIP1/VOIP1/g;s/SIP2/VOIP2/g;}'` 
-    #Wert in Logb zwischenspeichern für TMPRING
-    logb=`echo $b1            | sed -e '{s/~n//g;}'`  
-
-    b1=`echo $b1              | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-    c1=`echo $c               | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-    #Eingehende Anrufe anzeigen?
-    if [ $monRing = 1 ]; then
-      #Welche Rufnummern sollen überwacht werden?
-      if [ $6 = $Ziel -o $6 = $Ziel_2 -o $Alle = 1 ] ; then
-        #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS
-        #wget -O- http://$ip/query?boxstatus > $TMPSTATUS
-        $CURL http://$ip/query?boxstatus > $TMPSTATUS
-        #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'`
-        STANDBY=`grep "standby" $TMPSTATUS| wc -l`
-        STANDBY=0
-        echo "Standbystatus: $STANDBY"
-          if [ $STANDBY = 0 ]; then
-            if [ $debug = 0 ]; then 
-              if [ $muteRing = 1 ]; then #wenn Option gesetzt ist dann wird der Ton abgeschaltet 
-                #wget -O- http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben
-                #mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'`
-                #if [ $mute = 0 ]; then
-                  #wget -q -O /dev/null "http://@$ip/query?sendrc&rcmute"  >> $NULL #Befehl für Tonsperre
-                	$CURL "http://@$ip/query?sendrc&rcmute"  >> $NULL #Befehl für Tonsperre
-                #fi
-              fi
-              #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-            	$CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-            fi  
-          else
-            echo "Dreambox ist im Standby"
-            if [ $anzeigewennaus = 1 ]; then #wenn die Box im Standby ist und die Option gesetzt ist dann wird nach dem einschalten der Box die Meldung angezeigt
-              echo "Meldung wird wenn debug 0 ist trotzdem angezeigt da -anzeigewennaus- 1 ist"
-              #wenn die Leitung überwacht wird dann den Anruf erst einmal in TMPRING schreiben und TMPINCOMING schreiben
-              if [ $uebersichtsseite = 1 ]; then
-                echo "Anruf wird für Übersichtsseite gespeichert"
-              if [ -f $TMPRING ];     then
-                  echo "TMPRING gibt es schon neu "
-                  echo "<shell name=\"von $5 $NAME\" shortcut=\"\" help=\"$2 $3\"><sh></sh></shell>
-<line name=\"$ADDRESSE\" />
-<line name=\"für $6\" />
-<separator />" >>$TMPRING
-               else
-                  echo "TMPRING gibt es noch nicht"         
-                  echo "<menu name=\"Verpasste Anrufe\">
-<shell name=\"von $5 $NAME\" shortcut=\"\" help=\"$2 $3\"><sh></sh></shell>     
-<line name=\"$ADDRESSE\" />
-<line name=\"für $6\" />
-<separator />" >$TMPRING
- 	            fi
-                  echo "nach der Abfrage ob es TMPring schon gibt"
-                  echo "1" > $TMPINCOMING
-              else
-                if [ $debug = 0 ]; then     
-                  echo "Meldung wird nach dem einschalten der Box angezeigt"
-                  #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-                  $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-                fi
-              fi  
-            fi
-          fi
-      fi
-    fi   
-    
-    if [ -f $TMPSTATUS ];     then  rm $TMPSTATUS; fi
-    if [ -f $TMPFILE ];     then  rm $TMPFILE; fi
-    ;;
-  CALL)
-    mysearch $7
-    echo $2" "$3" Ausgehend: von "$6" auf "$7
-      #title of messagebox
-      c="<<<< Anruf abgehend >>>>"
-      #prepare text
-      #UH20100110
-      if [ "$6" = "4711" ]
-         then von=`echo $6               | sed -e '{s/4711/Name1/g;}'`
-#         elif [ "$6" = "4712" ]
-#            then von=`echo $6               | sed -e '{s/4712/MSN2/g;}'`
-      fi
-
-#      b=" Anruf von "$6"~n~n für "$7"~n~n "$NAME"~n "$ADDRESSE
-      b=" Anruf von "$von"~n~n~n für "$7"~n~n "$NAME"~n "$ADDRESSE
-
-      b1=`echo $b               | sed -e '{s/MSN1/Name1/g;s/MSN2/Name2/g;s/MSN3/Name3/g;s/SIP0/VOIP0/g;s/SIP1/VOIP1/g;s/SIP2/VOIP2/g;}'` 
-#      b1=`echo $b               | sed -e '{s/MSN1/Name1/g;s/MSN2/Name2/g;s/MSN3/Name3/g;s/SIP0/VOIP0/g;s/SIP1/VOIP1/g;s/SIP2/VOIP2/g;}'` 
-
-      b1=`echo $b1              | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-      c1=`echo $c               | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-      #tempfile schreiben für Übersicht
-      
-      #Ausgehende Anrufe anzeigen?
-      if [ $monCall = 1 ]; then
-        #Welche Rufnummern sollen überwacht werden?
-        if [ $6 = $Ziel -o $6 = $Ziel_2 -o $Alle = 1 ] ; then
-          echo "Diese Rufnummer wird überwacht"
-          #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS
-          #wget -O- http://$ip/query?boxstatus > $TMPSTATUS
-          $CURL http://$ip/query?boxstatus > $TMPSTATUS
-          #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'`
-          STANDBY=`grep "standby" $TMPSTATUS| wc -l`
-          STANDBY=0
-          echo "Standbystatus: $STANDBY"
-          if [ $STANDBY = 0 ]; then
-            echo "Wenn debug noch 0 ist wird die Meldung angezeigt"
-            if [ $debug = 0 ]; then
-              #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-              $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-            fi
-          else
-            echo "Dreambox ist im Standby"
-            if [ $anzeigewennaus = 1 ]; then
-              echo "Meldung wird wenn debug 0 ist trotzdem angezeigt da -anzeigewennaus- 1 ist"
-              if [ $debug = 0 ]; then     
-                echo "Meldung wird nach dem einschalten der Box angezeigt"
-                #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-                $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"  >> $NULL
-              fi
-            fi  
-          fi  
-        fi
-      fi
-      if [ -f $TMPSTATUS ];     then  rm $TMPSTATUS; fi
-      if [ -f $TMPFILE ];     then  rm $TMPFILE; fi
-      ;;
-  
-  DISCONNECT)
-  #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS
-  #wget -O- http://$ip/query?boxstatus > $TMPSTATUS
-  $CURL http://$ip/query?boxstatus > $TMPSTATUS
-  #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'`
-  STANDBY=`grep "standby" $TMPSTATUS| wc -l`
-  if [ $STANDBY = 0 ]; then
-    if [ $muteRing = 1 ]; then #wenn Option gesetzt ist dann wird der Ton abgeschaltet 
-      #wget -O- http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben
-      $CURL http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben
-      mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'`
-      if [ $mute = 1 ]; then
-        #wget -q -O /dev/null "http://$loginname:$passwort@$ip/cgi-bin/rc?113"  >> $NULL #Befehl für Tonsperre
-        $CURL "http://$loginname:$passwort@$ip/cgi-bin/rc?113"  >> $NULL #Befehl für Tonsperre
-      fi
-    fi
-  fi 
-     h=$(($5/3600))                        #get hours from   $5
-     m=$(($5%3600/60))                     #get minutes from $5
-     s=$((($5%3600)%60))                   #get seconds from $5
-     if [ $h -lt 10 ]; then h="0"$h; fi    #add leading 0 if needed
-     if [ $m -lt 10 ]; then m="0"$m; fi    #add leading 0 if needed
-     if [ $s -lt 10 ]; then s="0"$s; fi    #add leading 0 if needed
-     #title of messagebox
-     c="-- Anrufauswertung --"
-     #prepare text
-     b="~n Aufgelegt nach "$5" Sekunden Dauer (hh:mm:ss): "$h":"$m":"$s"~n"
-     
-     #Beenden eines Anrufes anzeigen?
-     if [ $monDisconnect = 1 ]; then  
-          if [ $debug = 0 ]; then
-          #generate the messagebox
-          b1=`echo $b               | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-          c1=`echo $c               | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-          echo "Disconnect"
-          if [ $STANDBY = 0 ]; then
-           #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"          >> $NULL
-           $CURL -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout"          >> $NULL
-          fi
-         fi
-     fi 
-     if [ -f $TMPSTATUS ];     then  rm $TMPSTATUS; fi
-     if [ -f $TMPINCOMING ];     then  rm $TMPINCOMING; fi
-     ;;
-  CONNECT)
-    echo "connect ist jetzt aktiv - verbunden"
-    #kontrollieren ob dieses ein eingehender Anruf war
-    if [ -f $TMPINCOMING ];     then 
-    eingehend=`grep "1" $TMPINCOMING| head -1`
-    else 
-    eingehend="0"
-    fi
-    #wenn das ein eingehender anruf war dann letzten Zeilen löschen da der Anruf angenommen wurde
-    if [ $eingehend = 1 ]; then 
-      if [ -f $TMPRING ];     then  sed -i '$D' $TMPRING; fi
-      if [ -f $TMPRING ];     then  sed -i '$D' $TMPRING; fi
-      if [ -f $TMPRING ];     then  sed -i '$D' $TMPRING; fi
-      if [ -f $TMPRING ];     then  sed -i '$D' $TMPRING; fi
-       
-      if [ -f $TMPINCOMING ];     then  rm $TMPINCOMING; fi
-    fi
-     ;;
-  SORTNAME|sortname)
-    #convert $FRITZCACHE to unix format
-    unix2dos -u  $FRITZCACHE
-    #convert $FRITZCACHE to upper case
-    awk -F '#' '{print toupper($2)"#"$1"#"$2}' $FRITZCACHE|sort $2>$FRITZCACHE"_sort"
-    #sort $FRITZCACHE
-    awk -F '#' '{print $2"#"$3}' $FRITZCACHE"_sort" > $FRITZCACHE
-     ;;
-  SORTNUMBER|sortnumber)
-    #sort FRITZCACHE by telephone number
-    sort $FRITZCACHE $2 > $FRITZCACHE"_sort"
-    mv $FRITZCACHE"_sort" $FRITZCACHE
-    ;;
-  CLEANUP|cleanup)                       #cleanup (removes all files)
-     echo "deleting $TMPFILE (if exists)"
-     if [ -f $TMPFILE ];     then  rm $TMPFILE; fi
-     echo "deleting $FRITZCACHE (if exists)"
-     if [ -f $FRITZCACHE ];   then  rm $FRITZCACHE; fi
-     ;;
-  STOP|stop)
-     #kill all processes we spawned
-     #hopefully only a single tail task is running so we kill it :)
-     pid=`ps | grep "tail.-f"| grep -v grep | awk '{print $1}'`
-     if [ "X${pid}" != "X" ] ; then
-        kill -9 ${pid}
-     fi
-     pid=`ps |grep "Unbekannt" | grep -v grep | awk '{print $1}'`
-     if [ "X${pid}" != "X" ] ; then
-        kill -9 ${pid}
-     fi
-     pid=`ps |grep ".*nc.*$TELDPORT" | grep -v grep | awk '{print $1}'`
-     if [ "X${pid}" != "X" ] ; then
-        kill -9 ${pid}
-     fi
-     pid=`ps |grep $SCRIPT | grep -v grep | awk '{print $1}'`
-     if [ "X${pid}" != "X" ] ; then
-        kill -9 ${pid}
-     fi
-     ;;
-  SHOW|show)
-  sleep 10     
-  if [ -f $TMPRING ];     then
-    eintragvorhanden=`grep "von" $TMPRING| head -1`
-    echo "Es ist ein Eintrag in TMPRING vorhanden"
-    if [ "$eintragvorhanden" = "" ]; then
-      echo "kein Eintrag in TMPRING"
-      rm $TMPRING
-    else
-      echo "</menu>" >>$TMPRING
-      ebox exit; exit=`opexec --width=580 --height=400 --xmlpath="$TMPRING"`
-      rm $TMPRING
-      #sed -i '$D' $TMPRING #falls die Datei nicht gelöscht werden soll muss man die letzte Zeile in der Datei löschen
-    fi 
-  else
-    echo "Die Datei TMPRING existiert nicht"  
-  fi
-  ;;
-  
-  TEST|test)
-  		loadFritzBook
-      echo "Testing the script: "$0
-      mysearch "$2"
-      echo "Searching for phone number: "$2" resulted in: "$NAME
-      #wget -O- http://$loginname:$passwort@$ip/xml/boxstatus > $TMPSTATUS
-      #wget -O- http://$ip/query?boxstatus > $TMPSTATUS
-      $CURL http://$ip/query?boxstatus > $TMPSTATUS
-      #STANDBY=`grep "standby" $TMPSTATUS| head -1 | sed -e '{s/<standby>//g;s/<\/standby>//g}'`
-      STANDBY=`grep "standby" $TMPSTATUS| wc -l`
-      STANDBY=0
-      echo "Standbystatus: $STANDBY"
-      p="$NAME    "
-      p20=`echo $p               | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-      t20=`echo $t               | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-      ADDRESSE20=`echo $ADDRESSE | sed -e '{s/ /%20/g;s/Ä/%C3%84/g;s/Ö/%C3%96/g;s/Ü/%C3%9C/g;s/ä/%C3%A4/g;s/ö/%C3%B6/g;s/ü/%C3%BC/g;s/á/ss/g;s/&/%26/g;s/~n/%0a/g;s/#/%20/g;}'`
-      if [ $STANDBY = 0 ]; then
-        if [ $debug = 0 ]; then
-          if [ $muteRing = 1 ]; then #wenn Option gesetzt ist dann wird der Ton abgeschaltet
-            #wget -O- http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben
-            #mute=`grep "mute" $TMPSTATUS| head -1 | sed -e '{s/mute://g;s/<br>//g;s/ //g}'`
-            #if [ $mute = 0 ]; then 
-                #wget -q -O /dev/null "http://$ip/query?sendrc&rcmute"  >> $NULL #Befehl für Tonsperre
-                $CURL "http://$ip/query?sendrc&rcmute"  >> $NULL #Befehl für Tonsperre
-            #fi    
-          fi
-          #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout"          >> $NULL
-          $CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout"          >> $NULL
-        fi
-      else
-        if [ $anzeigewennaus = 1 ]; then
-          if [ $debug = 0 ]; then
-           #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout"          >> $NULL
-           $CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout"          >> $NULL
-          fi  
-        else
-          echo "Keine Anzeige da die Box aus ist und -anzeigewennaus- 0 ist"
-        fi
-      fi
-      if [ -f $TMPFILE ];     then  rm $TMPFILE; fi
-      if [ -f $TMPSTATUS ];     then  rm $TMPSTATUS; fi
-  ;; 
-  loadPhoneBook|loadphonebook)
-  	rm $FRITZBUCH
-   	loadFritzBook
-  ;;
-esac
-
-
-
-
-
Index: k/source.sh4/titaninfos_news/var/usr/local/share/titan/plugins/news/skin.xml
===================================================================
--- /ipk/source.sh4/titaninfos_news/var/usr/local/share/titan/plugins/news/skin.xml	(revision 15374)
+++ 	(revision )
@@ -1,18 +1,0 @@
-<screen name="callmon_main" title="CallMonitor Settings" titlealign=center fontcol=fontcol valign=bottom fontsize=30 posx=center posy=center width=50% height=70% bordercol=bordercol bordersize=2 bgcol=bgcol>
-<node bordercol=bordercol scrollbar=auto type=listbox posy=center posx=center name=listbox width=85% height=70%>
-<node name=ipaddresse type=inputboxnum parent=listbox valign=middle posx=0 text="IP-FritzBox" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=passwort type=inputbox parent=listbox valign=middle posx=0 text="Passwort-FritzBox" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=phonebook type=choicebox parent=listbox valign=middle posx=0 text="FritzBook" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=allnum type=choicebox parent=listbox valign=middle posx=0 text="alle Nummern" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=rufnummer1 type=inputboxnum parent=listbox valign=middle posx=0 text="1.Rufnummer" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=rufnummer2 type=inputboxnum parent=listbox valign=middle posx=0 text="2.Rufnummer" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=eingehend type=choicebox parent=listbox valign=middle posx=0 text="eingehende Anrufe" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=ausgehend type=choicebox parent=listbox valign=middle posx=0 text="ausgehende Anrufe" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=stumm type=choicebox parent=listbox valign=middle posx=0 text="bei Anruf stumm" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=wennaus type=choicebox parent=listbox valign=middle posx=0 text="Aktion wenn standby" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=atimeout type=choicebox parent=listbox valign=middle posx=0 text="Anzeige in Sekunden" bordercol=bordercol bordersize=2 width=100% height=25>
-#<node name=broadcast type=inputboxnum parent=listbox valign=middle posx=0 text="broadcast" bordercol=bordercol bordersize=2 width=100% height=25>
-<node name=b1 text=SAVE halign=center valign=middle bordercol=green bordersize=2 bordertype=2 posx=0 posy=0 width=150 height=30/>
-<node name=b2 text=EXIT halign=center valign=middle bordercol=exitcol bordersize=2 bordertype=2 posx=160 posy=0 width=150 height=30/>
-<node name=b3 text=LOAD-FritzBook halign=center valign=middle bordercol=blue bordersize=2 bordertype=2 posx=400 posy=0 width=200 height=30/>
-</screen>
