Scott Lawrence wrote:
> On Tue, 2009-09-22 at 17:30 -0400, Andy Spitzer wrote:
>> Woof!
>>
>> On Tue, 22 Sep 2009 17:06:14 -0400, Arjun Nair <[email protected]> wrote:
>>> Should there be a system wide MOH setting that allows an admin to  
>>> configure the default moh url to use either the "soundcard" or the  
>>> "files" source? This setting will, of course, be overridden by any user  
>>> level setting. Right now the default moh url is "~~mh~".
>> That would work just fine--but there is a caveat.  See below.
>>
>>> Secondly, if there is such a setting, then every time it changes, you  
>>> have to restart all the phones in the system, before it come into  
>>> effect. I was thinking a better way would be to pass this setting  
>>> through a configuration file (sipxivr.properties, for instance) and,  
>>> have the Moh server pick it up from there. So, any time the server sees  
>>> a moh url without any suffix (i.e. ~~...@domianname), it will fall back  
>>> to this "system-moh-setting" rule.
>> No need to change the phones, just change the mappingrules for ~~mh~
>> to send the call to sipXivr with the moh= parameter set as you like, like  
>> this:
>>
>>
>> So the "default" is picked by the first userMatch rule, and is "l" for  
>> local files.
>> Any phone that specified a type would match the second rule.
>>
>> Then only the proxy/registrar needs to be restarted on a change of default.
> 
> Much better than that... configure each MoH target URI as an alias -
> note that each of the above rules always produces the same answer so it
> can be computed at configuration time and made an alias.  
> 
> That way _nothing_ needs to be restarted.
> 


Yep, adding the MOH entry as an alias works. So, I will use Aliases for this, 
and keep the legacy park music as the default.

Arjun
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to