Changeset 18056 for ipk/source.sh4/titanswaptools_callmonitor
- Timestamp:
- Sep 25, 2012, 6:01:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswaptools_callmonitor/var/swap/titanplugins/callmonitor1/fritzbox_msg_new.sh
r17775 r18056 239 239 #Script has been initiated with parameters 240 240 #(START,RING,CALL,DISCONNECT,CONNECT,STOP,SORTNAME,SORTNUMBER,TEST,CLEANUP) 241 242 timeout=10 243 while [ -e /tmp/xmessage ]; do 244 if [ $timeout != "0" ]; then 245 timeout=$(($timeout-1)) 246 sleep 1 247 else 248 break 249 fi 250 done 251 241 252 case $1 in 242 253 START|start) … … 264 275 #wget -T 1 -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" 265 276 $CURL "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" -o /dev/null 277 (touch /tmp/xmessage; sleep 4; rm /tmp/xmessage) & 266 278 fi 267 279 #very tricky line to get data from FritzBox! using netcat and divide it using … … 315 327 #if [ $mute = 0 ]; then 316 328 #wget -q -O /dev/null "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 317 $CURL "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 329 $CURL http://$ip/query?mutestatus > $TMPSTATUS 330 mute=`grep "muteon" $TMPSTATUS| wc -l` 331 if [ $mute = 0 ]; then 332 $CURL "http://@$ip/query?sendrc&rcmute" >> $NULL #Befehl für Tonsperre 333 fi 318 334 #fi 319 335 fi 320 336 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 321 337 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 338 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 322 339 fi 323 340 else … … 349 366 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 350 367 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 368 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 351 369 fi 352 370 fi … … 399 417 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 400 418 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 419 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 401 420 fi 402 421 else … … 408 427 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 409 428 $CURL "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 429 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 410 430 fi 411 431 fi … … 425 445 if [ $STANDBY = 0 ]; then 426 446 if [ $muteRing = 1 ]; then #wenn Option gesetzt ist dann wird der Ton abgeschaltet 427 $CURL "http://@$ip/query?sendrc&rcmute" >> $NULL 447 $CURL http://$ip/query?mutestatus > $TMPSTATUS 448 mute=`grep "muteon" $TMPSTATUS| wc -l` 449 if [ $mute = 1 ]; then 450 $CURL "http://@$ip/query?sendrc&rcmute" >> $NULL 451 fi 428 452 #wget -O- http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben 429 453 #$CURL http://$loginname:$passwort@127.0.0.1/cgi-bin/audio >> $TMPSTATUS #tonstatus wird ermittelt und in eine Datei geschrieben … … 456 480 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 457 481 $CURL -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=$c1&body=$b1&timeout=$anzeigetimeout" >> $NULL 482 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 458 483 fi 459 484 fi … … 566 591 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 567 592 $CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 593 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 568 594 fi 569 595 else … … 572 598 #wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 573 599 $CURL "http://$ip/cgi-bin/xmessage?caption=Test%20des%20Scripts&body=Ergebnis:%0a$p20%0a${ADDRESSE20}&timeout=$anzeigetimeout" >> $NULL 600 (touch /tmp/xmessage; sleep $anzeigetimeout; rm /tmp/xmessage) & 574 601 fi 575 602 else
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)