[Asterisk-Users] Music On Hold

Bud Bach bud at bachcg.com
Fri Dec 16 10:33:47 MST 2005


Thanks Klaus.  I missed the make mpg123 step!  -- Bud

 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Klaus Peras
Sent: Friday, December 16, 2005 11:07 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Music On Hold

 

Wich player do you use?

I use the one that is coming with Asterisk. Just cd to the Asterisk Sources,
make mpg123, cd mpg..., make && make install
and i´m done. It worked fine all the time.

cheers
klaus



 
 
 



Bud Bach schrieb: 

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  <mailto:markster at digium.com> <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

 





  _____  



 
_______________________________________________
--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
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051216/eef7a1e3/attachment.htm


More information about the asterisk-users mailing list