Yeah, thats what I figured, BUT, if you transfer an incoming call to
another internal user, music on hold switches to INTERNAL, and if the
2nd agent does a another transfer, the incoming call gets INTERNAL
music. I search for a way to define somewhere in extensions.conf a
extension that is used when the call is put on hold, so I can decide by
callerid.
I tryied the snom "Music on Hold Server" Option and it seems to work:
Define an extension like
1000,1,MusicOnHold(Something)
and set [EMAIL PROTECTED] as "Music on Hold Server" in the snom phone.
But I still see in the Asterisk CLI when pressing hold(verbose)
-playing Music On Hold (default)
-playing Music On Hold (Something)
So it triggers twice somehow, but anyway, doesn't seem to cause trouble....
Nick Barnes wrote:
Magnus:
I would like to decide using the callerid which music on hold is tobe
played: That is: play "free" music to calls from the outside
but play copyrighted music if I put an internal call on hold
(i.e. a co-worker).
Is this possible ?
Yes, and it's easier than intercepting the hold request.
Add the following lines to your musiconhold.conf:
INTERNAL => mp3:/var/lib/asterisk/mohmp3/internal
EXTERNAL => mp3:/var/lib/asterisk/mohmp3/external
and put your music into the appropriate directories.
In the dial plan, for internal calls insert the line:
exten => whatever,whatever,SetMusicOnHold(INTERNAL)
and for external calls, insert the line:
exten => whatever,whatever,SetMusicOnHold(EXTERNAL)
in the appropriate places.
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users