<html><head></head><body>Man, I was hoping it was something like that. I did read the release notes; I must have missed that part.<br>
<br>
This should solve the problem, so thanks again.<br>
<br>
Mike<br><br><div class="gmail_quote">On July 20, 2017 1:09:08 PM EDT, Richard Mudgett <rmudgett@digium.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><br /><div class="gmail_extra"><br /><div class="gmail_quote">On Thu, Jul 20, 2017 at 11:50 AM, mdiehl <span dir="ltr"><<a href="mailto:mdiehlenator@gmail.com" target="_blank">mdiehlenator@gmail.com</a>></span> wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recently upgraded Asterisk from 1.8.x to 13.x and am now finding that music on hold isn't working like it used to.<br />
<br />
It seems that even though the correct MoH class is being set, the system still plays the "default" music.<br />
<br />
All of my call handling is done with an AGI script. When a call is made, the AGI script sets the MoH class before dialing.<br />
<br />
The log indicates that the correct class is being set:<br />
[Jul 18 15:14:57] -- AGI Script Executing Application: (SetMusicOnHold) Options: (jazz)<br />
<br />
However, when the call is placed on hold, the "default" MoH class is used:<br />
[Jul 18 15:15:50] -- Started music on hold, class 'default', on channel 'SIP/trunk-0000bfa9'<br />
<br />
<br />
My AGI script is writen in Perl. Here is the line that does the MuH class setting:<br />
<br />
$agi->exec("SetMusicOnHold", $o->{musiconhold});<br />
<br />
I have verified that $o->{musiconhold} contains the name of a valid MoH class.<br />
<br />
Is there a different/new way to set the MoH class in version 13?<br />
<br />
Any advise would be welcome.<br /></blockquote><div><br /></div><div>The SetMusicOnHold application was deprecated in v1.6 and removed in v13. Use<br />Set(CHANNEL(musicclass)=class) instead to set the music class on the channel.<br /><br /></div><div>The change was documented in the UPGRADE.txt files.<br /></div><div><br /></div><div>Richard<br /></div></div><br /></div></div>
</blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>