[asterisk-users] MusicOnHold class working for internal calls, not for external
Jonas Kellens
jonas.kellens at telenet.be
Thu Aug 26 05:10:52 CDT 2010
Hello list,
I have defined a new MoH-class in musiconhold.conf :
[default]
mode=files
directory=/var/lib/asterisk/moh
random=yes
;
*[106002]
mode=files
directory=/var/lib/asterisk/moh/106002
random=yes*
In sip.conf I have this commented out :
;mohinterpret=default
;mohsuggest=default
Asterisk sees these moh-classes and files :
vps2301*CLI> moh show classes
Class: default
Mode: files
Directory: /var/lib/asterisk/moh
Class: 106002
Mode: files
Directory: /var/lib/asterisk/moh/106002
vps2301*CLI> moh show files
Class: default
File: /var/lib/asterisk/moh/macroform-cold_day
File: /var/lib/asterisk/moh/macroform-robot_dity
File: /var/lib/asterisk/moh/macroform-the_simplicity
File: /var/lib/asterisk/moh/reno_project-system
File: /var/lib/asterisk/moh/fpm-calm-river
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
File: /var/lib/asterisk/moh/fpm-sunshine
File: /var/lib/asterisk/moh/fpm-world-mix
Class: 106002
File: /var/lib/asterisk/moh/106002/Long2
In my SIP peer definitions I have :
musiconhold=106002
Now, when SIPuser1 calls internally to SIPuser2, then the MoH-class
'106002' is used and the files which reside in the directory
/var/lib/asterisk/moh/106002.
But when there is an external call, and SIPuser1 wants to put this call
on hold, then MoH-class 'default' is used !!
How can I have MoH-class '106002' also for external calls ?!
Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100826/34504f57/attachment-0001.htm
More information about the asterisk-users
mailing list