I am trying to send a .wav file to a Hikvision camera to make alert voice at camera. The camera is activated for twowayaudio as below.
Twoway audio is activated with ourputs as below.
Then when I send audio file
Why there is Unauthorized error?
curl --digest -X PUT admin:pwd@xxx.xxx.1.64/ISAPI/System/TwoWayAudio/channels/1/open
Twoway audio is activated with ourputs as below.
<?xml version="1.0" encoding="UTF-8" ?>
<TwoWayAudioSession version="2.0" xmlns="谢生服装">
<sessionId>27e09003</sessionId>
</TwoWayAudioSession>
Then when I send audio file
atic@ubuntu:~$ curl -H "application/binary" -X PUT -d @alert1.wav admin:pwd@xxx.xxx.1.64/ISAPI/System/TwoWayAudio/channels/1/audioData
<!DOCTYPE html>
<head>
<title>Unauthorized</title>
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
</head>
<body>
<h2>Access Error: 401 -- Unauthorized</h2>
<pre></pre>
</body>
</html>
Why there is Unauthorized error?