- February 21, 2019 at 6:00 am
After several hours of experimenting on a freshly built test installation,I have come to the conclusion that:
– if you create a MOH class via Settings/PBX Settings/Music on Hold, and upload a suitable music file(s), then set your Extension/Advanced/MOH Class & Extension/Follow Me/MOH Class to that new MOH class, calls placed on hold will not hear your music file(s) but will continue to hear the default MOH music supplied by asterisk in folder /var/lib/asterisk/moh.
So I cannot make my custom MOH music files work.
Its not a big deal but can you check this sometime and see if you can reproduce the problem?0
- February 21, 2019 at 3:28 pm
- February 21, 2019 at 10:13 pm
It won’t work for me on my production machine or my freshly-built test machine. I always get the “macroform-cold_day.wav” music from /var/lib/asterisk/moh. I have tried restarting the PBX (just in case that helped) but it didn’t help.
I had created a MOH Class called “MOH” and added a sound file to it, and changed both of the test extensions to have MOH Class = “MOH” in the Advanced and Follow Me tabs.
But the log file shows that moh class “default” was used in the call:
[2019-02-22 09:08:27] VERBOSE[C-00000004] bridge_basic.c: Channel SIP/201-00000009: Started DTMF attended transfer.
[2019-02-22 09:08:27] VERBOSE[C-00000004] res_musiconhold.c: Started music on hold, class ‘default’, on channel ‘SIP/206-00000008’
Am I doing something wrong?0
- February 21, 2019 at 10:23 pm
- February 21, 2019 at 10:34 pm
Scrap my last suggestion. I uploaded one of the standard asterisk MOH files (manolo_camp-morning_coffee.wav) to my MOH class and removed my other sound files from the class, just in case my own sound files were the problem. But the transfer music is still the default macroform-cold_day.wav. For some reason, my custom MOH class is not being chosen when the warm transfer button (*2) is pressed.0
- February 22, 2019 at 1:48 am
- February 22, 2019 at 9:15 pm
- February 22, 2019 at 9:19 pm
- February 28, 2019 at 3:44 am
- February 28, 2019 at 3:50 am
- February 28, 2019 at 4:43 am
This is how I set it up:
Settings/PBX Settings/Music on Hold. Create MOH Class called “MOH”
Settings/PBX Settings/Music on Hold/MOH. Upload the music file to this class.
For each extension, set Advanced/MOH Class and Follow Me/MOH Class to “MOH”
Trunks and Inbound Routes also have their MOH Class set to “MOH”
Extract from log is attached for a call from x201 to x210, where the recipient presses *2 for a warm transfer, and the sender (x201) receives music on hold. As you can see from the log, the moh class is “default”0
- February 28, 2019 at 5:00 am
- February 28, 2019 at 4:38 pm
- February 28, 2019 at 5:31 pm
The MoH on dial profiles if to define if the caller will listen to the ring tone or an MoH class before the called answer, in the extensions, under the advanced tab the MoH class is for when called put on hold to the caller.
What I didn’t try yet is the transfer option, to see what MoH class is played0
- March 1, 2019 at 4:14 pm
I made some research about this topic and made some test with the transfer option, and effectively, the play moh during a transfer is the asterisk default moh, a workaround is to add the parameter (In the tab “custom” on SIP Settings dialog) “mohinterpret” follows by the desired music on hold class as shown in the attached picture.
To list the available moh classes, you may execute the following command in the Linux console:
asterisk -rx”moh show classes”0
- You must be logged in to reply to this topic.