[Asterisk-Users] Music oh hold

Marcel van Kaam, Fonetica marcel at fonetica.be
Thu Jun 30 00:29:53 MST 2005


Change from default to manual. I did that and it helped.

 

Later I changed to madplay and set that as default. Below my line from
musiconhold.conf:

 

default => custom:/usr/share/asterisk/mohmp3/,/usr/bin/madplay --mono -R
8000 --output=raw:-

 

Marcel 

 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Giordano
Grandis
Sent: donderdag 30 juni 2005 9:05
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: R: [Asterisk-Users] Music oh hold

 

This is my musiconhold.conf and my folder:

 

root at voip:/etc/asterisk# less musiconhold.conf
[classes]
default => quietmp3:/var/lib/asterisk/mohmp3
;loud => mp3:/var/lib/asterisk/mohmp3
;random => mp3:/var/lib/asterisk/mohmp3,-z
;unbuffered => mp3nb:/var/lib/asterisk/mohmp3
;quietunbuf => quietmp3nb:/var/lib/asterisk/mohmp3
; Note that the custom mode cannot handle escaped parameters (specifically
embedded spaces)
;manual => custom:/var/lib/asterisk/mohmp3,/usr/bin/mpg123 -q -r 8000 -f
8192 -b 2048 --mono -s
root at voip:/etc/asterisk# ls /var/lib/asterisk/mohmp3/
fpm-calm-river.mp3  fpm-sunshine.mp3  fpm-world-mix.mp3
root at voip:/etc/asterisk#

I think is ok.

 

Any ideas ?

 

Giordano

  _____  

Da: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] Per conto di Chris Stinson
Inviato: mercoledì 29 giugno 2005 22.39
A: Asterisk Users Mailing List - Non-Commercial Discussion
Oggetto: RE: [Asterisk-Users] Music oh hold

Does your default look like this in musiconhold.conf, default =>
quietmp3:/var/lib/asterisk/mohmp3

If so, do you have any music in the directory mohmp3?

 

-----

Chris Stinson
Network Operations Center
ISDN-Net, Inc.
615-221-4200 x103
noc at isdn.net 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Giordano
Grandis
Sent: Wednesday, June 29, 2005 12:35 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Music oh hold

 

Sorry, i also tried this:

 

exten => 6000,1,Answer
exten => 6000,2,MusicOnHold(default)

and i got this result:

 

*CLI>     -- Executing Answer("SIP/2391-8cdd", "") in new stack
    -- Executing MusicOnHold("SIP/2391-8cdd", "default") in new stack
Jun 29 19:33:47 WARNING[1616]: res_musiconhold.c:354 moh0_exec: Unable to
start music on hold (class 'default') on channel SIP/2391-8cdd
  == Spawn extension (local, 6000, 2) exited non-zero on 'SIP/2391-8cdd'

Any ideas ?

 

Thanks

 

Giordano

 

  _____  

Da: Giordano Grandis 
Inviato: mercoledì 29 giugno 2005 19.27
A: asterisk-users at lists.digium.com
Oggetto: 

Hi, I installed mpg123 v0.59r without error and defined as defaut folder
/var/lib/asterisk/mohmp3. When i set a call on hold everythinghs seem ok,
but i cannot hear music. I'm using asterisk 1.0.8

 

*CLI>     -- Executing Dial("SIP/2339-4da6", "SIP/2391|60|Thtr") in new
stack
    -- Called 2391
    -- SIP/2391-79a0 is ringing
    -- Saved useragent "PA168S" for peer 2319
    -- SIP/2391-79a0 answered SIP/2339-4da6
    -- Attempting native bridge of SIP/2339-4da6 and SIP/2391-79a0
    -- Started music on hold, class 'default', on SIP/2339-4da6
    -- Stopped music on hold on SIP/2339-4da6
  == Spawn extension (local, 2391, 1) exited non-zero on 'SIP/2339-4da6'

 

Anyone can help me please ?

 

Thanks

 

Giordano            

                     

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050630/1c9cf7ba/attachment.htm


More information about the asterisk-users mailing list