[quote=“giomax”]There are no Errors it simply plays default music on hold as follows, and I’m confused
but I want to play this music which I put it in
There still does not appear to be enough information to help you but I will take a shot. The myclass in [myclass] is the context. You can specify an unlimited number of contexts. In your dialplan there is a command called SetMusicOnHold which takes the class parameter which determines which class of music to play to the caller.
;notice 'myclass' matches the context in your conf file
You have 3 options here. You can delete the myclass class from your conf file, change the default class directory value to point to /var/lib/asterisk/moh/music2 and leave your dialplan alone.
You can move your music from /var/lib/asterisk/moh/music2 to /var/lib/asterisk/moh/music and delete the myclass class.
You can update your dialplan to set the class of music you want to play to the caller.