[Asterisk-Users] Unable to get message on hold class to work

Matt mhoppes at gmail.com
Mon Mar 21 09:52:30 MST 2005


I can't seem to get the message on hold class to work for anything but
default.. it works if I specify default but if I specify anything else
it hangs up on me:

  == Spawn extension (from-internal, 9472, 3) exited non-zero on 'SIP/200-9f2c'
    -- Executing Macro("SIP/200-9f2c", "hangupcall") in new stack
    -- Executing ResetCDR("SIP/200-9f2c", "w") in new stack
    -- Executing NoCDR("SIP/200-9f2c", "") in new stack
    -- Executing Wait("SIP/200-9f2c", "5") in new stack
    -- Executing Hangup("SIP/200-9f2c", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on
'SIP/200-9f2c' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-9f2c'


[classes]
;default => quietmp3:/var/lib/asterisk/mohmp3
default => mp3:/var/lib/asterisk/mohmp3-radio,http://wgrc.swift-networks.com:8000/
wgrc => mp3:/var/lib/asterisk/mohmp3-radio,http://wgrc.swift-networks.com:8000/
;loud => mp3:/var/lib/asterisk/mohmp3
;random => quietmp3:/var/lib/asterisk/mohmp3,-z



exten => 9472,1,Answer
exten => 9472,2,SetMusicOnHold(wgrc)
exten => 9472,3,MusicOnHold()


That hangs up.. if I change wgrc to 'default' then it works... but I
don't want default specified there.. any thoughts? (yes I know default
and wgrc are the same at the moment..  I wanted to make sure my
streaming syntax was correct).



More information about the asterisk-users mailing list