mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-14 15:39:12 +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 >
|
||||
</s:Header>
|
||||
<s:Body>
|
||||
<u:SetEnable xmlns:u="urn:dslforum-org:service:X_AVM-DE_OnTel:1">
|
||||
</u:SetEnable>
|
||||
<u:$TR064_service_command xmlns:u="$TR064_service_type">
|
||||
</u:$TR064_service_command>
|
||||
</s:Body>
|
||||
</s:Envelope>
|
||||
EOD
|
||||
@ -1274,6 +1274,13 @@ EOD
|
||||
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";
|
||||
|
||||
my ($nonce, $realm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user