If you want to dynamically change the default MusicOnHold class during the call flow, follow below instructions:
- Create your custom moh class and add your audio files
- Create variable CHANNEL(musicclass)
Please refer here to create a Variable
- Update MOH class on runtime
If you use Internal/Inbound dialplan, you need to add the Set application with following syntax
b. If you use CallySquare project, you need to add the Set block with following syntax