-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Improvement Description
I tried posting this to asterisk-dev but my email got bounced.
I’m trying to figure out how to write a program that an extension can run to receive arbitrary audio, e.g. from sox or ffmpeg, or some other CGI-like configuration that connects a dialed extension to a process.
I would guess this is what System() does, but it doesn’t seem to do anything with the stdout.
So then I guessed this is what AGI is for, since CGI is a way of providing an HTTP response by calling a new process, passing message bodies on stdin/stdout. But the documentation contains nothing on how to actually write an AGI process. Writing the audio data to stdout on the process just produces a silent call.
If I go to the documentation website and I type “AGI” into the search, it gives 6-8 identical search results. And none of them have any useful content!
Is there a way to connect a call to a process?
Can usage details AGI be added to the documentation?
Also, the “asterisk -r” or “rasterisk” shell exits when I press ^C, even if the line is filled with text. This is somewhat jarring as no other shell immediately exits like this, usually ^C will clear the line. ^D should exit the shell, or maybe ^C if pressed twice on an empty line.