[asterisk-users] Disabling Music On Hold

Kevin P. Fleming kpfleming at digium.com
Fri Jan 28 12:19:20 CST 2011


On 01/28/2011 11:02 AM, Urs Buob wrote:
>
>  > On 11-01-28 07:37 AM, Urs Buob wrote:
>  > > modules.conf
>  > > ----------------------------------------------------------
>  > > [modules]
>  > > autoload=yes
>  > > ; res_phoneprov requires func_strings.so to be loaded:
>  > > preload => func_strings.so
>  > > noload => pbx_gtkconsole.so
>  > > noload => res_musiconhold.so
>  > >
>  > This is the correct method. But you are saying even if you stop and
>  > start Asterisk res_musiconhold.so is still loads?
>  >
>  > I just tested with the latest 1.6.2 branch with the same settings, MOH
>  > was not loaded.
>
> Well, I did not say that MOH get's loaded. I just say that asterisk is
> still trying to play MOH and does NOT inform the remote side of the hold
> status.
>
> Actually the error message that the CLI shows when I put the call on
> hold also indicates that MOH is not loaded.
>
> -- Music class default requested but no musiconhold loaded.

This is not an error message, it's informational.

> So, the problem is not that MOH is loaded, but that asterisk still tries
> to invoke MOH (triggering the error message) and that there is no
> re-invite to the remote SIP user indicating that the call is on hold. My
> main goal is to have a clean hold functionality with re-invites that
> asterisk sends out. (RTP stream goes via asterisk and not directly
> between the SIP clients)

Loading or not loading a MOH provider is not going to change Asterisk's 
behavior regarding hold/unhold of endpoints; if you want Asterisk to 
pass through hold/unhold indications over SIP, unfortunately it can't do 
that yet... although most of the code has been written, it has not quite 
been finished.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list