[asterisk-users] Music on hold based on user

Andrew Thomas andy at datavox.co.uk
Fri Jul 24 04:25:05 CDT 2009


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




More information about the asterisk-users mailing list