mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
FRITZBOX: attr allowTR064Command
git-svn-id: https://svn.fhem.de/fhem/trunk@8821 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8644b235ce
commit
5ecdb1e5dc
@ -148,6 +148,7 @@ sub FRITZBOX_Initialize($)
|
|||||||
$hash->{GetFn} = "FRITZBOX_Get";
|
$hash->{GetFn} = "FRITZBOX_Get";
|
||||||
$hash->{AttrFn} = "FRITZBOX_Attr";
|
$hash->{AttrFn} = "FRITZBOX_Attr";
|
||||||
$hash->{AttrList} = "allowShellCommand:0,1 "
|
$hash->{AttrList} = "allowShellCommand:0,1 "
|
||||||
|
."allowTR064Command:0,1 "
|
||||||
."boxUser "
|
."boxUser "
|
||||||
."disable:0,1 "
|
."disable:0,1 "
|
||||||
."defaultCallerName "
|
."defaultCallerName "
|
||||||
@ -513,22 +514,22 @@ sub FRITZBOX_Get($@)
|
|||||||
$returnStr .= join "\n", sort values %ringTone;
|
$returnStr .= join "\n", sort values %ringTone;
|
||||||
return $returnStr;
|
return $returnStr;
|
||||||
}
|
}
|
||||||
elsif (lc $cmd eq "tr064response") {
|
elsif (lc $cmd eq "tr064command" && AttrVal( $name, "allowTR064Command", 0 )) {
|
||||||
# http://fritz.box:49000/tr64desc.xml
|
# http://fritz.box:49000/tr64desc.xml
|
||||||
#get Fritzbox tr064response DeviceInfo:1 deviceinfo GetInfo
|
#get Fritzbox tr064command DeviceInfo:1 deviceinfo GetInfo
|
||||||
#get Fritzbox tr064response X_VoIP:1 x_voip X_AVM-DE_GetPhonePort NewIndex 1
|
#get Fritzbox tr064command X_VoIP:1 x_voip X_AVM-DE_GetPhonePort NewIndex 1
|
||||||
#get Fritzbox tr064response X_VoIP:1 x_voip X_AVM-DE_DialNumber NewX_AVM-DE_PhoneNumber **612
|
#get Fritzbox tr064command X_VoIP:1 x_voip X_AVM-DE_DialNumber NewX_AVM-DE_PhoneNumber **612
|
||||||
#get Fritzbox tr064response X_VoIP:1 x_voip X_AVM-DE_DialHangup
|
#get Fritzbox tr064command X_VoIP:1 x_voip X_AVM-DE_DialHangup
|
||||||
#get Fritzbox tr064response WLANConfiguration:3 wlanconfig3 X_AVM-DE_GetWLANExtInfo
|
#get Fritzbox tr064command WLANConfiguration:3 wlanconfig3 X_AVM-DE_GetWLANExtInfo
|
||||||
#get Fritzbox tr064response X_AVM-DE_OnTel:1 x_contact GetDECTHandsetList
|
#get Fritzbox tr064command X_AVM-DE_OnTel:1 x_contact GetDECTHandsetList
|
||||||
#get Fritzbox tr064response X_AVM-DE_OnTel:1 x_contact GetDECTHandsetInfo NewDectID 1
|
#get Fritzbox tr064command X_AVM-DE_OnTel:1 x_contact GetDECTHandsetInfo NewDectID 1
|
||||||
#get Fritzbox tr064response X_AVM-DE_TAM:1 x_tam GetInfo NewIndex 0
|
#get Fritzbox tr064command X_AVM-DE_TAM:1 x_tam GetInfo NewIndex 0
|
||||||
#get Fritzbox tr064response X_AVM-DE_TAM:1 x_tam SetEnable NewIndex 0 NewEnable 0
|
#get Fritzbox tr064command X_AVM-DE_TAM:1 x_tam SetEnable NewIndex 0 NewEnable 0
|
||||||
#get Fritzbox tr064response InternetGatewayDevice:1 deviceinfo GetInfo
|
#get Fritzbox tr064command InternetGatewayDevice:1 deviceinfo GetInfo
|
||||||
#get Fritzbox tr064response LANEthernetInterfaceConfig:1 lanethernetifcfg GetStatistics
|
#get Fritzbox tr064command LANEthernetInterfaceConfig:1 lanethernetifcfg GetStatistics
|
||||||
Log3 $name, 3, "FRITZBOX: get $name $cmd ".join(" ", @val);
|
Log3 $name, 3, "FRITZBOX: get $name $cmd ".join(" ", @val);
|
||||||
|
|
||||||
return "Wrong number of arguments, usage: get $name tr064response service control action [parameterName1 parameterValue1] [parameterName2 parameterValue2] ..."
|
return "Wrong number of arguments, usage: get $name tr064command service control action [parameterName1 parameterValue1] [parameterName2 parameterValue2] ..."
|
||||||
if int @val <3 || int(@val) %2 !=1;
|
if int @val <3 || int(@val) %2 !=1;
|
||||||
|
|
||||||
$returnStr = "Result of TR064 call\n";
|
$returnStr = "Result of TR064 call\n";
|
||||||
@ -550,10 +551,9 @@ sub FRITZBOX_Get($@)
|
|||||||
return FRITZBOX_Exec( $hash, $shCmd );
|
return FRITZBOX_Exec( $hash, $shCmd );
|
||||||
}
|
}
|
||||||
|
|
||||||
my $list = "ringTones:noArg"
|
my $list = "ringTones:noArg";
|
||||||
. " tr064Response";
|
$list .= " tr064Command" if AttrVal( $name, "allowTr064Command", 0 );
|
||||||
$list .= " shellCommand"
|
$list .= " shellCommand" if AttrVal( $name, "allowShellCommand", 0 );
|
||||||
if AttrVal( $name, "allowShellCommand", 0 );
|
|
||||||
return "Unknown argument $cmd, choose one of $list";
|
return "Unknown argument $cmd, choose one of $list";
|
||||||
} # end FRITZBOX_Get
|
} # end FRITZBOX_Get
|
||||||
|
|
||||||
@ -3988,11 +3988,13 @@ sub FRITZBOX_fritztris($)
|
|||||||
Only available if the attribute "allowShellCommand" is set.
|
Only available if the attribute "allowShellCommand" is set.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
<li><code>get <name> tr064Response <service> <control> <action> [[parameterName1 parameterValue1] ...] </code>
|
<li><code>get <name> tr064Command <service> <control> <action> [[parameterName1 parameterValue1] ...] </code>
|
||||||
<br>
|
<br>
|
||||||
Executes TR-064 actions (see <a href="http://avm.de/service/schnittstellen/">API description</a> of AVM and on the <a href="http://fritz.box:49000/tr64desc.xml">box</a>)
|
Executes TR-064 actions (see <a href="http://avm.de/service/schnittstellen/">API description</a> of AVM and on the <a href="http://fritz.box:49000/tr64desc.xml">box</a>)
|
||||||
<br>
|
<br>
|
||||||
Example: <code>get Fritzbox tr064response X_AVM-DE_OnTel:1 x_contact GetDECTHandsetInfo NewDectID 1</code>
|
Example: <code>get Fritzbox tr064Command X_AVM-DE_OnTel:1 x_contact GetDECTHandsetInfo NewDectID 1</code>
|
||||||
|
<br>
|
||||||
|
Only available if the attribute "allowTR064Command" is set.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -4285,11 +4287,13 @@ sub FRITZBOX_fritztris($)
|
|||||||
Muss zuvor über das Attribute "allowShellCommand" freigeschaltet werden.
|
Muss zuvor über das Attribute "allowShellCommand" freigeschaltet werden.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
<li><code>get <name> tr064Response <service> <control> <action> [[parameterName1 parameterValue1] ...] </code>
|
<li><code>get <name> tr064Command <service> <control> <action> [[parameterName1 parameterValue1] ...] </code>
|
||||||
<br>
|
<br>
|
||||||
Führt über TR-064 Aktionen aus (siehe <a href="http://avm.de/service/schnittstellen/">Schnittstellenbeschreibung</a> von AVM und auf der <a href="http://fritz.box:49000/tr64desc.xml">Box</a>)
|
Führt über TR-064 Aktionen aus (siehe <a href="http://avm.de/service/schnittstellen/">Schnittstellenbeschreibung</a> von AVM und auf der <a href="http://fritz.box:49000/tr64desc.xml">Box</a>)
|
||||||
<br>
|
<br>
|
||||||
Beispiel: <code>get Fritzbox tr064Response X_AVM-DE_OnTel:1 x_contact GetDECTHandsetInfo NewDectID 1</code>
|
Beispiel: <code>get Fritzbox tr064Command X_AVM-DE_OnTel:1 x_contact GetDECTHandsetInfo NewDectID 1</code>
|
||||||
|
<br>
|
||||||
|
Muss zuvor über das Attribute "allowTR064Command" freigeschaltet werden.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -4303,6 +4307,11 @@ sub FRITZBOX_fritztris($)
|
|||||||
Freischalten des get-Befehls "shellCommand"
|
Freischalten des get-Befehls "shellCommand"
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
|
<li><code>allowShellCommand <0 | 1></code>
|
||||||
|
<br>
|
||||||
|
Freischalten des get-Befehls "tr064Command"
|
||||||
|
</li><br>
|
||||||
|
|
||||||
<li><code>defaultCallerName <Text></code>
|
<li><code>defaultCallerName <Text></code>
|
||||||
<br>
|
<br>
|
||||||
Standard-Text, der auf dem angerufenen internen Telefon als "Anrufer" gezeigt wird.
|
Standard-Text, der auf dem angerufenen internen Telefon als "Anrufer" gezeigt wird.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user