I’d like to preface this with an apology, my entire topic is fairly silly and the entirety of this site and asterisk in general is a really professional and powerful community. I am sincerely sorry to bother you with help for this, however all of my resources point toward asterisk being the solution and I cannot figure it out along.
I want to interact with a discord server using a voip phone, and eventually old school phones from the thrift store with a voip adapter. I have the basic node.js bot logic down, it joins a specific discord channel and sends audio from a local mic, while playing any audio in the channel over a local speaker. Asterisk is installed on the same machine, and I’ve configured a pjsip server that my cheap voip phone can connect too. I’ve got a rough dialplan set so when a specific extension is dialed a stasis app is launched. My current thinking is that I can send/rec audio through rtp in some fashion, and this may be misguided.
This is my first question. For my sanity, is this possible with asterisk, and am I approaching it with the right method?
My second question is more complex and irrelevant if this isn’t the right idea. In the stasis app, I’ve been trying to create an audio bridge, move the channel in there and hopefully find a way to get the audio out (I haven’t got that far). I’ve tried this with the node-asterisk-ami and cobbling url’s together in python(i know more python than node.js) and ive reached the same issue in both: joining the channel and bridge gives me 404: resource not found.
Thank you sincerely for reading this, I can follow up with more detailed logs if this method is actually viable. If it’s not viable, I would sincerely appriciate being pointed in the right direction.