Dynamic way to configure music on hold classes

Hi guys !
Im trying found a method to configure my music on hold classes in a dynamic mode.
I can use shellscript to change musiconhold.conf but this method in my new topology will be a problem.
So im thinking, already have a method to create a class in a asterisk with ARI ? Im reading about configu dynamic, but i had try pass res_musiconhold like a ConfClass and i have error.
https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Asterisk+REST+API#Asterisk18AsteriskRESTAPI-updateObject
Today i already configure my pjsip endpoints with this method with sucess.

Any idea ?
Im using Asterisk 18.2

ARI would be something like

POST /channels/channelid/moh?mohClass=mohClass

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.