[Asterisk-Users] MP3 streams for MOH: idea

James Sharp jsharp at psychoses.org
Sat Sep 6 19:14:23 MST 2003


>
> [thread change, different topic]
>>is
> How about a little tiny program that connects to a remote host, grabs
> the contents of an MP3 stream, and pushes it into a FIFO locally?  It
> would be a raw TCP-to-FIFO stream, so mpg123 would be able to digest
> it as if it was a local file.  The program would take two arguments:
> remote hostname/IP and port, and then the file to which the output
> would be sent.  I don't know how mpg123 handles blocking...

Is there any particular reason (rather than not having time to code one
and embed it into *) why we can't have our own in-thread connection to an
MP3 stream or file, rather than spawning off a process (fork() is
expensive as compared to pthread_create()) of mpg123 to play the
stream/file?

It seems that this spawning/hoping the process dies cleanly is a thorn in
a few people's side.



More information about the asterisk-users mailing list