Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Follow below instructions if you want to change the default Music On Hold for Voice calls.

Method 1

Update default MOH class in Asterisk config file

If you want to change the default MusicOnHold class permanently, follow below instructions:

  1. Open SSH console and open /etc/asterisk/musiconhold.conf file

  2. Set correct MusicOnHold definition under default context. Here you can find an example

    [default]
    mode=files
    directory=/var/www/html/files/moh/<moh_reference>
    sort=random
  3. Restart asterisk service to apply changes

    service asterisk restart

Method 2

Change default MOH class runtime

If you want to dynamically change the default MusicOnHold class during the call flow, follow below instructions:


  1. Update MOH class on runtime

    1. If you use Internal/Inbound dialplan, you need to add the Set application with following syntax



    2. If you use CallySquare project, you need to create the variable and the add Set block with following syntax



  • No labels