Hi,
I am trying to set the class for music-on-hold. I cannot understand why this is happening - it just seems to totally ignore what I am asking it to do…
extensions.conf
[outbound]
exten => _01.,1,Answer
exten => _01.,2,SetMusicOnHold(myclass)
exten => _01.,3,Dial(SIP/${EXTEN}@carrier,160,T)
But when I put someone on hold, I get the following…
-- Executing Answer("SIP/102-1d90", "") in new stack
-- Executing SetMusicOnHold("SIP/102-1d90", "myclass") in new stack
-- Executing Dial("SIP/102-1d90", "SIP/01353352287@carrier|160|T") in new stack
-- Called 01353352287@carrier
-- SIP/carrier-9cc7 is making progress passing it to SIP/102-1d90
-- SIP/carrier-9cc7 answered SIP/102-1d90
Feb 10 20:59:48 WARNING[2166]: res_musiconhold.c:881 local_ast_moh_start: No class: default
Why is it still trying to use the default class?!?
Here is my musiconhold.conf
[myclass]
mode=files
directory=/var/lib/asterisk/moh