[asterisk-users] Musiconhold priority
Danny Nicholas
danny at debsinc.com
Tue Feb 1 10:20:22 CST 2011
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens
Sent: Tuesday, February 01, 2011 10:05 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Musiconhold priority
Hello list,
what musiconhold class has priority :
- field "musiconhold" of the SIPaccount and field "musiconhold" of a queue
or
- Set(CHANNEL(musicclass)=)
??
Kind regards,
Jonas.
According to the internal documentation of res/res_musiconhold.c (source of
1.4.37), this is the "pecking order"
/* The following is the order of preference for which class to use:
* 1) The channels explicitly set musicclass, which should *only* be
* set by a call to Set(CHANNEL(musicclass)=whatever) in the
dialplan
.
* 2) The mclass argument. If a channel is calling ast_moh_start()
as the
* result of receiving a HOLD control frame, this should be the
* payload that came with the frame.
* 3) The interpclass argument. This would be from the mohinterpret
* option from channel drivers. This is the same as the old
musicclass
* option.
* 4) The default class.
*/
Not sure how queues factor into this equation; guess that's a "try and see"
thing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110201/7872cab3/attachment-0001.htm>
More information about the asterisk-users
mailing list