[asterisk-users] Turn off MusicOnHold for individual User

Adrian Marsh Adrian.Marsh at ubiquisys.com
Tue Mar 18 11:35:49 CDT 2008


Anyone have an idea on this?


From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Adrian Marsh
Sent: 17 March 2008 17:08
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Turn off MusicOnHold for individual User

Hi All,

I might of got my wires crossed here, but I'm looking for a way to disable musiconhold for individual users.
I had thought that putting the sip.conf entry to:

[690]
type=friend
context=from-sip
secret=*****
qualify=yes
host=dynamic
canreinvite=no
nat=yes
mailbox=2090
callerid=2090
musiconhold=silent

and then putting an entry in musiconhold.conf like:

[silent]
mode=files
directory=/var/lib/asterisk/mohmp3-empty       ;(no files in this dir)

I thought this would do it.. but testing shows it still uses the "default" class.

I know I could use SetMusicOnHold and in extensions.conf, but that would require a special dialplan prefix or something, so hoped the sip.conf would work.  Obviously I've missed something, but what?

Adrian



More information about the asterisk-users mailing list