<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello list,<br>
<br>
when putting the class 'default' in comment, then this happens :<br>
<br>
[Aug 13 12:36:34] WARNING[21172]: res_musiconhold.c:666 get_mohbyname:
Music on Hold class 'default' not found<br>
[Aug 13 12:36:34] -- Started music on hold, class '106002', on
SIP/test2-00000001<br>
[Aug 13 12:36:34] WARNING[21172]: format_wav.c:124 check_header: Does
not say fmt<br>
[Aug 13 12:36:34] WARNING[21172]: file.c:385 fn_wrapper: Unable to open
format wav<br>
[Aug 13 12:36:34] WARNING[21172]: res_musiconhold.c:251
ast_moh_files_next: Unable to open file
'/var/lib/asterisk/moh/106002/01Long': No such file or directory<br>
<br>
Questions :<br>
<br>
1. how can I use AND class "default" AND class "106002" ?!<br>
2. is it normal that Asterisk can not convert from wav to alaw/gsm ?!<br>
<br>
<br>
Jonas.<br>
<br>
</font><br>
On 08/13/2010 09:57 AM, Jonas Kellens wrote:
<blockquote cite="mid:4C64FAE4.1060101@telenet.be" type="cite">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<font face="Helvetica, Arial, sans-serif">Hello list,<br>
<br>
<br>
I'm using asterisk 1.4.30 and realtime sip.<br>
<br>
<br>
I notice that the field "musiconhold" is not working as when putting
someone on hold, the default musiconhold class is always used.<br>
<br>
<br>
musiconhold.conf :<br>
<br>
[default]<br>
mode=files<br>
directory=/var/lib/asterisk/moh<br>
random=yes<br>
;<br>
[106002]<br>
mode=files<br>
directory=/var/lib/asterisk/moh/106002<br>
random=yes<br>
<br>
<br>
my realtime sip peers have the following in the column '<b>musiconhold</b>'
:
<b>106002</b><br>
<br>
<br>
asterisk*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>
<br>
<br>
But always :<br>
<br>
[Aug 13 09:47:57] -- Started music on hold, class 'default', on
SIP/test2-00000014<br>
[Aug 13 09:48:05] -- Stopped music on hold on SIP/test2-00000014<br>
<br>
<br>
<br>
Can anyone help ?!<br>
<br>
<br>
Kind regards,<br>
<br>
Jonas.<br>
<br>
</font>
</blockquote>
</body>
</html>