• Welcome to SAIL Community Supported PBX . Please login or sign up.
 
May 03, 2024, 09:14:09 AM

News:

SMF updated to 2.0


MOH Settings

Started by compsos, October 09, 2022, 09:47:35 AM

Previous topic - Next topic

compsos

I am a little confused to the outcome of below
musiconhold.conf
[default]
mode=files
directory=moh
.....
#include sark_moh.conf

but sark_moh.conf says
[default]
mode=files
directory=moh-default
moh-default is not in the asterisk directory set and "moh show files" does not look at it. The sark_moh.conf is overwritten by the workbench so it can not be edited.

Do we need moh-default which is in /etc/asterisk and not /usr/share/asterisk?

Thanks

sysadmin

Hi there

Good question.   6.1 optionally allows different MOH files for each tenant.  You can load the individual tenant MOH files in the tenant edit panel.  The sound files for each tenant are saved in /usr/share/asterisk/moh-{tenant name} and a reference is generated in sark_moh.conf

As you know, in Asterisk the sound directories are abstracted in that they are defined in /etc/asterisk/musiconhold.conf and, in the Digium sample file, there is a [default] entry which points to the sample moh files in the directory /usr/share/asterisk/moh

It is also the case that Asterisk will ignore empty MOH directories.

The confusion arises due to Asterisk defining an MOH class "default" (in the sample musiconhold.conf) and SARK having a "default" tenant (so it also has a class "default" in sark_moh.conf).  However, as long as the SARK entry is an empty directory then it gets ignored and Asterisk uses the Digium supplied sample music.  If, on the other hand, you save a music file into moh-default then that will be used instead.

It is, however, confusing so thanks for the question and I hope this above helps.




 

compsos

Hi S
Thank you for the reply. The strange thing is, if the call is put onhold or transferred by the extension the MOH plays. Just not as a replacement of ring tone.

So is the solution to create a moh-default folder?
Thanks