I'm trying to setup my asterisk system for the least overhead as possible. My understanding (and experience with other systems) leads me to believe I can run any MOH using a certain class through a single 'player' as opposed to starting an independent stream for each MOH instance. However, try as I might, I can not get it to work. When I throw two calls into a queue, they are both on different seconds of a song, or on different songs. Here is my MOH config: [general] cachertclasses=yes [Test] mode=files directory=/var/lib/asterisk/moh/Test/ [default] mode=files directory=/var/lib/asterisk/moh/ Any thoughts on what I might be doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100305/9721da2b/attachment.htm
Forgot to include: I'm running 1.6.2.5 On Fri, Mar 5, 2010 at 5:29 PM, Matt <mhoppes at gmail.com> wrote:> I'm trying to setup my asterisk system for the least overhead as possible. > > My understanding (and experience with other systems) leads me to believe I > can run any MOH using a certain class through a single 'player' as opposed > to starting an independent stream for each MOH instance. However, try as I > might, I can not get it to work. > > When I throw two calls into a queue, they are both on different seconds of > a song, or on different songs. Here is my MOH config: > > [general] > cachertclasses=yes > [Test] > mode=files > directory=/var/lib/asterisk/moh/Test/ > [default] > mode=files > directory=/var/lib/asterisk/moh/ > > Any thoughts on what I might be doing wrong? >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100305/d1db6139/attachment.htm
On Fri, Mar 5, 2010 at 11:29 PM, Matt <mhoppes at gmail.com> wrote:> > I'm trying to setup my asterisk system for the least overhead as possible. > > My understanding (and experience with other systems) leads me to believe I can run any MOH using a certain class through a single 'player' as opposed to starting an independent stream for each MOH instance.? However, try as I might, I can not get it to work.If the MOH files have the same codec as the calls, I don't really think you need to think of this as resource demanding. Normal MOH from files only opens the files and reads a chunk of data, and if possible sends it directly to the client. This means that there is no advanced "player" in use. If your machine have reasonable amount of ram installed, the files also will automatically be cached in your ram by your operating system. So it's really just transactions of data chunks from your ram to a socket. Doesn't really matter if all channels read from the same place inside the file, or if they start from the beginning for each channel. If you used a single external program to convert for example a web radio to 8khz audio, then you would get all those calls retrieving data from the same place. But this would be much more prone to errors, and more resource demanding than pre-encoded audio files in a directory like you already do. H?kon