[Asterisk-Users] mpg123 home music from stream

Ronan Eckelberry asterisk at tlchosting.com
Thu Mar 24 07:48:07 MST 2005


As does mine.  I have multiple streams....person is on hold....streams.
They hang up....never drops the connection.  Never lost music.  Cept for
once when the stream server went down.

-Ronan


On Mon, 2005-03-21 at 15:24 -0500, Matt wrote:
> I'm not having this issue... YES... it DOES stop when the user hangs
> up... however, when I put someone back on hold (or go into a meetme
> conference).. it will flush the buffer (takes about a minute or two)
> and then once that has finished, it will begin playing the stream and
> pickup right where it left off... so it seems to work fine for me.
> 
> 
> On Mon, 21 Mar 2005 11:59:51 -0700, Ken Godee <ken at perfect-image.com> wrote:
> > Matt wrote:
> > 
> > > Really?   I just tried it and WHEN it's working.. it is streaming..
> > > and even when I hang up it keeps mpg123 up and running in the
> > > background.
> > 
> > Yes, doing a "ps/top" will show mpg123 processes but
> > watch the precentage of cpu usage die to 0%.
> > Asterisk may at any time have several mpg123 processes
> > running, but they may all be idle.
> > 
> > The way asterisk interacts with playing
> > mp3's is very specific in how it plays and then
> > saves cpu cycles by stopping the mp3 from playing
> > (when ever there are no active channels)
> > but leaving the mpg123/process in memory.
> > 
> > This can be show even with normal mp3 moh, by
> > having several mp3's and hanging up your
> > test call to moh, then several minutes later
> > dial back to your test moh and you'll still
> > be on the same song. asterisk stops mp3 play
> > to conserve cpu cycles and restarts when called
> > on.
> > 
> > Watch the connections on your streaming server
> > 30-180 seconds after hanging up your test call to
> > moh. Dial back in and watch no new streaming
> > connections are made. Listen to your moh and
> > observe your actually in a buffered mpg123 loop.
> > 
> >
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list