[Asterisk-Users] Music on hold while ringing

wcarlson at ici.net wcarlson at ici.net
Mon Mar 17 18:02:04 MST 2003


I can't seem to get MOH to work when I dial an extension. here is a log

 == Accepting call on 'Zap/1-1' ("blah" <5085551212>)
    -- Executing Wait("Zap/1-1", "0") in new stack
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing DigitTimeout("Zap/1-1", "5") in new stack
    -- Set Digit Timeout to 5
    -- Executing ResponseTimeout("Zap/1-1", "10") in new stack
    -- Set Response Timeout to 10
    -- Executing SetMusicOnHold("Zap/1-1", "default") in new stack
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing BackGround("Zap/1-1", "transfer") in new stack
    -- Playing 'transfer'
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing Goto("Zap/1-1", "5000|1") in new stack
    -- Goto (default,5000,1)
    -- Executing Wait("Zap/1-1", "0") in new stack
    -- Executing Dial("Zap/1-1", "sip/will|20|mt") in new stack
    -- Called will
    -- Started music on hold, class 'default', on Zap/1-1
  == No one is available to answer at this time
    -- Stopped music on hold on Zap/1-1
    -- Executing VoiceMail("Zap/1-1", "u5000") in new stack
  == Parsing '/etc/asterisk/voicemail.conf':   == 
Parsing '/etc/asterisk/voicemail.conf': Found
    -- Playing 'vm/5000/unavail'


But if I change the dial statment to just t it works fine.


== Accepting call on 'Zap/1-1' ("CARLSON, WILLIA" <5083693775>)
    -- Executing Wait("Zap/1-1", "0") in new stack
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing DigitTimeout("Zap/1-1", "5") in new stack
    -- Set Digit Timeout to 5
    -- Executing ResponseTimeout("Zap/1-1", "10") in new stack
    -- Set Response Timeout to 10
    -- Executing SetMusicOnHold("Zap/1-1", "default") in new stack
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing BackGround("Zap/1-1", "transfer") in new stack
    -- Playing 'transfer'
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing Goto("Zap/1-1", "5000|1") in new stack
    -- Goto (default,5000,1)
    -- Executing Wait("Zap/1-1", "0") in new stack
    -- Executing Dial("Zap/1-1", "sip/will|20|t") in new stack
    -- Called will
    -- SIP/will-4b45 is ringing


any ideas? MOH works when I just hit hold on my phone. and when I have it set 
to do MOH while ringing I do hear the first half a second of MOH then it dumps 
to VM.
  Thanks,
     Will



More information about the asterisk-users mailing list