Im trying to make an API voice in order to control calls from other servers with the possibiity of using 2 scripts that I have on my Asterisk 16 server (one for TTS and other for STT)
For example, an incoming call:
- Asterisk server to other server —> Hey! there is and incoming call and the client says that wants to talk with Tom. (using speech-to-text that I have already)
- Other server to asterisk server ----> Ok, say to the client “sorry Tom is busy now, try again in a few minutes” and hungup de call (using text-to-speech that I have already)
Im trying to do this with ARI and websockets. Well, the first step is OK, via wscat and stasis the other server can know what client said in text format. I send that information to [args] statis vía dialplan, and then the other server can see this in the statis start/stop debug.
But now, I don’t know how the other server can use my TTS script (.agi) and order me to say that on the channel.
I tried to do the hello-world with curl and it works fine, maybe can I do the same with the second step?
Anyway, Im not sure if Im focusing good this project with ARI, can u help me?
Thanks in advance,