[Asterisk-Users] Music on hold problem

Karim Mardhani karim at zeecore.net
Tue Sep 7 21:02:08 MST 2004


  Hi All:

  I am having problems with getting music on hold to work.  I get following
error

  Executing SetMusicOnHold("SIP/2000-2ddf", "default") in new stack
      -- Executing Answer("SIP/2000-2ddf", "") in new stack
      -- Executing WaitMusicOnHold("SIP/2000-2ddf", "30") in new stack
  Sep  7 15:50:47 WARNING[1190886320]: res_musiconhold.c:329 moh1_exec:
Unable to start music on hold (class '30') on channel SIP/2000-2ddf
    == Spawn extension (from-sip, 4999, 3) exited non-zero on
'SIP/2000-2ddf'
  asterisk*CLI>

  I have made sure that I have mpg123 in /usr/bin.  The version of mpg123 I
have is 0.59r.   Following is my extension.conf:

  exten => 4999,1,SetMusicOnHold(default)
  exten => 4999,2,Answer
  exten => 4999,3,WaitMusicOnHold(30)
  exten => 4999,4,Hangup

  When I change WaitMusicOnHold with
MP3Player(/var/lib/asterisk/mohmp3/sample-hold.mp3) I can hear the
sample-hold file when I dail extension 4999.

  Do both MP3Player and MOH use mpg123?

  Any help in this regard would greatly be appreciated.

  Thanks

  Karim







More information about the asterisk-users mailing list