mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
FB_CALLMONITOR: optimize TR-064 error handling
git-svn-id: https://svn.fhem.de/fhem/trunk@10667 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
977e604c94
commit
61392b9e7c
@ -1243,8 +1243,8 @@ sub FB_CALLMONITOR_identifyPhoneBooksViaTR064($;$)
|
|||||||
</h:InitChallenge >
|
</h:InitChallenge >
|
||||||
</s:Header>
|
</s:Header>
|
||||||
<s:Body>
|
<s:Body>
|
||||||
<u:SetEnable xmlns:u="urn:dslforum-org:service:X_AVM-DE_OnTel:1">
|
<u:$TR064_service_command xmlns:u="$TR064_service_type">
|
||||||
</u:SetEnable>
|
</u:$TR064_service_command>
|
||||||
</s:Body>
|
</s:Body>
|
||||||
</s:Envelope>
|
</s:Envelope>
|
||||||
EOD
|
EOD
|
||||||
@ -1274,6 +1274,13 @@ EOD
|
|||||||
return "received no data after requesting available phonebooks via TR-064";
|
return "received no data after requesting available phonebooks via TR-064";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless($data =~ /<Nonce>/i and $data =~ /<Realm>/i)
|
||||||
|
{
|
||||||
|
Log3 $name, 3, "FB_CALLMONITOR ($name) - received no valid TR-064 challenge response. aborting";
|
||||||
|
Log3 $name, 5, "FB_CALLMONITOR ($name) - received no valid TR-064 challenge response: $data";
|
||||||
|
return "received no valid TR-064 challenge response. aborting";
|
||||||
|
}
|
||||||
|
|
||||||
Log3 $name, 5, "FB_CALLMONITOR ($name) - received TR-064 challenge response:\n$data";
|
Log3 $name, 5, "FB_CALLMONITOR ($name) - received TR-064 challenge response:\n$data";
|
||||||
|
|
||||||
my ($nonce, $realm);
|
my ($nonce, $realm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user