Audio socket in asterisk 20 with ws

I want to create AI agent with AWS server. But facing error when going to user AudioSocket.
[ai_bot_outgoing]
exten => _X.,1,Noop(AI Bot Outgoing Call :: ${EXTEN})
same => n,Answer()
same => n,Set(UUID=${UUID()})
same => n,AudioSocket(${UUID},127.0.0.1:5050)

Below Error facing
[Mar 17 11:47:37] WARNING[49712][C-00000018]: res_audiosocket.c:264 ast_audiosocket_receive_frame: Received non-audio AudioSocket message

[Mar 17 11:47:37] ERROR[49712][C-00000018]: res_audiosocket.c:297 ast_audiosocket_receive_frame: Failed to read data from AudioSocket

[Mar 17 11:47:37] ERROR[49712][C-00000018]: app_audiosocket.c:207 audiosocket_run: Failed to receive frame from AudioSocket message forchannel PJSIP/SM00917969511216-0000001b

Does the format of the data you’re sending match the packet structure that Asterisk expects?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.