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

Kevin P. Fleming kpfleming at digium.com
Mon Apr 4 21:07:54 MST 2005


David Pollak wrote:

> 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.

Don't even bother; use the infrastructure recently added to support 
app_chanspy; it's the most efficient (and correct) way to get a copy of 
a channel's audio streams.



More information about the asterisk-dev mailing list