Hi folks, I have been wondering about different processor loads and which might be a more efficient way of doing this.... Currently we can set up a shoutcast station as an extension exten => 3334,1,MP3Player,http://radio.nq.net:8000/ Now I was wondering if there was a way we can add a music extension to a conference (send only) and then set up an extension into the conference as listen only ?? if so, how ? and if it could be done, which would be lesser load on the machine ?? One other point.... Is there some way to ensure that certain setups are done on a startup or restart ?? the example is that the music gets added to the conference.... Gary .
Gary, I'm trying something similar to that - direct music extension: but unfortunately I'm not getting any sound - how to get it in a conference is probably a little different - hope this help - exten => 6005,1,Wait,2 exten => 6005,2,Answer ;exten => 6005,3,MP3Player(/var/lib/asterisk/mohmp3/sample-hold.mp3) exten => 6005,3,SetMusicOnHold,default exten => 6005,4,MusicOnHold The process starts - but i don't see mpg123 as a process when doing - ps -ef -- Executing Wait("IAX[steven@192.168.1.108:5036]/330", "2") in new stack -- Executing Answer("IAX[steven@192.168.1.108:5036]/330", "") in new stack -- Executing SetMusicOnHold("IAX[steven@192.168.1.108:5036]/330", "default") in new stack -- Executing MusicOnHold("IAX[steven@192.168.1.108:5036]/330", "") in new stack -- Started music on hold, class 'default', on IAX[steven@192.168.1.108:5036]/330 On Sun, 2003-05-18 at 08:49, Gary wrote:> Hi folks, > > I have been wondering about different processor loads and which might > be a more efficient way of doing this.... > > Currently we can set up a shoutcast station as an extension > > exten => 3334,1,MP3Player,http://radio.nq.net:8000/ > > Now I was wondering if there was a way we can add a music extension to > a conference (send only) and then set up an extension into the > conference as listen only ?? > > if so, how ? and if it could be done, which would be lesser load on the > machine ?? > > One other point.... > > Is there some way to ensure that certain setups are done on a startup > or restart ?? > > the example is that the music gets added to the conference.... > > > Gary > . > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
A kludge would be to use the auto-call features within Asterisk to "fake" an inbound call with an MP3 channel in it into a conference. See "/usr/src/asterisk/sample.call". For audio control, I would suggest that you set up a shoutcast reflector on your local system so you can have an external system do re-connects without interrupting the call if the network flakes out for short periods of time. Further hints would be to put an absolute timeout on the call at an hour or so, and then have a script re-initiate the call at the end of the timeout. That way, if things stop working, there is an auto-renew feature that sets things straight. You can add inbound lines to conferences as "muted" - look at the docs. JT>Hi folks, > >I have been wondering about different processor loads and which might >be a more efficient way of doing this.... > >Currently we can set up a shoutcast station as an extension > >exten => 3334,1,MP3Player,http://radio.nq.net:8000/ > >Now I was wondering if there was a way we can add a music extension to >a conference (send only) and then set up an extension into the >conference as listen only ?? > >if so, how ? and if it could be done, which would be lesser load on the >machine ?? > >One other point.... > >Is there some way to ensure that certain setups are done on a startup >or restart ?? > >the example is that the music gets added to the conference.... > > Gary
I think you could use the "Local" channel driver to do this, combined with the outbound interface. See sample.call and use these settings: Channel: Local/3334@default (or whatever context) Application: MeetMe Data: 1234 (or whatever room) Mark On Sun, 18 May 2003, Gary wrote:> Hi folks, > > I have been wondering about different processor loads and which might > be a more efficient way of doing this.... > > Currently we can set up a shoutcast station as an extension > > exten => 3334,1,MP3Player,http://radio.nq.net:8000/ > > Now I was wondering if there was a way we can add a music extension to > a conference (send only) and then set up an extension into the > conference as listen only ?? > > if so, how ? and if it could be done, which would be lesser load on the > machine ?? > > One other point.... > > Is there some way to ensure that certain setups are done on a startup > or restart ?? > > the example is that the music gets added to the conference.... > > > Gary > . > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >