Node.js serving audiosocket to Asterisk 18

Hi, i am trying to dial audiosocket from Asterisk 18.

I need this audiosocket at different geo location, so tcp socket is ok for me, chan_console etc. i think is not solution for me.

I wrote node.js test of how to serve this audio socket

but i get these errors

Executing [1002@from-internal:1] Verbose("PJSIP/6001-0000000f", ""Call to AudioSocket via Channel interface"") in new stack
Call to AudioSocket via Channel interface
    -- Executing [1002@from-internal:2] Answer("PJSIP/6001-0000000f", "") in new stack
       > 0x7f095403eff0 -- Strict RTP learning after remote address set to:
    -- Executing [1002@from-internal:3] AudioSocket("PJSIP/6001-0000000f", "40325ec2-5efd-4bd3-805f-53576e581d13,") in new stack
       > 0x7f095403eff0 -- Strict RTP switching to RTP target address as source
[Mar 24 00:48:38] WARNING[2799][C-0000000e]: res_audiosocket.c:264 ast_audiosocket_receive_frame: Received non-audio AudioSocket message
[Mar 24 00:48:38] ERROR[2799][C-0000000e]: res_audiosocket.c:297 ast_audiosocket_receive_frame: Failed to read data from AudioSocket
[Mar 24 00:48:38] ERROR[2799][C-0000000e]: app_audiosocket.c:206 audiosocket_run: Failed to receive frame from AudioSocket message forchannel PJSIP/6001-0000000f

Is there a better documentation for audiosocket or any information how to implement it? Is it a problem with headers?

Thanks for help

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