IP Notification To Audio Devices Loudspeaker from AXIS

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?
.

Try sending the command without the “?” in the Message -

Message location=logo.mp3&repeat=0&volume=100

Thanks Michalis
It seems to be OK without the ?. Thanks for that
What I may see now is that if the Authentication policy: is Basic I can communicate through the Mobotix cam, but not through the Axis Companion that may send Voice over IP to talk to the speaker directly. If I d
disable the digest the communication with Mobotix is back and I do not get error 401.

Digest must be enable to the axis loud speaker to communicate with their applications. So I wish to know if we may communicate through digest in the HTTP ip notifications

I’m having the same issue but with a newer Axis speaker, the C1310. I have the IP Notify setup correctly as mentioned above but am getting an HTTP 401 error. It seems that something has changed on the Axis side with the newer model. I had this working with the Axis C3003 and simply copied the settings over to the current setup. I called Axis and they could not figure out why the camera was returning the error. Here is the IP Notify log:
Sending IP message using profile “Axis” (this may take up to one minute!):
INF: loading notify profile ip_5efcc550 …
INF: name given by user is Axis …
INF: set profile send order “parallel”
INF: set profile address “192.168.0.106:80”
INF: set profile data type “msg”
INF: set profile message “location=trespassing.mp3&repeat=0&volume=40”
INF: set profile http version: “HTTP/1.0”
INF: set profile http cgi path: “/axis-cgi/playclip.cgi”
INF: set profile http authorize: “USER:PASSWORD”
INF: force generation of current JPEG …
INF: [hdl#1] connection established (ip=192.168.0.106, 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: Mon, 06 Jul 2020 03:37:00 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_B8A44F040ABD”, nonce=“R15jlr2pBQA=12a523e74353ae680bc1392aef92181d54d6eb9d”, 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.0.106:80 (HTTP code 401)!

Hello Ilian
Try to remove the repeat=0&volume=40 part from the whole message location=trespassing.mp3&repeat=0&volume=40
Also, change the Basic and Digest to only Basic in the network communications. You might need to go to the advance menu. Ask more if you wish or contact me in WhatsUp. I can send you my mob if you send the email at info @gnems.gr.
Also, download the latest firmware for the axis loudspeaker

The Authentication Policy change from Digest to Basic is in the “plain Config” under Network HTTP :wink: