Re: [asterisk-users] MoH via AGI broken after upgrade.

2017-07-20 Thread Mike Diehl
Man, I was hoping it was something like that.  I did read the release notes; I 
must have missed that part.

This should solve the problem, so thanks again.

Mike

On July 20, 2017 1:09:08 PM EDT, Richard Mudgett  wrote:
>On Thu, Jul 20, 2017 at 11:50 AM, mdiehl 
>wrote:
>
>> 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.
>>
>> It seems that even though the correct MoH class is being set, the
>system
>> still plays the "default" music.
>>
>> 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.
>>
>> The log indicates that the correct class is being set:
>> [Jul 18 15:14:57] -- AGI Script Executing Application:
>> (SetMusicOnHold) Options: (jazz)
>>
>> However, when the call is placed on hold, the "default" MoH class is
>used:
>> [Jul 18 15:15:50] -- Started music on hold, class 'default', on
>> channel 'SIP/trunk-bfa9'
>>
>>
>> My AGI script is writen in Perl.  Here is the line that does the MuH
>class
>> setting:
>>
>> $agi->exec("SetMusicOnHold", $o->{musiconhold});
>>
>> I have verified that $o->{musiconhold} contains the name of a valid
>MoH
>> class.
>>
>> Is there a different/new way to set the MoH class in version 13?
>>
>> Any advise would be welcome.
>>
>
>The SetMusicOnHold application was deprecated in v1.6 and removed in
>v13.
>Use
>Set(CHANNEL(musicclass)=class) instead to set the music class on the
>channel.
>
>The change was documented in the UPGRADE.txt files.
>
>Richard

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] MoH via AGI broken after upgrade.

2017-07-20 Thread Richard Mudgett
On Thu, Jul 20, 2017 at 11:50 AM, mdiehl  wrote:

> 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.
>
> It seems that even though the correct MoH class is being set, the system
> still plays the "default" music.
>
> 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.
>
> The log indicates that the correct class is being set:
> [Jul 18 15:14:57] -- AGI Script Executing Application:
> (SetMusicOnHold) Options: (jazz)
>
> However, when the call is placed on hold, the "default" MoH class is used:
> [Jul 18 15:15:50] -- Started music on hold, class 'default', on
> channel 'SIP/trunk-bfa9'
>
>
> My AGI script is writen in Perl.  Here is the line that does the MuH class
> setting:
>
> $agi->exec("SetMusicOnHold", $o->{musiconhold});
>
> I have verified that $o->{musiconhold} contains the name of a valid MoH
> class.
>
> Is there a different/new way to set the MoH class in version 13?
>
> Any advise would be welcome.
>

The SetMusicOnHold application was deprecated in v1.6 and removed in v13.
Use
Set(CHANNEL(musicclass)=class) instead to set the music class on the
channel.

The change was documented in the UPGRADE.txt files.

Richard
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] MoH via AGI broken after upgrade.

2017-07-20 Thread mdiehl
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.

It seems that even though the correct MoH class is being set, the system still 
plays the "default" music.

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.

The log indicates that the correct class is being set:
[Jul 18 15:14:57] -- AGI Script Executing Application: (SetMusicOnHold) 
Options: (jazz)

However, when the call is placed on hold, the "default" MoH class is used:
[Jul 18 15:15:50] -- Started music on hold, class 'default', on channel 
'SIP/trunk-bfa9'


My AGI script is writen in Perl.  Here is the line that does the MuH class 
setting:

$agi->exec("SetMusicOnHold", $o->{musiconhold});

I have verified that $o->{musiconhold} contains the name of a valid MoH class.

Is there a different/new way to set the MoH class in version 13?

Any advise would be welcome.

Mike 

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users