Gigaset Webinterface automatisieren möglich?

wedok

Neuer User
Mitglied seit
12 Jul 2011
Beiträge
28
Punkte für Reaktionen
0
Punkte
1
Hallo,
ich möchte am Ende, dass mein Tomato Router folgendes macht:
(Am Ende steht zwar "fehlgeschlagen" aber einen Seitenrefresh später würde er zeigen, dass er online ist)
Leider habe ich null plan davon.
Tomato ist ja openwrt Linux und ... kein Plan ob man das mit curl oder so hin bekäme.

Quasi, Einloggen, dann die Telefonie Seite laden, zweimal auf "aktiv" klicken und dann am Ende "abmelden".
Ich kenne diesen JDownloader Kram und da gibts so Automatisierungsgedöns um einen Reconnect in Router Webinterfaces durchzuführen, mit so na Art "Webseitenrekorder"
Sowas dann für mein Telefon.
Mit dem Rekorder rausfinden was curl dann machen muss.

Der Sinn dahinter ist, das sobald ein pppoe Reconnect im Router stattfindet, dass automatisierte System das Telefon wieder online bringt.
Meistens funktionierts auch so innerhalb von Minuten aber eben wiederum nicht.
Selbst nach 10 Minuten war das Telefon noch offline.

Das wäre quasi die letzte Baustelle um das Gigaset Teil wirklich zu perfektionieren.

Wenn jemand was weiss, wäre ich für Tips sehr dankbar. :)
 
Zuletzt bearbeitet:

sonyKatze

Aktives Mitglied
Mitglied seit
6 Aug 2009
Beiträge
2,525
Punkte für Reaktionen
225
Punkte
63
Weil ich die Frage nicht wirklich verstehe, brabbele ich mal so vor mich hin:
  • PPPoE-Reconnect selbst verlegen, und dann Zeitschalt-Uhr an Gigaset GO-Box
  • Aktor + Strom-Leiste + Gigaset GO-Box
  • STUN-Server in der Gigaset GO-Box eintragen, Timeout kleiner setzen
  • VoIP-Proxy in Router statt Gigaset GO-Box direkt mit VoIP/SIP-Anbieter verbinden
  • Gigaset-PRO Wiki abgesucht, ob es eine Web-API gibt? Dann ginge direkt cURL.
Die Frage ist, wie fit Du in Programmier-Sprachen bzw. Skript-Sprachen bist und welche Du bevorzugst. Ich mache solche Dinge (in Minuten) mittels Java und HtmlUnit. Quasi für jede Sprache existieren solche Web-Click-Projekte.
 

wedok

Neuer User
Mitglied seit
12 Jul 2011
Beiträge
28
Punkte für Reaktionen
0
Punkte
1
Also JDownloader schaffts. :)
Folgendes "LiveHeader" Skript funktioniert einwandfrei:
(Das wo XXXXX steht sind vermutlich verschlüsselte Passwörter oder so, daher geXXXt.)
Code:
HTTP Request GET http://your.router.ip/

HTTP Request GET http://your.router.ip/login.html

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/login.js

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request POST http://your.router.ip/login.html
    Parameter #1:     null    =    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

HTTP Request GET http://your.router.ip/home.html

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request GET http://your.router.ip/settings_lan.html

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request GET http://your.router.ip/scripts/settings_lan.js

HTTP Request GET http://your.router.ip/settings_telephony_voip_multi.html

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request GET http://your.router.ip/scripts/settings_telephony_voip_multi.js

HTTP Request POST http://your.router.ip/settings_telephony_voip_multi.html
    Parameter #1:     null    =    XXXXXXXXXXXXXXXXXXXXXXXX

HTTP Request GET http://your.router.ip/settings_telephony_voip_multi.html

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/settings_telephony_voip_multi.js

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request POST http://your.router.ip/settings_telephony_voip_multi.html
    Parameter #1:     null    =    XXXXXXXXXXXXXXXXXXXXXXXX

HTTP Request GET http://your.router.ip/settings_telephony_voip_multi.html

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/settings_telephony_voip_multi.js

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request GET http://your.router.ip/logout.html

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/help.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/navtools.js

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request GET http://your.router.ip/login.html

HTTP Request GET http://your.router.ip/scripts/global.js

HTTP Request GET http://your.router.ip/scripts/tools.js

HTTP Request GET http://your.router.ip/scripts/navnodes.js

HTTP Request GET http://your.router.ip/scripts/blocks.js

HTTP Request GET http://your.router.ip/scripts/login.js

Hier nochmal ausführlicher (kommt wenn man bei JD das Skript bearbeitet):

Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        GET / HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /login.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/login.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST postraw="true"]]]
        POST /login.html HTTP/1.1
        Host: %%%routerip%%%

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /home.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /settings_lan.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/settings_lan.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/settings_telephony_voip_multi.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST postraw="true"]]]
        POST /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%

XXXXXXXXXXXXXXXXXXXXXXXX
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/settings_telephony_voip_multi.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST postraw="true"]]]
        POST /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%

XXXXXXXXXXXXXXXXXXXXXXXX
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/settings_telephony_voip_multi.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /logout.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/help.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navtools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /login.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/global.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/tools.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/navnodes.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/blocks.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /scripts/login.js HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

[[[/HSRC]]]

Ok, JD kann nun mein Telefon reconnecten nur bringt mich das nicht wirklich weiter.
Will ja, das mein Tomato Router das macht bei "Wan UP", vermutlich mit curl.
Aber wie schreibe ich das da oben um?
Ich hab leider null Plan vom programmieren. :(

Clipboard01.jpg

Bild gemäß Boardregeln geschrumpft by stoney
 
Zuletzt bearbeitet von einem Moderator:

wedok

Neuer User
Mitglied seit
12 Jul 2011
Beiträge
28
Punkte für Reaktionen
0
Punkte
1
Auf diese Dinge gekürzt:
Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST postraw="true"]]]
        POST /login.html HTTP/1.1
        Host: %%%routerip%%%

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST postraw="true"]]]
        POST /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%

XXXXXXXXXXXXXXXXXXXXXXXX
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST postraw="true"]]]
        POST /settings_telephony_voip_multi.html HTTP/1.1
        Host: %%%routerip%%%

XXXXXXXXXXXXXXXXXXXXXXXX
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /logout.html HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]
[[[/HSRC]]]
Code:
HTTP Request POST http://your.router.ip/login.html
    Parameter #1:     null    =    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

HTTP Request POST http://your.router.ip/settings_telephony_voip_multi.html
    Parameter #1:     null    =    XXXXXXXXXXXXXXXXXXXXXXXX

HTTP Request POST http://your.router.ip/settings_telephony_voip_multi.html
    Parameter #1:     null    =   XXXXXXXXXXXXXXXXXXXXXXXX

HTTP Request GET http://your.router.ip/logout.html
Aber wie mit cURL. :)
 
Zuletzt bearbeitet:

wedok

Neuer User
Mitglied seit
12 Jul 2011
Beiträge
28
Punkte für Reaktionen
0
Punkte
1
Juhuuuuu.
Es läuft.
Code:
curl "http://192.168.X.X/login.html" --data-raw "language=X&password=XXXX" -c /dev/null
curl "http://192.168.X.X/settings_telephony_voip_multi.html" --data-raw "account_id=0" -b /dev/null
curl "http://192.168.X.X/settings_telephony_voip_multi.html" --data-raw "account_id=0" -b /dev/null
curl "http://192.168.X.X/logout.html" -b /dev/null
unter Tomato/Administration/Scripts/WAN Up einfügen und jedesmal wenn WAN Up geht, wirds Telefon ebenfalls neu verbunden. :)
 
Zuletzt bearbeitet:

Erhalten Sie 3CX für 1 Jahr kostenlos!

Gehostet, in Ihrer privaten Cloud oder on-Premise! Ganz ohne Haken. Geben Sie Ihren Namen und Ihre E-Mail an und los geht´s:

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.
oder via