Hello all
I have an axis Loudspecker C3003-E that can be triggered by CGI commands
I can trigger it normally through the browser.
http://user:passwd@192.168.xxx.xxx/axis-cgi/playclip.cgi?location=camera_clicks.mp3&repeat=0&volume=100
When I am trying to trigger through the camera although I Get HTTP communication error 401.
The command is:
IP Notify Type Custom Configuration
Destination Address 192.168.xxx.xxx:80
Sequential to all
Data Protocol HTTP/1.0 Request
CGI path /axis-cgi/playclip.cgi
HTTP Authentication username:passwd
Data Type Plain Text
Message ?location=logo.mp3&repeat=0&volume=100
Send Port 0
My results window is following bellow:
Network Test Log
Sending IP message using profile “Axis_LoudSpeacker” (this may take up to one minute!):
INF: loading notify profile ip_5ef4ce60 …
INF: name given by user is Axis_LoudSpeacker …
INF: set profile send order “sequential” INF: set profile address “192.168.200.66:80” INF: set profile data type “msg”
INF: set profile message “?location=logo.mp3&repeat=0&volume=100”
INF: set profile http version: “HTTP/1.0”
INF: set profile http cgi path: “/axis-cgi/playclip.cgi”
INF: set profile http authorize: “user:passwd”
INF: force generation of current JPEG …
INF: [hdl#1] connection established (ip=192.168.200.66, port=80, fd=2) …
INF: reached data limit of 512 bytes … (stop reading)
INF: [hdl#1] HTTP-Headers: HTTP/1.1 401 Unauthorized INF: [hdl#1] HTTP-Headers: Date: Fri, 26 Jun 2020 10:45:51 GMT INF: [hdl#1] HTTP-Headers: Server: Apache/2.4.41 (Unix) OpenSSL/1.1.1d
INF: [hdl#1] HTTP-Headers: WWW-Authenticate: Digest realm=“AXIS_ACCC8E86A09D”, nonce=“iqWoafqoBQA=4ff0936a3b41b9b7e58736f0df7f34e585fcd28d”, algorithm=MD5, qop=“auth” INF: [hdl#1] HTTP-Headers: Content-Length: 381 INF: [hdl#1] HTTP-Headers: Connection: close
INF: [hdl#1] HTTP-Headers: Content-Type: text/html; charset=iso-8859-1
Result:
ERR: Unauthorized HTTP request to 192.168.200.66:80 (HTTP code 401)!
My Axis C3003-E settings are
HTTP authentication Policy is Basic&Digest
|Authentication policy set:YES
|Authentication with qop:YES
If I set HTTP authentication Policy in Basic ten my results are the following
INF: loading notify profile ip_5ef4ce60 …
INF: name given by user is Axis_LoudSpeacker …
INF: set profile send order “sequential”
INF: set profile address “192.168.200.66:80”
INF: set profile data type “msg”
INF: set profile message “?location=logo.mp3&repeat=0&volume=100”
INF: set profile http version: “HTTP/1.0”
INF: set profile http cgi path: “/axis-cgi/playclip.cgi”
INF: set profile http authorize: “user:passwd”
INF: force generation of current JPEG …
ERR: [hdl#1] Connection refused(111): connect to 192.168.200.66:80 failed!
INF: [hdl#1] connection established (ip=192.168.200.66, port=80, fd=4) …
INF: reached data limit of 512 bytes … (stop reading)
INF: [hdl#1] HTTP-Headers: HTTP/1.1 200 OK
INF: [hdl#1] HTTP-Headers: Date: Fri, 26 Jun 2020 10:51:33 GMT
INF: [hdl#1] HTTP-Headers: Server: Apache/2.4.41 (Unix) OpenSSL/1.1.1d
INF: [hdl#1] HTTP-Headers: Cache-Control: no-cache, no-store, max-age=0
INF: [hdl#1] HTTP-Headers: Pragma: no-cache
INF: [hdl#1] HTTP-Headers: Expires: Thu, 01 Dec 1994 16:00:00 GMT
INF: [hdl#1] HTTP-Headers: Vary: Accept-Encoding
INF: [hdl#1] HTTP-Headers: Connection: close
INF: [hdl#1] HTTP-Headers: Content-Type: text/plain
INF: notification to 192.168.200.66:80 has been sent [msg okay=1].
INF: Server 192.168.200.66:80 responsed HTTP code 200.
Result:
INF: sending message succeed. 1x221 bytes in 13.886s.
Nevertheless, the audio does not come to my loudspeaker as from the browser.
Since MOBOTIX has worked with PTZ cams might be possible for someone to have tried this scenario of integration ever?
.