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})'
Remember, setvar in sip.conf makes that variable a global variable.
Andrew Thomas
Technical Services Manager
Juan C. Crespo R. wrote:
> Hi
>
> 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
>
> Thanks
_______________________________________________
-- 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