nadirhamid / asterisk-audiofork

Stream Asterisk audio over Websockets
GNU General Public License v2.0
158 stars 60 forks source link

how to receive message from web socket #20

Open khongquoctoan opened 1 year ago

khongquoctoan commented 1 year ago

I have a scenario where I send a raw audio stream via websocke, then the web socket receives and responds to the url record for asterisk to receive and play that url record. Please guide me how to get url record file from websocket under diaplan. thank you team

nadirhamid commented 1 year ago

Hello @khongquoctoan,

It is not possible to receive messages at this point. However, you can send the messages to another service which could use one of the Asterisk APIs to play the audio file back to the channel. For example, you may want to look into using AMI for this or something similar.

Let me know if you have any other questions or need more info.

Thanks