Re: [asterisk-users] Music on Hold issue with asterisk 1.4.2

2007-04-28 Thread Dave Miller
Steve Finkelstein wrote on 4/28/07 12:21 AM:

 my musiconhold.conf:
 
 [default]
 mode=quietmp3
 directory=/var/lib/asterisk/mohmp3
 
 and finally in my extensions.conf:
 
 asterisk-1.4.2 # grep 100 /etc/asterisk/extensions.conf
 exten = 100,1,MusicOnHold(30)
 exten = 100,2,Hangup
 
 When I dial 100 however, I receive the following:

 [Apr 28 00:17:33] WARNING[30975]: res_musiconhold.c:947
 local_ast_moh_start: No class: 30

The parameter to MusicOnHold is the class of music to play.  You have no
class named 30 just like the error says. :)

You do have a class named default in the config snippet you pasted, so
MusicOnHold(default) should work.

-- 
Dave Miller   http://www.justdave.net/
System Administrator, Mozilla Corporation  http://www.mozilla.com/
Project Leader, Bugzilla Bug Tracking System  http://www.bugzilla.org/
___
--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


Re: [asterisk-users] Music on Hold issue with asterisk 1.4.2

2007-04-28 Thread Steve Finkelstein
Interesting, that works David.

I got the example directly out of the published VoIP Hacks book and
followed instructions step by step.

Either way, thanks much. :-)

- sf

Dave Miller wrote:
 Steve Finkelstein wrote on 4/28/07 12:21 AM:
 
 my musiconhold.conf:

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

 and finally in my extensions.conf:

 asterisk-1.4.2 # grep 100 /etc/asterisk/extensions.conf
 exten = 100,1,MusicOnHold(30)
 exten = 100,2,Hangup

 When I dial 100 however, I receive the following:
 
 [Apr 28 00:17:33] WARNING[30975]: res_musiconhold.c:947
 local_ast_moh_start: No class: 30
 
 The parameter to MusicOnHold is the class of music to play.  You have no
 class named 30 just like the error says. :)
 
 You do have a class named default in the config snippet you pasted, so
 MusicOnHold(default) should work.
 
___
--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


[asterisk-users] Music on Hold issue with asterisk 1.4.2

2007-04-27 Thread Steve Finkelstein
Hi all,

I've compiled zaptel drivers and reconfigure asterisk afterwards from
source --with-zaptel.

Modules are loaded accordingly:

asterisk-1.4.2 # lsmod |grep z
Module  Size  Used by
ztdummy 5472  0
zaptel194504  5 ztdummy
crc_ccitt   3521  1 zaptel

my musiconhold.conf:

asterisk-1.4.2 # grep -v '^;' /etc/asterisk/musiconhold.conf

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

and finally in my extensions.conf:

asterisk-1.4.2 # grep 100 /etc/asterisk/extensions.conf
exten = 100,1,MusicOnHold(30)
exten = 100,2,Hangup

When I dial 100 however, I receive the following:

-- Executing [EMAIL PROTECTED]:1] MusicOnHold(SIP/31337-007017f0,
30) in new stack
[Apr 28 00:17:33] WARNING[30975]: res_musiconhold.c:947
local_ast_moh_start: No class: 30
[Apr 28 00:17:33] WARNING[30975]: res_musiconhold.c:575 moh0_exec:
Unable to start music on hold (class '30') on channel SIP/31337-007017f0
  == Spawn extension (internal, 100, 1) exited non-zero on
'SIP/31337-007017f0'

Thanks for any input.

- sf
___
--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