From: [email protected]
[mailto:[email protected]] 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.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to