Hi evereybody,
I'm trying to use musiconhold during dial tones. But I only can call earing
dial tones instead of music.
Now will see my configuration files.
AGI File(using AGI script to EXEC DIAL)
print "EXEC Dial Zap/g2/numberc||m\";
$res=checkresult();
Extension.conf
exten =>_numberb,1,Answer
exten =>_numberb,2,SetMusicOnHold,default
exten =>_numberb,3,AGI,dial.agi
MusicOnHold.conf
default => quietmp3:/var/lib/asterisk/mohmp3,-z
Note: Inside the directory /var/lib/asterisk/mohmp3/ there are severals mp3
files.
Log File (/var/log/asterisk/debug)
Jul 2 12:27:34 DEBUG[630802]: File app_dial.c, Line 333 (dial_exec): SIMPLE
DIAL (NO URL)
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
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
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
Jul 2 12:27:39 DEBUG[630802]: File chan_zap.c, Line 908 (update_conf): Updated
conferencing on 2, with 0 conference users
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
Jul 2 12:27:39 DEBUG[630802]: File app_agi.c, Line 1216 (run_agi): Zap/1-1
hungup
Jul 2 12:27:39 DEBUG[630802]: File cdr_mysql.c, Line 58 (mysql_log): cdr_mysql:
inserting a CDR record.
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,'')
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
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
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
Jul 2 12:27:39 DEBUG[630802]: File chan_zap.c, Line 908 (update_conf): Updated
conferencing on 1, with 0 conference users
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
If somebody can help I will be very pleasured, now I'm really lost.
Thks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20030702/1efb5d6d/attachment.htm