Koozali.org: home of the SME Server

MOH for groups, trunks or extensions

Offline del

  • *
  • 765
  • +0/-0
MOH for groups, trunks or extensions
« on: October 06, 2013, 10:34:01 AM »
Hi All,

Is it possible to have different music on hold by extension, trunk or group? I can figure out how to add different classes in the musiconhold.conf but can't seem to see how to use them in different ways.

What I would like to achieve is something like this:

One company doing two types of work, eg. ABC Plumbing and ABC Electrical, both have different incoming numbers that get answered by the same receptionist, by using the alpha tag field string she knows which company to answer as, if she puts the plumbing company on hold the user would hear music with advertising for plumbing and if she puts the electrical company on hold they hear music with advertising for electrical stuff.

In my mind I can achieve this by having different MOH for either the trunk, a call group or extension, so can anyone point me to the files I should be looking at editing and I can have a go at it. Thanks for looking.

Kind regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: MOH for groups, trunks or extensions
« Reply #1 on: October 06, 2013, 09:35:10 PM »
Hi

You can do it if you run queues.   If you wanted to do it for a regular trunk then you would have to code it yourself in a custom app.   The way Asterisk implements MOH choice is somewhat counter-intuitive, but it can be done - google for asterisk musicclass and you'll find it.   We've looked at it a few times but never at the trunk level, only at the level of a Tenant, which in our eyes makes more sense.

Kind Regards

S