[Asterisk-Users] Music On Hold

Bud Bach bud at bachcg.com
Fri Dec 16 10:23:59 MST 2005


Now I'm really baffeled.  I found some comments at the end of the
musiconhold.config file about the native format.  I copied the files in
/var/lib/asterisk/mohmp3 to /var/lib/asterisk/moh-native (just cp't them).
Then I uncommented the section in musiconhold.config:

 

[native]

mode=files

directory=/var/lib/asterisk/moh-native

 

and change the dialplan to:

 

exten => 8702,n,MusicOnHold(native)

 

And it works.  Now, how do I make "native" the "default"?  I tried to copy:

 

mode=files

directory=/var/lib/asterisk/moh-native

 

from the native section to the default section and that didn't work.

 

-- Bud

 

 

Dec 16 12:17:38 WARNING[6222]: interface.c:215 decodeMP3: Junk at the
beginning of frame 00000000

 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bud Bach
Sent: Friday, December 16, 2005 10:58 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Music On Hold

 

Help!  No Music on Hold.  Probably a novice mistake but I can't figure it
out.  Here are the details:

 

CentOS 4.2

Asterisk 1.2.1 (Do I need to do something to get MOH to build?)

Ztdummy loaded (conference works fine)

 

musiconhold.conf:

 

[default]

mode=quietmp3

directory=/var/lib/asterisk/mohmp3

 

Sip device (x-lite - also tried with an ATA) with canreinvite=no:

 

sip.conf:

 

[7211]

username=7211

secret=****

host=dynamic

type=friend

context=standardphone

disallow=all

allow=gsm

allow=ulaw

allow=alaw

allow=g723.1

allow=g729

canreinvite=no

 

Extensions.conf:

 

exten => 8702,1,Answer()

exten => 8702,n,MusicOnHold(default)

exten => 8702,n,Hangup()

 

 

# asterisk -r

Asterisk 1.2.1, Copyright (C) 1999 - 2005 Digium.

Written by Mark Spencer <markster at digium.com>

=========================================================================

Connected to Asterisk 1.2.1 currently running on ccsip (pid = 4782)

Verbosity is at least 3

  == Spawn extension (standardphone, 8702, 2) exited non-zero on
'SIP/7211-be01'

    -- Executing Answer("SIP/7211-cedb", "") in new stack

    -- Executing MusicOnHold("SIP/7211-cedb", "default") in new stack

    -- Started music on hold, class 'default', on channel 'SIP/7211-cedb'

    -- Stopped music on hold on SIP/7211-cedb

  == Spawn extension (standardphone, 8702, 2) exited non-zero on
'SIP/7211-cedb'

 

The "Stopped music on hold" happens immediately like it can't find
something.  Should I give up and use madplay?

 

-- Bud

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


More information about the asterisk-users mailing list