<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello list,<br>
<br>
I have defined a new MoH-class in musiconhold.conf :<br>
<br>
[default]<br>
mode=files<br>
directory=/var/lib/asterisk/moh<br>
random=yes<br>
;<br>
<b>[106002]<br>
mode=files<br>
directory=/var/lib/asterisk/moh/106002<br>
random=yes</b><br>
<br>
In sip.conf I have this commented out :<br>
<br>
;mohinterpret=default<br>
;mohsuggest=default<br>
<br>
Asterisk sees these moh-classes and files :<br>
<br>
vps2301*CLI> moh show classes<br>
Class: default<br>
Mode: files<br>
Directory: /var/lib/asterisk/moh<br>
Class: 106002<br>
Mode: files<br>
Directory: /var/lib/asterisk/moh/106002<br>
vps2301*CLI> moh show files<br>
Class: default<br>
File: /var/lib/asterisk/moh/macroform-cold_day<br>
File: /var/lib/asterisk/moh/macroform-robot_dity<br>
File: /var/lib/asterisk/moh/macroform-the_simplicity<br>
File: /var/lib/asterisk/moh/reno_project-system<br>
File: /var/lib/asterisk/moh/fpm-calm-river<br>
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee<br>
File: /var/lib/asterisk/moh/fpm-sunshine<br>
File: /var/lib/asterisk/moh/fpm-world-mix<br>
Class: 106002<br>
File: /var/lib/asterisk/moh/106002/Long2<br>
<br>
<br>
In my SIP peer definitions I have :<br>
<br>
musiconhold=106002<br>
<br>
<br>
<br>
Now, when SIPuser1 calls internally to SIPuser2, then the MoH-class
'106002' is used and the files which reside in the directory </font><font
face="Helvetica, Arial, sans-serif">/var/lib/asterisk/moh/106002.<br>
<br>
But when there is an external call, and SIPuser1 wants to put this call
on hold, then MoH-class 'default' is used !!<br>
<br>
<br>
How can I have MoH-class '106002' also for external calls ?!<br>
<br>
<br>
<br>
Kind regards,<br>
<br>
Jonas.<br>
</font>
</body>
</html>