[HELP] Change music on hold using dialpad


#1

Hello,

I am looking for any solution to my problem with changing MOH class. I did set up MOH to play on-line radio:

musiconhold.conf
[default]
mode=custom
directory=/var/lib/asterisk/mohmp3-empty1
application=/usr/bin/mpg123 -q -r 8000 -f 8192 -s --mono http://188.165.22.29:9400

[default1]
mode=custom
directory=/var/lib/asterisk/mohmp3-empty2
application=/usr/bin/mpg123 -q -r 8000 -f 8192 -s --mono http://91.121.89.198:9300

[default2]
mode=custom
directory=/var/lib/asterisk/mohmp3-empty3
application=/usr/bin/mpg123 -q -r 8000 -f 8192 -s --mono http://87.98.236.75:3800

And I would like to give Agents possibility to change MOH at will while they are logged in using their dial pad. Is it even possible?

Agents are logging in with:

Thanks in advance!