----- Original Message ----- From: "Tzafrir Cohen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, April 27, 2007 12:55 PM
Subject: Re: [asterisk-users] Problem of configuring musiconhold.conf file


On Fri, Apr 27, 2007 at 12:31:16PM -0400, gc wrote:
Asterisk 1.2.17

When try to play moh, I can only use old format in musiconhold.conf file to play moh like this:

[moh_files]
default => /var/lib/asterisk/mohmp3,r

If I use the new format like this:

[default]
mode=quietmp3
directory=/var/lib/asterisk/mohmp3

I hear no music at all.

Can anybody tell me what is wrong?

ls -l /var/lib/asterisk/mohmp3

Do you see any relevant messages in the CLI when a channel is on hold?

Here is the message from logger:
Apr 27 14:09:41 VERBOSE[11172] logger.c: -- Executing Wait("SIP/lycin.net-b79332f8", "2") in new stack Apr 27 14:09:41 DEBUG[11088] chan_sip.c: Stopping retransmission on '[EMAIL PROTECTED]' of Response 1: Match Found Apr 27 14:09:41 DEBUG[11172] channel.c: Generator got voice, switching to phase locked mode Apr 27 14:09:41 DEBUG[11172] channel.c: Scheduling timer at 0 sample intervals Apr 27 14:09:43 VERBOSE[11172] logger.c: -- Executing Queue("SIP/lycin.net-b79332f8", "queue1|t") in new stack Apr 27 14:09:43 VERBOSE[11172] logger.c: -- Started music on hold, class 'default', on channel 'SIP/lycin.net-b79332f8' Apr 27 14:09:43 DEBUG[11172] channel.c: Scheduling timer at 160 sample intervals
Apr 27 14:09:43 DEBUG[11172] app_queue.c: Everyone is busy at this time
Apr 27 14:09:43 DEBUG[11172] channel.c: Generator got voice, switching to phase locked mode Apr 27 14:09:43 DEBUG[11172] channel.c: Scheduling timer at 0 sample intervals
Apr 27 14:09:43 DEBUG[11172] channel.c: Auto-deactivating generator
Apr 27 14:09:43 VERBOSE[11172] logger.c: -- Stopped music on hold on SIP/lycin.net-b79332f8 Apr 27 14:09:43 DEBUG[11172] channel.c: Scheduling timer at 0 sample intervals
Apr 27 14:09:48 DEBUG[11172] app_queue.c: Everyone is busy at this time
Apr 27 14:09:53 DEBUG[11172] app_queue.c: Everyone is busy at this time

What is the 'Auto-deactivation generator' ? It seems that this one cause moh to stop immediatly.

Gary Chen _______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to