My goal is:
Play a greeting (welcome @ company…), until someone picks up on the main-queue.
When the call is answered and you get transfered, you should hear something like “real” MoH
(Please be patient while we try to reach the person you want to speak to… or whatever).
When simulating this incoming call from outside with 7777, everything works fine.
In real (when the call arrives from trunk), then MoH is ignored and you hear rings instead of MoH, BUT
only when a ring-group is the target of the inbound route.
On queues, the behaviour ist different: MoH is played, but the MoH setting on the inbound route is ignored, so when the call arrives on inbound route, the MoH from the queue is played- and not that from the inbound route (so the welcome and the “be patient while…” is the same MoH class).
This worked fine on older Versions of freepbx by setting a different MoH class in inbound-route then on
the Queue/Ring Group.
And this is a call trace for the ring-group.
Here is no MoH playback- instead I only hear ring-signals, allthough the logfile shows
“Started MoH class XX on channel…”
It’s not being ignored. The queue overrides it. If you want the birds MOH to play, why do you set the Greeting MOH in the Queue?
On older FreePBX, this was the only was to get this managed.
Set the “real” MoH Class on the inbound route and the “greeting” as MoH to the queue.
I don’t know, why, but this (and ONLY this) always worked.
Are you sure you selected “Greeting” in the Ring Group?
No difference if “greeting” or “birds” is configured. The point is- neither the one nor the other plays
MoH Class is set and MoH should start as seen in line 168 from pastebin:
[2019-04-05 10:20:42] VERBOSE[4934][C-0000019e] res_musiconhold.c: Started music on hold, class ‘ES’, on channel ‘SIP/TRUNK_MIEX-00000350’
I have no idea, where the class ES comes from- i created it to avoid the error-message (class ES not found). Is this some kind of localisation? If so, why ES? All the Phone numbers are located in Austria… (?).