Skip to content

Documentation for AGI and streaming audio from a process #171

Description

@awwright

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions