A channel is placed on hold using ARI, and then custom MOH is played on the bridge. However, the default hold music is always heard instead of the custom MOH. How can I play custom MOH instead of the default music on the held channel?
Please show the API calls you’re actually doing and to what, and be more specific about what is hearing the incorrect thing.
On Thursday 19 December 2024 at 16:55:48, RVK17 via Asterisk Community wrote:
A channel is placed on hold using ARI, and then custom MOH is played
Well, please at the very least show us what commands you are using to play
this custom music.
If we guess, we might be wrong, and solve a different problem from the one you
have.
Antony.
–
“There is no reason for any individual to have a computer in their home.”
-
Ken Olsen, President of Digital Equipment Corporation (DEC, later consumed
by Compaq, later merged with HP)Please reply to the list; please *don't* CC me.
ari.channels.hold({ channelId: value })
ari.bridges.startMoh({bridgeId: value,mohClass: development-metrowest})
In cli, it’s showing its started to play from the custom moh class. But the default one is heard instead of the music from the classname i specified.
The PJSIP channel is getting played music on hold from the default class. The bridge is getting played music on hold from the ‘development-metrowest’ class. Is the PJSIP channel IN the bridge? If so, then that wouldn’t matter, it would still be hearing the default class.
The channel is in the bridge.
If that wouldn’t matter, how can I make it to play the music on hold from the development-metrowest class on the channel?
The easiest would be to not do anything to the channel, and just play MOH to the bridge.
Thanks for the replies