[asterisk-users] Music on hold based on user
Danny Nicholas
danny at debsinc.com
Fri Jul 24 08:35:49 CDT 2009
Here's my "solution" to the OP's question
- exten => s,1,answer
- exten => s,2,Set(MOH=$DB(OHCLASS/${EXTEN}))
- exten => s,3,SetMusiconhold(${MOH})
- exten => s,4,Dial(SIP/${EXTEN}),30,ikKtTm)
Just set OHCLASS exten to the value you want in advance
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philipp
Kempgen
Sent: Friday, July 24, 2009 8:20 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Music on hold based on user
Andrew Thomas schrieb:
> I do this using the setvar facility in sip.conf.
>
> eg. setvar=MOH=music1
>
> Then in the dialplan (extensions.conf) all you need to do is
> 'Set(CHANNEL(musicclass)=${MOH})'
> Juan C. Crespo R. wrote:
>> Guys I wonder if its possible to set a different MoH based on
>> groups, I mean if one of the Admin group put on hold the call play
>> music 1, if another from Technical Support put on hold the call play
>> music 3, something like this
>>
>> Admin - Music1
>> Contrallors - Music 2
>> Technical Support - Music 3
The way I understood the OP was that he wants different MoH classes
depending on the callee (not depending on the caller).
Philipp Kempgen
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de
--
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list