Re: FritzBox 5.5 per cuxd steuern
Verfasst: 18.12.2017, 16:32
sorry, hab meinen Fehler gefunden, hatte nicht gesehen, dass sich ab OS6.3 etwas ändert. Mit den neuen Dateien funktioniert es
Heimautomation mit ELV HomeMatic und FHZ Funk-Hauszentralen
https://homematic-forum.de/forum/
Code: Alles auswählen
#!/bin/bash
credentials="ccu:123456"
FB="fritz.box:49000"
Rufnummer="**9";
curl -4 -k --anyauth -u "${credentials}" \
"http://${FB}/upnp/control/x_voip" \
-H 'Content-Type: text/xml; charset="utf-8"' \
-H 'SoapAction: urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialNumber' \
-d '<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:X_AVM-DE_DialNumber xmlns:u="urn:dslforum-org:service:X_VoIP:1">
<NewX_AVM-DE_PhoneNumber>'${Rufnummer}'</NewX_AVM-DE_PhoneNumber>
</u:X_AVM-DE_DialNumber>
</s:Body>
</s:Envelope>'
Code: Alles auswählen
#!/bin/bash
credentials="ccu:123456"
FB="fritz.box:49000"
Rufnummer="**9";
curl -4 -k --anyauth -u "${credentials}" \
"http://${FB}/upnp/control/x_voip" \
-H 'Content-Type: text/xml; charset="utf-8"' \
-H 'SoapAction: urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialHangup' \
-d '<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:X_AVM-DE_DialHangup xmlns:u="urn:dslforum-org:service:X_VoIP:1"></u:X_AVM-DE_DialHangup>
</s:Body>
</s:Envelope>'