[Asterisk-Dev] Sending the output of Monitor to a TCP port

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon Apr 4 20:27:04 MST 2005


On Monday 04 April 2005 21:59, David Pollak wrote:
> Guys,
>
> I've got an application where I want to send the audio from a
> channel to a socket on another machine.  I want to be able to start
> this listening process at any point in a channel's life.  I've been
> looking at modifying the Manager's "monitor" code so that the
> results of a monitored channel can go to an open FD rather than to
> an actual file. The place where I'm getting all tangled up is in
> ast_filestream.  It seems that ast_filestream has a set of special
> purpose fields.  Rather than adding yet another field or two (a
> flag for "this is going to a file descriptor" and the FD itself) I
> figured I'd ping you all and see if you had any suggestions on how
> to achieve my goal without surgery to ast_filestream.
>
> Thoughts and input would be greatly appreciated.

Just create a new format, with a particular extension (say .tcp), and
you can do whatever you like when Asterisk opens a file with that
particular format extension.  The pathname could even be parameters
(i.e. "1.2.3.4:10010.tcp").

-- 
Tilghman



More information about the asterisk-dev mailing list