<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi evereybody,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to use musiconhold during dial
tones. But I only can call earing dial tones instead of music.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now will see my configuration files.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><U><STRONG>AGI File(using AGI script to EXEC
DIAL)</STRONG></U></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>print "EXEC Dial Zap/g2/numberc||m\";</FONT></DIV>
<DIV><FONT face=Arial size=2>$res=checkresult();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG><U>Extension.conf</U></STRONG></FONT></DIV>
<DIV><STRONG><U><FONT face=Arial size=2></FONT></U></STRONG> </DIV>
<DIV><FONT face=Arial size=2>exten =>_numberb,1,Answer<BR>exten
=>_numberb,2,SetMusicOnHold,default<BR>exten
=>_numberb,3,AGI,dial.agi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2><STRONG><U>MusicOnHold.conf</U></STRONG></FONT></DIV>
<DIV><STRONG><U><FONT face=Arial size=2></FONT></U></STRONG> </DIV>
<DIV><FONT face=Arial size=2>default =>
quietmp3:/var/lib/asterisk/mohmp3,-z</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Note: Inside the directory
/var/lib/asterisk/mohmp3/ there are severals mp3 files.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG><U>Log File
(/var/log/asterisk/debug)</U></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>Jul 2 12:27:34 DEBUG[630802]: File
app_dial.c, Line 333 (dial_exec): SIMPLE DIAL (NO URL)<BR>Jul 2 12:27:39
DEBUG[630802]: File chan_zap.c, Line 1936 (zt_setoption): Set option AUDIO MODE,
value: ON(1) on Zap/2-1<BR>Jul 2 12:27:39 DEBUG[630802]: File chan_zap.c,
Line 1493 (zt_hangup): Hangup: channel: 2 index = 0, normal = 13, callwait = -1,
thirdcall = -1<BR>Jul 2 12:27:39 DEBUG[630802]: File chan_zap.c, Line 1846
(zt_setoption): Set option TDD MODE, value: OFF(0) on Zap/2-1<BR>Jul 2
12:27:39 DEBUG[630802]: File chan_zap.c, Line 908 (update_conf): Updated
conferencing on 2, with 0 conference users<BR>Jul 2 12:27:39
DEBUG[630802]: File chan_zap.c, Line 1930 (zt_setoption): Set option AUDIO MODE,
value: OFF(0) on Zap/2-1<BR>Jul 2 12:27:39 DEBUG[630802]: File app_agi.c,
Line 1216 (run_agi): Zap/1-1 hungup<BR>Jul 2 12:27:39 DEBUG[630802]: File
cdr_mysql.c, Line 58 (mysql_log): cdr_mysql: inserting a CDR
record.<BR>Jul 2 12:27:39 DEBUG[630802]: File cdr_mysql.c, Line 61
(mysql_log): cdr_mysql: SQL command as follows: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode)
VALUES ('2003-07-02 12:27:39','numbera','numbera','numberb','default',
'Zap/1-1','','Dial','Zap/g2/numberc||m',5,5,4,3,'')<BR>Jul 2 12:27:39
DEBUG[630802]: File chan_zap.c, Line 1936 (zt_setoption): Set option AUDIO MODE,
value: ON(1) on Zap/1-1<BR>Jul 2 12:27:39 DEBUG[630802]: File chan_zap.c,
Line 1493 (zt_hangup): Hangup: channel: 1 index = 0, normal = 12, callwait = -1,
thirdcall = -1<BR>Jul 2 12:27:39 DEBUG[630802]: File chan_zap.c, Line 1846
(zt_setoption): Set option TDD MODE, value: OFF(0) on Zap/1-1<BR>Jul 2
12:27:39 DEBUG[630802]: File chan_zap.c, Line 908 (update_conf): Updated
conferencing on 1, with 0 conference users<BR>Jul 2 12:27:39
DEBUG[630802]: File chan_zap.c, Line 1930 (zt_setoption): Set option AUDIO MODE,
value: OFF(0) on Zap/1-1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If somebody can help I will be very pleasured, now
I'm really lost.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thks a lot.</FONT></DIV></BODY></HTML>